mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[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:
parent
6e4812f914
commit
e7710bb7ac
2 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue