diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-07-26 14:24:02 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-07-26 15:03:03 -0400 |
commit | c74da403aa95ec67598c41aa4f1b97975391135b (patch) | |
tree | 6d71f3384c6c5994e12fe771e4ab2601d5d93c8f /lisp/emacs-lisp/lisp.el | |
parent | bbff294bf455a9ad4ae66edce8e70f29a40e2e6d (diff) | |
download | emacs-c74da403aa95ec67598c41aa4f1b97975391135b.tar.gz emacs-c74da403aa95ec67598c41aa4f1b97975391135b.tar.bz2 emacs-c74da403aa95ec67598c41aa4f1b97975391135b.zip |
* 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.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions