X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tools%2Fminiswig%2Ftree.h;h=b6f85546670cbe5538439a13cb8e22d5e85e7f54;hb=864c93e01ec366f730b3ebad08d5c52d6a9363b6;hp=f1149afb8b47ecb9744451504d966ea0de4cb557;hpb=60908c905544776c376421b8d3e12eeb936c068f;p=supertux.git diff --git a/tools/miniswig/tree.h b/tools/miniswig/tree.h index f1149afb8..b6f855466 100644 --- a/tools/miniswig/tree.h +++ b/tools/miniswig/tree.h @@ -6,6 +6,7 @@ #include #include #include +#include class Namespace; @@ -47,7 +48,8 @@ private: class Type { public: Type() - : atomic_type(0), _const(false), _static(false), pointer(0), ref(0) + : atomic_type(0), _unsigned(false), _const(false), _static(false), + pointer(0), ref(0) { } void write_c_type(std::ostream& out) @@ -65,12 +67,15 @@ public: bool is_void() const { + if(atomic_type == 0) + return true; if(atomic_type == &BasicType::VOID && pointer == 0) return true; return false; } AtomicType* atomic_type; + bool _unsigned; bool _const; bool _static; // number of '*' in the type declaration...