Lines Matching refs:table

303 bfd_hash_table_init_n (table, newfunc, size)  in bfd_hash_table_init_n()  argument
304 struct bfd_hash_table *table; in bfd_hash_table_init_n()
314 table->memory = (PTR) objalloc_create ();
315 if (table->memory == NULL)
320 table->table = ((struct bfd_hash_entry **)
321 objalloc_alloc ((struct objalloc *) table->memory, alloc));
322 if (table->table == NULL)
327 memset ((PTR) table->table, 0, alloc);
328 table->size = size;
329 table->newfunc = newfunc;
336 bfd_hash_table_init (table, newfunc) in bfd_hash_table_init() argument
337 struct bfd_hash_table *table; in bfd_hash_table_init()
342 return bfd_hash_table_init_n (table, newfunc, DEFAULT_SIZE);
348 bfd_hash_table_free (table) in bfd_hash_table_free() argument
349 struct bfd_hash_table *table; in bfd_hash_table_free()
351 objalloc_free ((struct objalloc *) table->memory);
352 table->memory = NULL;
358 bfd_hash_lookup (table, string, create, copy) in bfd_hash_lookup() argument
359 struct bfd_hash_table *table; in bfd_hash_lookup()
383 index = hash % table->size;
384 for (hashp = table->table[index];
396 hashp = (*table->newfunc) ((struct bfd_hash_entry *) NULL, table, string);
403 new = (char *) objalloc_alloc ((struct objalloc *) table->memory,
415 hashp->next = table->table[index];
416 table->table[index] = hashp;
424 bfd_hash_replace (table, old, nw) in bfd_hash_replace() argument
425 struct bfd_hash_table *table; in bfd_hash_replace()
432 index = old->hash % table->size;
433 for (pph = &table->table[index];
450 bfd_hash_newfunc (entry, table, string) in bfd_hash_newfunc() argument
452 struct bfd_hash_table *table;
457 bfd_hash_allocate (table, sizeof (struct bfd_hash_entry)));
464 bfd_hash_allocate (table, size) in bfd_hash_allocate() argument
465 struct bfd_hash_table *table; in bfd_hash_allocate()
470 ret = objalloc_alloc ((struct objalloc *) table->memory, size);
479 bfd_hash_traverse (table, func, info) in bfd_hash_traverse() argument
480 struct bfd_hash_table *table; in bfd_hash_traverse()
486 for (i = 0; i < table->size; i++)
490 for (p = table->table[i]; p != NULL; p = p->next)
525 struct bfd_hash_table table; member
543 strtab_hash_newfunc (entry, table, string) in strtab_hash_newfunc() argument
545 struct bfd_hash_table *table;
554 bfd_hash_allocate (table, sizeof (struct strtab_hash_entry)));
560 bfd_hash_newfunc ((struct bfd_hash_entry *) ret, table, string));
576 bfd_hash_lookup (&(t)->table, (string), (create), (copy)))
583 struct bfd_strtab_hash *table; in _bfd_stringtab_init() local
586 table = (struct bfd_strtab_hash *) bfd_malloc (amt); in _bfd_stringtab_init()
587 if (table == NULL) in _bfd_stringtab_init()
590 if (! bfd_hash_table_init (&table->table, strtab_hash_newfunc)) in _bfd_stringtab_init()
592 free (table); in _bfd_stringtab_init()
596 table->size = 0; in _bfd_stringtab_init()
597 table->first = NULL; in _bfd_stringtab_init()
598 table->last = NULL; in _bfd_stringtab_init()
599 table->xcoff = FALSE; in _bfd_stringtab_init()
601 return table; in _bfd_stringtab_init()
622 _bfd_stringtab_free (table) in _bfd_stringtab_free() argument
623 struct bfd_strtab_hash *table; in _bfd_stringtab_free()
625 bfd_hash_table_free (&table->table);
626 free (table);
651 bfd_hash_allocate (&tab->table,
661 n = (char *) bfd_hash_allocate (&tab->table, strlen (str) + 1);