]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
Added splint.sh (a progressive way to fix some possible bugs)
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 6eaba3c9fd95b6757f3a638131aa93439aca605b..9f8e1fa4e9f0aec9657c88865aede0d3f42344e8 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -22,7 +22,7 @@
  */
 #ifndef GMQCC_IR_HDR
 #define GMQCC_IR_HDR
-
+#include "gmqcc.h"
 /* ir_value */
 
 typedef struct
@@ -252,6 +252,7 @@ typedef struct ir_function_s
     ir_value **locals;
 
     size_t allocated_locals;
+    size_t globaltemps;
 
     ir_block*     first;
     ir_block*     last;
@@ -314,7 +315,9 @@ typedef struct ir_builder_s
 
     /* the highest func->allocated_locals */
     size_t        max_locals;
+    size_t        max_globaltemps;
     uint32_t      first_common_local;
+    uint32_t      first_common_globaltemp;
 
     const char **filenames;
     qcint       *filestrings;