X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.h;h=88cf7ff21831336c15f1d6d87515af82176fb6f6;hp=1c189599d0cf4dda3981db9bea2c6e2a0a8d7120;hb=566e7615466c776fc296b67894621a85691cd42b;hpb=f09c6a5d63faaad1b915868c461b658efd374a34 diff --git a/gmqcc.h b/gmqcc.h index 1c18959..88cf7ff 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -502,6 +502,10 @@ typedef int32_t qcint_t; typedef uint32_t qcuint_t; struct code_t { + void* operator new(std::size_t); + void operator delete(void*); + code_t(); + ~code_t(); std::vector statements; std::vector linenums; std::vector columnnums; @@ -510,10 +514,10 @@ struct code_t { std::vector functions; std::vector globals; std::vector chars; - uint16_t crc; - uint32_t entfields; + uint16_t crc = 0; + uint32_t entfields = 0; ht string_cache; - qcint_t string_cached_empty; + qcint_t string_cached_empty = 0; }; /*