]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - exec.c
Uhh I did it again
[xonotic/gmqcc.git] / exec.c
diff --git a/exec.c b/exec.c
index 5bff85e06a8605e692c58778820096b19cffb8ad..7a6322be5d3a75bcd0ed4ea298d30cff7e1561f1 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -243,13 +243,8 @@ void prog_free_entity(qc_program *prog, qcint e)
     prog->entitypool[e] = false;
 }
 
-qcint prog_tempstring(qc_program *prog, const char *_str)
+qcint prog_tempstring(qc_program *prog, const char *str)
 {
-    /* we don't access it, but the macro-generated functions don't use
-     * const
-     */
-    char *str = (char*)_str;
-
     size_t len = strlen(str);
     size_t at = prog->tempstring_at;
 
@@ -614,10 +609,16 @@ const char *type_name[TYPE_COUNT] = {
     "field",
     "function",
     "pointer",
-#if 0
     "integer",
-#endif
-    "variant"
+
+    "variant",
+
+    "struct",
+    "union",
+    "array",
+
+    "nil",
+    "noexpr"
 };
 
 typedef struct {