]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
Convenience function to store a predefined string in the qc string area
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index bc24c53439cca6f09cf60dff17f57911b58531cd..d0ce67a02aba7846dd0ce31fb6049cdae7e2edc7 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -272,12 +272,14 @@ struct ast_loop_s
     ast_expression *precond;
     ast_expression *postcond;
     ast_expression *increment;
+    ast_expression *body;
 };
-ast_loop* ast_loop_new(lex_ctx, ctx,
+ast_loop* ast_loop_new(lex_ctx ctx,
                        ast_expression *initexpr,
                        ast_expression *precond,
                        ast_expression *postcond,
-                       ast_expression *increment);
+                       ast_expression *increment,
+                       ast_expression *body);
 void ast_loop_delete(ast_loop*);
 
 bool ast_loop_codegen(ast_loop*, ast_function*, bool lvalue, ir_value**);
@@ -319,6 +321,8 @@ struct ast_function_s
 
     ir_function *ir_func;
     ir_block    *curblock;
+    ir_block    *breakblock;
+    ir_block    *continueblock;
 
     size_t       labelcount;
     /* in order for thread safety - for the optional