]> git.eshelyaron.com Git - emacs.git/commit
* src/fns.c: Use `EQ (key, Qunbound)` to check if a slot is in use
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Jul 2019 18:24:02 +0000 (14:24 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Jul 2019 19:03:03 +0000 (15:03 -0400)
commitc74da403aa95ec67598c41aa4f1b97975391135b
tree6d71f3384c6c5994e12fe771e4ab2601d5d93c8f
parentbbff294bf455a9ad4ae66edce8e70f29a40e2e6d
* src/fns.c: Use `EQ (key, Qunbound)` to check if a slot is in use

(make_hash_table): Use Qunbound for the key_and_value table.
(maybe_resize_hash_table): Set new key_and_value slots to Qunbound.
(hash_table_rehash): Don't bother copying the old table of hashes since
we're recomputing it completely.
(hash_table_rehash): Use hash_rehash_needed_p more.
(hash_put): Add assertion that the slot was indeed considered empty.
(hash_remove_from_table, hash_clear, sweep_weak_table): Set empty
slot's key to Qunbound.
(Fmaphash): Use `EQ (key, Qunbound)` to check if a slot is in use.

* src/lisp.h (struct Lisp_Hash_Table): Update comments.
src/fns.c
src/lisp.h