]> 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 18:23:36 +0000 (19:23 +0100)
commitd5e1ecf8e287de655054d6a4c045b843191d5a0f
tree6374ce9f76bf4e033c969fa9479f32c1a52af2a6
parent6bb250c658f5c150dae5b5037b32245db0a2300a
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.

(cherry picked from commit 462b3e6ae4eefeb65a2dc7b144db3e1af9a7720d)
src/composite.c
src/fns.c
src/lisp.h