]> git.eshelyaron.com Git - emacs.git/commit
Use key Qunbound instead of hash value hash_unused for free entries
authorMattias EngdegÄrd <mattiase@acm.org>
Tue, 21 Nov 2023 21:12:08 +0000 (22:12 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Jan 2024 15:15:47 +0000 (16:15 +0100)
commit151b21ee6c6566c33ee2b07dd044d996db8503fb
tree74fbfa1cb9d58a905784518694d453aa3e0bd9a7
parent3c430b24e16439af6adb3f560ad28fdc215d0112
Use key Qunbound instead of hash value hash_unused for free entries

Previously, free hash table entries were indicated by both hash value
hash_unused and key Qunbound; we now rely on the latter only.
This allows us to change the hash representation to one that does not
have an unused value.

* src/lisp.h (hash_unused): Remove.
All uses adapted to calling hash_unused_entry_key_p on the key instead.
The hash values for unused hash table entries are now undefined; all
initialisation and assignment to hash_unused has been removed.

(cherry picked from commit 11e467eb6004286765c1d8c408f8d773d9113aca)
src/fns.c
src/lisp.h
src/macfont.m
src/pdumper.c