X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.h;h=a296e16523cd02f1663433ee52ab60d0572878f4;hp=f27fc9ec38cdac2e73aed56c308d78e30812b34a;hb=ae251d391464763fd8293efd65627f9f9fd56572;hpb=71d79d99d3368a807c87db54cc3ea13146549cb4 diff --git a/gmqcc.h b/gmqcc.h index f27fc9e..a296e16 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -253,7 +253,7 @@ uint32_t util_crc32(const char *, int, register const short); while (N##_add(*++elements) != -1 && len--); \ return N##_elements; \ } \ - typedef char VECTOR_FILL(extra_semicolon_,__COUNTER__) + typedef char VECTOR_FILL(extra_semicolon_##N,__COUNTER__) #define VECTOR_PROT(T,N) \ extern T* N##_data ; \ extern long N##_elements ; \ @@ -516,6 +516,9 @@ VECTOR_PROT(prog_section_function, code_functions ); VECTOR_PROT(int, code_globals ); VECTOR_PROT(char, code_chars ); +typedef float qcfloat; +typedef int32_t qcint; + /* * code_write -- writes out the compiled file * code_init -- prepares the code file @@ -524,6 +527,7 @@ bool code_write (const char *filename); void code_init (); uint32_t code_genstring (const char *string); uint32_t code_cachedstring(const char *string); +qcint code_alloc_field (size_t qcsize); /*===================================================================*/ /*========================= assembler.c =============================*/ @@ -834,9 +838,6 @@ typedef struct { * Since we may want to support that as well, let's redefine * float and int here. */ -typedef float qcfloat; -typedef int32_t qcint; - typedef union { qcint _int; qcint string;