Home | History | Annotate | Download | only in lib

Lines Matching defs:new_table

946   Hash_table *new_table;
953 new_table = &storage;
954 new_table->bucket = calloc (new_size, sizeof *new_table->bucket);
955 if (new_table->bucket == NULL)
957 new_table->n_buckets = new_size;
958 new_table->bucket_limit = new_table->bucket + new_size;
959 new_table->n_buckets_used = 0;
960 new_table->n_entries = 0;
961 new_table->tuning = table->tuning;
962 new_table->hasher = table->hasher;
963 new_table->comparator = table->comparator;
964 new_table->data_freer = table->data_freer;
982 new_table->entry_stack = table->entry_stack;
984 new_table->free_entry_list = table->free_entry_list;
986 if (transfer_entries (new_table, table, false))
990 table->bucket = new_table->bucket;
991 table->bucket_limit = new_table->bucket_limit;
992 table->n_buckets = new_table->n_buckets;
993 table->n_buckets_used = new_table->n_buckets_used;
994 table->free_entry_list = new_table->free_entry_list;
999 /* We've allocated new_table->bucket (and possibly some entries),
1001 new_table. We must undo the partial move before returning
1002 failure. The only way to get into this situation is if new_table
1012 table->free_entry_list = new_table->free_entry_list;
1013 if (! (transfer_entries (table, new_table, true)
1014 && transfer_entries (table, new_table, false)))
1017 new_table->bucket);