projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Implemented a scripted object that can be placed in a level and whose name is
[supertux.git]
/
tools
/
miniswig
/
tree.h
diff --git
a/tools/miniswig/tree.h
b/tools/miniswig/tree.h
index
181a9fe
..
b6f8554
100644
(file)
--- a/
tools/miniswig/tree.h
+++ b/
tools/miniswig/tree.h
@@
-48,7
+48,8
@@
private:
class Type {
public:
Type()
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)
{ }
void write_c_type(std::ostream& out)
@@
-66,12
+67,15
@@
public:
bool is_void() const
{
bool is_void() const
{
+ if(atomic_type == 0)
+ return true;
if(atomic_type == &BasicType::VOID && pointer == 0)
return true;
return false;
}
AtomicType* atomic_type;
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...
bool _const;
bool _static;
// number of '*' in the type declaration...