]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
allow array size to be inferred from the initializer
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index a0fa14defca70bfadeeee0224bf5936d6f6249b4..1c4574a57182143982355403ae03c96ab1dcb566 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -153,6 +153,9 @@ struct ast_expression_common
 #define AST_FLAG_INCLUDE_DEF  (1<<5)
 #define AST_FLAG_IS_VARARG    (1<<6)
 #define AST_FLAG_ALIAS        (1<<7)
+/* An array declared as []
+ * so that the size is taken from the initializer */
+#define AST_FLAG_ARRAY_INIT   (1<<8)
 #define AST_FLAG_TYPE_MASK (AST_FLAG_VARIADIC | AST_FLAG_NORETURN)
 
 /* Value
@@ -180,11 +183,6 @@ struct ast_value_s
 
     const char *argcounter;
 
-    /*
-    int         vtype;
-    ast_value  *next;
-    */
-
     int  cvq;     /* const/var qualifier */
     bool isfield; /* this declares a field */
     bool isimm;   /* an immediate, not just const */