[qfcc] Give symtabs a name field

It's currently just to help with debugging now that I've got more
less-random symtabs floating around.
This commit is contained in:
Bill Currie 2024-09-21 23:09:38 +09:00
parent 6e4812f914
commit e7710bb7ac
2 changed files with 2 additions and 0 deletions

View file

@ -107,6 +107,7 @@ typedef struct symtab_s {
symbol_t *(*procsymbol) (const char *name, struct symtab_s *symtab);
void *procsymbol_data;
void *data;
const char *name;
} symtab_t;
const char *symtype_str (sy_type_e type) __attribute__((const));

View file

@ -116,6 +116,7 @@ glsl_create_block (specifier_t spec, symbol_t *block_sym)
.members = new_symtab (current_symtab, stab_struct),
.space = defspace_new (ds_backed),
};
block->members->name = save_string (block_sym->name);
block->members->data = block;
block->space->alloc_aligned = glsl_block_alloc_loc;
Hash_Add (block_tab, block);