diff -r a000bafece09 -r 393f1b8ac8c3 src/Types.cpp --- a/src/Types.cpp Mon Jul 30 12:13:22 2012 -0700 +++ b/src/Types.cpp Mon Jul 30 22:24:57 2012 -0700 @@ -1,19 +1,20 @@ -/* +/* vim: set ts=4 sw=4 tw=99 et: + * * Copyright (C) 2012 David Anderson * - * This file is part of JITCraft. + * This file is part of SourcePawn. * - * JITCraft is free software: you can redistribute it and/or modify it under + * SourcePawn is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) * any later version. * - * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY + * SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with - * JITCraft. If not, see http://www.gnu.org/licenses/. + * SourcePawn. If not, see http://www.gnu.org/licenses/. */ #include #include "Types.h" @@ -57,6 +58,8 @@ type->primitive_ = PrimitiveType_Float; else if (tag && strcmp(tag->chars(), "String") == 0) type->primitive_ = PrimitiveType_Char; + else if (tag && strcmp(tag->chars(), "bool") == 0) + type->primitive_ = PrimitiveType_Bool; else type->primitive_ = PrimitiveType_Int32; return type;