]> git.eshelyaron.com Git - emacs.git/commit
(DOHASH): Change calling convention
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jan 2024 13:07:54 +0000 (08:07 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 24 Jan 2024 18:31:53 +0000 (19:31 +0100)
commit6c24990dbdfee4cf672a7f327d1d1a908e5f18a0
tree6d905167db062c14fc5e7123de29e468ebbbeeb6
parent98a34454a4556130b4c24bf768a1ef5e718c6ec5
(DOHASH): Change calling convention

This leads to simpler code in the users, and more efficient machine
code because we don't repeatedly need to fetch the `table_size`
and `key_and_value` fields of the hash table object.

* src/lisp.h (DOHASH): Rewrite.
* src/composite.c (composition_gstring_lookup_cache): Simplify.
(composition_gstring_cache_clear_font):
* src/print.c (print):
* src/pdumper.c (hash_table_contents):
* src/minibuf.c (Ftest_completion):
* src/json.c (lisp_to_json_nonscalar_1):
* src/emacs-module.c (module_global_reference_p):
* src/comp.c (compile_function, Fcomp__compile_ctxt_to_file):
* src/fns.c (Fmaphash): Adjust to new calling convention.

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