]> 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)
committerMattias Engdegård <mattiase@acm.org>
Fri, 12 Jan 2024 17:03:02 +0000 (18:03 +0100)
commit29e3d1c56f07a53d1955c9a71e68f70f3b901728
tree8af3a2032f9e99368dd2a4ac14bacc26be23d9ea
parent484e04efa4fcb81968cba8e05835812c62856287
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.
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