]> git.eshelyaron.com Git - emacs.git/commit
Refactor: extract hash and index computations to functions
authorMattias Engdegård <mattiase@acm.org>
Sun, 29 Oct 2023 11:27:04 +0000 (12:27 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 12 Jan 2024 17:02:15 +0000 (18:02 +0100)
commit462b3e6ae4eefeb65a2dc7b144db3e1af9a7720d
tree57c5f0aa6c081602b517bd0c7f987277fe8fa063
parent0bc13945acb8d18bc18b5abc5c5cf9adebc46ca6
Refactor: extract hash and index computations to functions

* src/lisp.h (hash_from_key):
* src/fns.c (hash_index_index): New.
(hash_table_rehash, hash_lookup, hash_remove_from_table):
(maybe_resize_hash_table, hash_put):
* src/composite.c (composition_gstring_put_cache): Use them.
src/composite.c
src/fns.c
src/lisp.h