diff options
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -483,6 +483,7 @@ typedef enum { typedef U8 BlockFlags; typedef struct Block { + /* NOTE: make sure you check copy.c when you add something to this */ BlockFlags flags; BlockKind kind; struct { @@ -510,7 +511,6 @@ typedef struct StructDef { /* these two only exist after resolving (before then, it's scope.stmts) */ Field *fields; Location where; - StructFlags flags; /* use this instead of fields when looking up a field, because it will include "use"d things. this only consists of statements which are declarations after typing (and not #ifs, @@ -531,6 +531,7 @@ typedef struct StructDef { /* if name is NULL, use this */ IdentID id; } c; + StructFlags flags; } StructDef; @@ -625,17 +626,6 @@ typedef struct WhileExpr { } WhileExpr; -enum { - FOR_IS_RANGE = 0x01 -}; - - -enum { - FN_EXPR_FOREIGN = 0x01, - FN_EXPR_EXPORT = 0x02, /* set by sdecls_cgen.c */ - FN_EXPR_HAS_VARARGS = 0x04 -}; - typedef enum { CTYPE_NONE = 0x00, CTYPE_CHAR = 0x01, @@ -883,6 +873,14 @@ typedef struct Declaration { } Declaration; typedef Declaration *DeclarationPtr; +enum { + FOR_IS_RANGE = 0x01 +}; +enum { + FN_EXPR_FOREIGN = 0x01, + FN_EXPR_EXPORT = 0x02, /* set by sdecls_cgen.c */ + FN_EXPR_HAS_VARARGS = 0x04 +}; typedef struct ForExpr { U8 flags; Declaration header; |