]> git.eshelyaron.com Git - emacs.git/commit
Abstract predicate and constant for unused hash keys
authorMattias EngdegÄrd <mattiase@acm.org>
Thu, 28 Dec 2023 18:04:43 +0000 (19:04 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 18:23:48 +0000 (19:23 +0100)
commit077d1b76de2a04077946639a32bc863200f4a559
tree699e90fde0aa074f1bcf0af43a634995a134ffcd
parenta68939a7545cb2233e8dfb19d077d77005f316ba
Abstract predicate and constant for unused hash keys

Qunbound is used for many things; using a predicate and constant for
the specific purpose of unused hash entry keys allows us to locate
them and make changes much more easily.

* src/lisp.h (HASH_UNUSED_ENTRY_KEY, hash_unused_entry_key_p):
New constant and function.
* src/comp.c (compile_function, Fcomp__compile_ctxt_to_file):
* src/composite.c (composition_gstring_cache_clear_font):
* src/emacs-module.c (module_global_reference_p):
* src/fns.c (make_hash_table, maybe_resize_hash_table, hash_put)
(hash_remove_from_table, hash_clear, sweep_weak_table, Fmaphash):
* src/json.c (lisp_to_json_nonscalar_1):
* src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
* src/print.c (print, print_object):
Use them.

(cherry picked from commit 29e3d1c56f07a53d1955c9a71e68f70f3b901728)
src/comp.c
src/composite.c
src/emacs-module.c
src/fns.c
src/json.c
src/lisp.h
src/minibuf.c
src/print.c