• Home
  • Raw
  • Download

Lines Matching refs:hdr

50     struct symbol_header *hdr;  member
108 struct symbol_header *hdr; member
145 const struct symbol_header *const hdr = sym->hdr; in check_symbol_table() local
148 for (sym2 = hdr->symbols in check_symbol_table()
151 assert(sym2->hdr == hdr); in check_symbol_table()
171 struct symbol_header *const hdr = sym->hdr; in _mesa_symbol_table_pop_scope() local
173 assert(hdr->symbols == sym); in _mesa_symbol_table_pop_scope()
175 hdr->symbols = sym->next_with_same_name; in _mesa_symbol_table_pop_scope()
209 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_iterator_ctor() local
213 if (hdr != NULL) { in _mesa_symbol_table_iterator_ctor()
216 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) { in _mesa_symbol_table_iterator_ctor()
217 assert(sym->hdr == hdr); in _mesa_symbol_table_iterator_ctor()
247 struct symbol_header *hdr; in _mesa_symbol_table_iterator_next() local
253 hdr = iter->curr->hdr; in _mesa_symbol_table_iterator_next()
257 assert(iter->curr->hdr == hdr); in _mesa_symbol_table_iterator_next()
258 (void)hdr; in _mesa_symbol_table_iterator_next()
284 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_symbol_scope() local
287 if (hdr != NULL) { in _mesa_symbol_table_symbol_scope()
288 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) { in _mesa_symbol_table_symbol_scope()
289 assert(sym->hdr == hdr); in _mesa_symbol_table_symbol_scope()
306 struct symbol_header *const hdr = find_symbol(table, name); in _mesa_symbol_table_find_symbol() local
308 if (hdr != NULL) { in _mesa_symbol_table_find_symbol()
312 for (sym = hdr->symbols; sym != NULL; sym = sym->next_with_same_name) { in _mesa_symbol_table_find_symbol()
313 assert(sym->hdr == hdr); in _mesa_symbol_table_find_symbol()
330 struct symbol_header *hdr; in _mesa_symbol_table_add_symbol() local
335 hdr = find_symbol(table, name); in _mesa_symbol_table_add_symbol()
339 if (hdr == NULL) { in _mesa_symbol_table_add_symbol()
340 hdr = calloc(1, sizeof(*hdr)); in _mesa_symbol_table_add_symbol()
341 hdr->name = strdup(name); in _mesa_symbol_table_add_symbol()
343 hash_table_insert(table->ht, hdr, hdr->name); in _mesa_symbol_table_add_symbol()
344 hdr->next = table->hdr; in _mesa_symbol_table_add_symbol()
345 table->hdr = hdr; in _mesa_symbol_table_add_symbol()
353 for (sym = hdr->symbols in _mesa_symbol_table_add_symbol()
363 sym->next_with_same_name = hdr->symbols; in _mesa_symbol_table_add_symbol()
365 sym->hdr = hdr; in _mesa_symbol_table_add_symbol()
370 assert(sym->hdr == hdr); in _mesa_symbol_table_add_symbol()
372 hdr->symbols = sym; in _mesa_symbol_table_add_symbol()
385 struct symbol_header *hdr; in _mesa_symbol_table_add_global_symbol() local
392 hdr = find_symbol(table, name); in _mesa_symbol_table_add_global_symbol()
396 if (hdr == NULL) { in _mesa_symbol_table_add_global_symbol()
397 hdr = calloc(1, sizeof(*hdr)); in _mesa_symbol_table_add_global_symbol()
398 hdr->name = strdup(name); in _mesa_symbol_table_add_global_symbol()
400 hash_table_insert(table->ht, hdr, hdr->name); in _mesa_symbol_table_add_global_symbol()
401 hdr->next = table->hdr; in _mesa_symbol_table_add_global_symbol()
402 table->hdr = hdr; in _mesa_symbol_table_add_global_symbol()
410 for (sym = hdr->symbols in _mesa_symbol_table_add_global_symbol()
428 sym->hdr = hdr; in _mesa_symbol_table_add_global_symbol()
432 assert(sym->hdr == hdr); in _mesa_symbol_table_add_global_symbol()
437 if (hdr->symbols == NULL) { in _mesa_symbol_table_add_global_symbol()
438 hdr->symbols = sym; in _mesa_symbol_table_add_global_symbol()
440 for (curr = hdr->symbols in _mesa_symbol_table_add_global_symbol()
474 struct symbol_header *hdr; in _mesa_symbol_table_dtor() local
481 for (hdr = table->hdr; hdr != NULL; hdr = next) { in _mesa_symbol_table_dtor()
482 next = hdr->next; in _mesa_symbol_table_dtor()
483 free(hdr->name); in _mesa_symbol_table_dtor()
484 free(hdr); in _mesa_symbol_table_dtor()