Lines Matching refs:name
46 const char *name; member
61 static void print_type_name(enum symbol_type type, const char *name);
154 struct symbol *find_symbol(const char *name, enum symbol_type ns, int exact) in find_symbol() argument
156 unsigned long h = crc32(name) % HASH_BUCKETS; in find_symbol()
161 strcmp(name, sym->name) == 0 && in find_symbol()
185 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument
224 if (!name) in __add_symbol()
229 h = crc32(name) % HASH_BUCKETS; in __add_symbol()
232 strcmp(name, sym->name) == 0) { in __add_symbol()
239 print_type_name(type, name); in __add_symbol()
249 print_type_name(type, name); in __add_symbol()
258 error_with_pos("redefinition of %s", name); in __add_symbol()
278 sym->name = name; in __add_symbol()
293 if (symbol_types[type].name) in __add_symbol()
295 symbol_types[type].name, name); in __add_symbol()
298 type, name); in __add_symbol()
309 struct symbol *add_symbol(const char *name, enum symbol_type type, in add_symbol() argument
312 return __add_symbol(name, type, defn, is_extern, 0); in add_symbol()
315 static struct symbol *add_reference_symbol(const char *name, enum symbol_type type, in add_reference_symbol() argument
318 return __add_symbol(name, type, defn, is_extern, 1); in add_reference_symbol()
589 symbol_types[cur->tag].name, in expand_and_crc_sym()
592 (symbol_types[cur->tag].name), in expand_and_crc_sym()
603 symbol_types[cur->tag].name, in expand_and_crc_sym()
607 crc = partial_crc32(symbol_types[cur->tag].name, in expand_and_crc_sym()
634 void export_symbol(const char *name) in export_symbol() argument
638 sym = find_symbol(name, SYM_NORMAL, 0); in export_symbol()
640 error_with_pos("export undefined symbol %s", name); in export_symbol()
646 fprintf(debugfile, "Export %s == <", name); in export_symbol()
664 "warning", name); in export_symbol()
667 print_type_name(sym->type, sym->name); in export_symbol()
687 name, crc); in export_symbol()
698 static void print_type_name(enum symbol_type type, const char *name) in print_type_name() argument
700 if (symbol_types[type].name) in print_type_name()
701 fprintf(stderr, "%s %s", symbol_types[type].name, name); in print_type_name()
703 fprintf(stderr, "%s", name); in print_type_name()
851 fputs(sym->name, dumpfile); in main()