mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
strlist: use a hash table
Use a hash table to enforce uniqueness in a string list. It is still an ordered list, however, and can be walked in insertion order. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
@@ -1965,7 +1965,7 @@ static void obj_write_file(void)
|
||||
struct ExpDef *export;
|
||||
int lname_idx;
|
||||
ObjRecord *orp;
|
||||
const StrList *depfile;
|
||||
const struct strlist_entry *depfile;
|
||||
const bool debuginfo = (dfmt == &borland_debug_form);
|
||||
|
||||
/*
|
||||
@@ -1988,7 +1988,7 @@ static void obj_write_file(void)
|
||||
* Output file dependency information
|
||||
*/
|
||||
if (!obj_nodepend) {
|
||||
list_for_each(depfile, depend_list) {
|
||||
list_for_each(depfile, depend_list->head) {
|
||||
uint32_t ts;
|
||||
|
||||
ts = obj_file_timestamp(depfile->str);
|
||||
|
||||
Reference in New Issue
Block a user