]> 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 3a133ac1ef8524840960ac0eef5c6962f5df64de..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,
@@ -525,7 +527,7 @@ struct ast_goto_s
 
 ast_goto* ast_goto_new(lex_ctx ctx, const char *name);
 void ast_goto_delete(ast_goto*);
-void ast_goto_setlabel(ast_goto*, ast_label*);
+void ast_goto_set_label(ast_goto*, ast_label*);
 
 bool ast_goto_codegen(ast_goto*, ast_function*, bool lvalue, ir_value**);