]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
static variables now don't get re-initialized in functions; cannot be initialized...
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 52858ac7f132ce14372fe7e92570593e11d2071f..26434138cb7feb1b12cffe1635596301329c4a10 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -625,6 +625,14 @@ struct ast_function_s
 
     int builtin;
 
+    /* list of used-up names for statics without the count suffix */
+    char       **static_names;
+    /* number of static variables, by convention this includes the
+     * ones without the count-suffix - remember this when dealing
+     * with savegames. uint instead of size_t as %zu in printf is
+     * C99, so no windows support. */
+    unsigned int static_count;
+
     ir_function *ir_func;
     ir_block    *curblock;
     ir_block    **breakblocks;