Lines Matching refs:array

57   struct elf_strtab_hash_entry **array;  member
115 table->array = ((struct elf_strtab_hash_entry **) in _bfd_elf_strtab_init()
117 if (table->array == NULL) in _bfd_elf_strtab_init()
123 table->array[0] = NULL; in _bfd_elf_strtab_init()
134 free (tab->array); in _bfd_elf_strtab_free()
170 tab->array = (struct elf_strtab_hash_entry **) in _bfd_elf_strtab_add()
171 bfd_realloc_or_free (tab->array, tab->alloced * amt); in _bfd_elf_strtab_add()
172 if (tab->array == NULL) in _bfd_elf_strtab_add()
177 tab->array[entry->u.index] = entry; in _bfd_elf_strtab_add()
189 ++tab->array[idx]->refcount; in _bfd_elf_strtab_addref()
199 BFD_ASSERT (tab->array[idx]->refcount > 0); in _bfd_elf_strtab_delref()
200 --tab->array[idx]->refcount; in _bfd_elf_strtab_delref()
206 return tab->array[idx]->refcount; in _bfd_elf_strtab_refcount()
215 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_clear_all_refs()
239 save->refcount[idx] = tab->array[idx]->refcount; in _bfd_elf_strtab_save()
255 tab->array[idx]->refcount = save->refcount[idx]; in _bfd_elf_strtab_restore()
262 tab->array[idx]->refcount = 0; in _bfd_elf_strtab_restore()
263 tab->array[idx]->len = 0; in _bfd_elf_strtab_restore()
282 entry = tab->array[idx]; in _bfd_elf_strtab_offset()
285 return tab->array[idx]->u.index; in _bfd_elf_strtab_offset()
302 BFD_ASSERT (tab->array[i]->refcount == 0); in _bfd_elf_strtab_emit()
303 len = tab->array[i]->len; in _bfd_elf_strtab_emit()
307 str = tab->array[i]->root.string; in _bfd_elf_strtab_emit()
361 struct elf_strtab_hash_entry **array, **a, *e; in _bfd_elf_strtab_finalize() local
368 array = (struct elf_strtab_hash_entry **) bfd_malloc (amt); in _bfd_elf_strtab_finalize()
369 if (array == NULL) in _bfd_elf_strtab_finalize()
372 for (i = 1, a = array; i < tab->size; ++i) in _bfd_elf_strtab_finalize()
374 e = tab->array[i]; in _bfd_elf_strtab_finalize()
385 size = a - array; in _bfd_elf_strtab_finalize()
388 qsort (array, size, sizeof (struct elf_strtab_hash_entry *), strrevcmp); in _bfd_elf_strtab_finalize()
406 while (--a >= array) in _bfd_elf_strtab_finalize()
422 if (array) in _bfd_elf_strtab_finalize()
423 free (array); in _bfd_elf_strtab_finalize()
429 e = tab->array[i]; in _bfd_elf_strtab_finalize()
442 e = tab->array[i]; in _bfd_elf_strtab_finalize()