mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 21:09:41 -07:00
add per-item purging to the hash table
This commit is contained in:
1 parent
66606b0327
commit
880b8135cc
7 files changed
+89
-58
No files matched your search
@@ -161,9 +161,7 @@ lnk_section_table_purge(LNK_SectionTable *sectab, String8 name)
|
||||
|
||||
LNK_SectionNode *node = lnk_section_table_remove(sectab, name);
|
||||
String8 name_with_flags = lnk_make_name_with_flags(scratch.arena, name, node->data.flags);
|
||||
KeyValuePair *kv = hash_table_search_string(sectab->sect_ht, name_with_flags);
|
||||
kv->key_string = str8_zero();
|
||||
kv->value_raw = 0;
|
||||
hash_table_purge_string(sectab->sect_ht, name_with_flags);
|
||||
|
||||
scratch_end(scratch);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user