]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
increment the optimization counter for DCE'd folds, also enable -O3 for compilation.
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index 2ab3a00e5cc940ff97229e47bc5f161625974c0d..d0cd85edf6b6c62db8d611375bea93870150dd5c 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -713,9 +713,10 @@ enum {
 /* TODO: elide */
 extern const char *util_instr_str[VINSTR_END];
 
-/* TOO: _t */
-typedef float   qcfloat_t;
-typedef int32_t qcint_t;
+
+typedef float    qcfloat_t;
+typedef int32_t  qcint_t;
+typedef uint32_t qcuint_t;
 
 typedef struct {
     prog_section_statement_t *statements;
@@ -728,7 +729,7 @@ typedef struct {
     uint16_t                  crc;
     uint32_t                  entfields;
     ht                        string_cache;
-    qcint_t                     string_cached_empty;
+    qcint_t                   string_cached_empty;
 } code_t;
 
 /*
@@ -744,7 +745,7 @@ GMQCC_WARN
 code_t   *code_init          (void);
 void      code_cleanup       (code_t *);
 uint32_t  code_genstring     (code_t *, const char *string);
-qcint_t     code_alloc_field   (code_t *, size_t qcsize);
+qcint_t   code_alloc_field   (code_t *, size_t qcsize);
 void      code_push_statement(code_t *, prog_section_statement_t *stmt, int linenum);
 void      code_pop_statement (code_t *);
 
@@ -824,11 +825,6 @@ typedef struct {
     qcfloat_t x, y, z;
 } vec3_t;
 
-vec3_t  vec3_add  (vec3_t, vec3_t);
-vec3_t  vec3_sub  (vec3_t, vec3_t);
-qcfloat_t vec3_mulvv(vec3_t, vec3_t);
-vec3_t  vec3_mulvf(vec3_t, float);
-
 /*===================================================================*/
 /*============================= exec.c ==============================*/
 /*===================================================================*/