VECTOR_MAKE(int, code_globals );
VECTOR_MAKE(char, code_chars );
+uint16_t code_crc;
uint32_t code_entfields;
void code_init() {
prog_section_def empty_def = {0, 0, 0};
int i = 0;
+ code_crc = 0;
+ code_entfields = 0;
+
/* omit creation of null code */
if (OPTS_FLAG(OMIT_NULL_BYTES))
return;
code_statements_add(empty_statement);
code_defs_add (empty_def);
code_fields_add (empty_def);
-
- code_entfields = 0;
}
uint32_t code_genstring(const char *str)
if (opts_forcecrc)
code_header.crc16 = opts_forced_crc;
else
- code_header.crc16 = 0; /* TODO: */
+ code_header.crc16 = code_crc;
code_header.entfield = code_entfields;
if (OPTS_FLAG(DARKPLACES_STRING_TABLE_BUG)) {