Lines Matching refs:new_table
946 Hash_table *new_table; in hash_rehash() local
953 new_table = &storage; in hash_rehash()
954 new_table->bucket = calloc (new_size, sizeof *new_table->bucket); in hash_rehash()
955 if (new_table->bucket == NULL) in hash_rehash()
957 new_table->n_buckets = new_size; in hash_rehash()
958 new_table->bucket_limit = new_table->bucket + new_size; in hash_rehash()
959 new_table->n_buckets_used = 0; in hash_rehash()
960 new_table->n_entries = 0; in hash_rehash()
961 new_table->tuning = table->tuning; in hash_rehash()
962 new_table->hasher = table->hasher; in hash_rehash()
963 new_table->comparator = table->comparator; in hash_rehash()
964 new_table->data_freer = table->data_freer; in hash_rehash()
982 new_table->entry_stack = table->entry_stack; in hash_rehash()
984 new_table->free_entry_list = table->free_entry_list; in hash_rehash()
986 if (transfer_entries (new_table, table, false)) in hash_rehash()
990 table->bucket = new_table->bucket; in hash_rehash()
991 table->bucket_limit = new_table->bucket_limit; in hash_rehash()
992 table->n_buckets = new_table->n_buckets; in hash_rehash()
993 table->n_buckets_used = new_table->n_buckets_used; in hash_rehash()
994 table->free_entry_list = new_table->free_entry_list; in hash_rehash()
1012 table->free_entry_list = new_table->free_entry_list; in hash_rehash()
1013 if (! (transfer_entries (table, new_table, true) in hash_rehash()
1014 && transfer_entries (table, new_table, false))) in hash_rehash()
1017 free (new_table->bucket); in hash_rehash()