summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/types.h b/types.h
index 2ddb1a3..7db9b0d 100644
--- a/types.h
+++ b/types.h
@@ -615,13 +615,15 @@ enum {
DECL_FOUND_VAL = 0x40,
DECL_IS_PARAM = 0x80
};
-
+
+typedef U16 DeclFlags;
+
/* OPTIM: Instead of using dynamic arrays, do two passes. */
typedef struct Declaration {
Location where;
Identifier *idents;
Type type;
- U16 flags;
+ DeclFlags flags;
Expression expr;
Value val; /* only for constant decls. */