Home | History | Annotate | Download | only in program

Lines Matching refs:hdr

50     struct symbol_header *hdr;
108 struct symbol_header *hdr;
145 const struct symbol_header *const hdr = sym->hdr;
148 for (sym2 = hdr->symbols
151 assert(sym2->hdr == hdr);
171 struct symbol_header *const hdr = sym->hdr;
173 assert(hdr->symbols == sym);
175 hdr->symbols = sym->next_with_same_name;
209 struct symbol_header *const hdr = find_symbol(table, name);
213 if (hdr != NULL) {
216 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) {
217 assert(sym->hdr == hdr);
247 struct symbol_header *hdr;
253 hdr = iter->curr->hdr;
257 assert(iter->curr->hdr == hdr);
283 struct symbol_header *const hdr = find_symbol(table, name);
286 if (hdr != NULL) {
287 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) {
288 assert(sym->hdr == hdr);
305 struct symbol_header *const hdr = find_symbol(table, name);
307 if (hdr != NULL) {
311 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) {
312 assert(sym->hdr == hdr);
329 struct symbol_header *hdr;
334 hdr = find_symbol(table, name);
338 if (hdr == NULL) {
339 hdr = calloc(1, sizeof(*hdr));
340 hdr->name = strdup(name);
342 hash_table_insert(table->ht, hdr, hdr->name);
343 hdr->next = table->hdr;
344 table->hdr = hdr;
352 for (sym = hdr->symbols
362 sym->next_with_same_name = hdr->symbols;
364 sym->hdr = hdr;
369 assert(sym->hdr == hdr);
371 hdr->symbols = sym;
384 struct symbol_header *hdr;
391 hdr = find_symbol(table, name);
395 if (hdr == NULL) {
396 hdr = calloc(1, sizeof(*hdr));
397 hdr->name = strdup(name);
399 hash_table_insert(table->ht, hdr, hdr->name);
400 hdr->next = table->hdr;
401 table->hdr = hdr;
409 for (sym = hdr->symbols
427 sym->hdr = hdr;
431 assert(sym->hdr == hdr);
436 if (hdr->symbols == NULL) {
437 hdr->symbols = sym;
439 for (curr = hdr->symbols
473 struct symbol_header *hdr;
480 for (hdr = table->hdr; hdr != NULL; hdr = next) {
481 next = hdr->next;
482 free(hdr->name);
483 free(hdr);