]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - util.c
ast-test should also finalize functions directly
[xonotic/gmqcc.git] / util.c
diff --git a/util.c b/util.c
index f97eab4fa211d6ddc81cabc296150d81d9624639..7735a52457dba0e8a12b45ab1bf2013273b7f1f9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -56,7 +56,7 @@ void util_memory_d(void *ptrn, unsigned int line, const char *file) {
     if (!ptrn) return;
     data = (void*)((uintptr_t)ptrn-sizeof(struct memblock_t));
     info = (struct memblock_t*)data;
-    
+
     util_debug("MEM", "released:   % 8u (bytes) address 0x%08X @ %s:%u\n", info->byte, data, file, line);
     mem_db += info->byte;
     mem_dt++;
@@ -399,3 +399,11 @@ int util_getline(char **lineptr, size_t *n, FILE *stream) {
     *pos = '\0';
     return (ret = pos - *lineptr);
 }
+
+/* TODO: opts.c? when it gets large enugh */
+/* global options */
+bool opts_debug                     = false;
+bool opts_memchk                    = false;
+bool opts_darkplaces_stringtablebug = false;
+bool opts_omit_nullcode             = false;
+int  opts_compiler                  = COMPILER_GMQCC;