]> git.eshelyaron.com Git - emacs.git/commit
Change HASH_UNUSED_ENTRY_KEY from Qunbound to NULL float
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 19 Jan 2024 17:31:06 +0000 (18:31 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jan 2024 16:54:38 +0000 (17:54 +0100)
commit16c49581e72588ccc0b75ace0c0d20d5ba10193d
treea1bc92eb2587d635c3d094a68239f90af67da4b9
parent042b41339aa3d3aae2c69bfb2b48ba665afcc863
Change HASH_UNUSED_ENTRY_KEY from Qunbound to NULL float

This removes hacks from code that had to be careful not to use
Qunbound as a hash table key, at the cost of a minor hack in
the GC marker.

* src/lisp.h (INVALID_LISP_VALUE, HASH_UNUSED_ENTRY_KEY):
Define as a null-pointer float.
* src/alloc.c (process_mark_stack): Add hack to ignore that value.
* src/pdumper.c (dump_object_needs_dumping_p)
(pdumper_init_symbol_unbound, pdumper_load):
* src/print.c (PRINT_CIRCLE_CANDIDATE_P): Remove hacks for Qunbound.

(cherry picked from commit 1d754c79603f1b6e4574c7e64c1bf5fb8c6c190d)
src/alloc.c
src/lisp.h
src/pdumper.c
src/print.c