Lines Matching refs:name

45 	const char *name;  member
60 static void print_type_name(enum symbol_type type, const char *name);
153 struct symbol *find_symbol(const char *name, enum symbol_type ns, int exact) in find_symbol() argument
157 hash_for_each_possible(symbol_hashtable, sym, hnode, crc32(name)) { in find_symbol()
159 strcmp(name, sym->name) == 0 && in find_symbol()
184 static struct string_list *process_enum(const char *name, enum symbol_type type, in process_enum() argument
219 if (!name) in process_enum()
227 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument
236 defn = process_enum(name, type, defn); in __add_symbol()
241 h = crc32(name); in __add_symbol()
244 strcmp(name, sym->name)) in __add_symbol()
252 print_type_name(type, name); in __add_symbol()
257 error_with_pos("redefinition of %s", name); in __add_symbol()
261 print_type_name(type, name); in __add_symbol()
277 free(sym->name); in __add_symbol()
283 sym->name = xstrdup(name); in __add_symbol()
297 if (symbol_types[type].name) in __add_symbol()
299 symbol_types[type].name, name); in __add_symbol()
302 type, name); in __add_symbol()
313 struct symbol *add_symbol(const char *name, enum symbol_type type, in add_symbol() argument
316 return __add_symbol(name, type, defn, is_extern, 0); in add_symbol()
319 static struct symbol *add_reference_symbol(const char *name, enum symbol_type type, in add_reference_symbol() argument
322 return __add_symbol(name, type, defn, is_extern, 1); in add_reference_symbol()
593 symbol_types[cur->tag].name, in expand_and_crc_sym()
596 (symbol_types[cur->tag].name), in expand_and_crc_sym()
607 symbol_types[cur->tag].name, in expand_and_crc_sym()
611 crc = partial_crc32(symbol_types[cur->tag].name, in expand_and_crc_sym()
638 void export_symbol(const char *name) in export_symbol() argument
644 sym = find_symbol(name, SYM_NORMAL, 0); in export_symbol()
646 error_with_pos("export undefined symbol %s", name); in export_symbol()
651 fprintf(debugfile, "Export %s == <", name); in export_symbol()
669 name); in export_symbol()
673 print_type_name(sym->type, sym->name); in export_symbol()
689 printf("#SYMVER %s 0x%08lx\n", name, (unsigned long)crc); in export_symbol()
699 static void print_type_name(enum symbol_type type, const char *name) in print_type_name() argument
701 if (symbol_types[type].name) in print_type_name()
702 fprintf(stderr, "%s %s", symbol_types[type].name, name); in print_type_name()
704 fprintf(stderr, "%s", name); in print_type_name()
828 fputs(sym->name, dumpfile); in main()