]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
don't just store a 'bool constant' in the ast/ir, store the complete qualifier: ...
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 29c3192df4acd1c1ecfbbeb18870481c0d36e66c..9d419609157039ce944b2fffcc28901422bd160c 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -159,7 +159,7 @@ struct ast_value_s
     ast_value  *next;
     */
 
-    bool constant;
+    bool cvq; /* const/var qualifier */
     bool hasvalue;
     union {
         double        vfloat;
@@ -234,6 +234,8 @@ struct ast_binstore_s
     int             opbin;
     ast_expression *dest;
     ast_expression *source;
+    /* for &~= which uses the destination in a binary in source we can use this */
+    bool            keep_dest;
 };
 ast_binstore* ast_binstore_new(lex_ctx    ctx,
                                int        storeop,