]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
fixed shadow issue
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index ec28a30e7fa72e609f5d6e87700f2b77fd2956d9..27597f44e57ead514b892c17f9de6ccb5714e6f0 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <ctype.h>
 
+
 #define GMQCC_VERSION_MAJOR 0
 #define GMQCC_VERSION_MINOR 1
 #define GMQCC_VERSION_PATCH 0
 #   endif /* !true  */
 #   define false (0)
 #   define true  (1)
-#   define bool _Bool
 #   if __STDC_VERSION__ < 199901L && __GNUC__ < 3
         typedef int  _Bool
+#   else
+        typedef _Bool bool;
 #   endif
 #   endif /* !__cplusplus */
 
@@ -532,8 +534,10 @@ VECTOR_PROT(char,                   code_chars     );
  * code_write -- writes out the compiled file
  * code_init  -- prepares the code file
  */
-void code_write ();
-void code_init  ();
+bool     code_write       (const char *filename);
+void     code_init        ();
+uint32_t code_genstring   (const char *string);
+uint32_t code_cachedstring(const char *string);
 
 /*===================================================================*/
 /*========================= assembler.c =============================*/