X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Felhash.c;h=5bf3476893b5624b4796ea14dda3f8e1e6eadb5c;hb=1aa5d6b7bb3b343fbcc650c0c3befed77f1e5045;hp=058fdd46d48577e7b30f7cb1772ec1d1b66ca785;hpb=2b7371e841478fd7b9bc7e4d9a515e0c26b9ed9a;p=chise%2Fxemacs-chise.git- diff --git a/src/elhash.c b/src/elhash.c index 058fdd4..5bf3476 100644 --- a/src/elhash.c +++ b/src/elhash.c @@ -440,7 +440,7 @@ make_standard_lisp_hash_table (enum hash_table_test test, double rehash_threshold, enum hash_table_weakness weakness) { - hash_table_hash_function_t hash_function = 0; + hash_table_hash_function_t hash_function = 0; hash_table_test_function_t test_function = 0; switch (test) @@ -500,13 +500,7 @@ make_general_lisp_hash_table (hash_table_hash_function_t hash_function, compute_hash_table_derived_values (ht); /* We leave room for one never-occupied sentinel hentry at the end. */ - ht->hentries = xnew_array (hentry, ht->size + 1); - - { - hentry *e, *sentinel; - for (e = ht->hentries, sentinel = e + ht->size; e <= sentinel; e++) - CLEAR_HENTRY (e); - } + ht->hentries = xnew_array_and_zero (hentry, ht->size + 1); XSETHASH_TABLE (hash_table, ht); @@ -1547,5 +1541,5 @@ vars_of_elhash (void) { /* This must NOT be staticpro'd */ Vall_weak_hash_tables = Qnil; - pdump_wire_list (&Vall_weak_hash_tables); + dump_add_weak_object_chain (&Vall_weak_hash_tables); }