(DOHASH): Change calling convention
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jan 2024 13:07:54 +0000 (08:07 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 24 Jan 2024 13:07:54 +0000 (08:07 -0500)
commit3018c6e7ba5d35b756aea5eed7f3981548a597b4
tree8c88c7f4f30af0401d5cc1458efc284fc780d5ac
parent802821b81ac5ad0dee7f26caa519326251b262c1
(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.
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