]> git.eshelyaron.com Git - emacs.git/commit
Add C macro for hash table iteration
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 19 Jan 2024 14:17:52 +0000 (15:17 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jan 2024 16:54:28 +0000 (17:54 +0100)
commit52a85fffb0344dc09c43a2d429740d5283b534f1
tree31507948f784d64e30588380dd6dfcc1babe8728
parentb221de7caadd872c6a51bec96cb4d97787a43567
Add C macro for hash table iteration

This removes some boilerplate code and further reduces dependencies on
hash table implementation internals.

* src/lisp.h (DOHASH): New.
* 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 (Fmaphash):
* src/json.c (lisp_to_json_nonscalar_1):
* src/minibuf.c (Ftest_completion):
* src/print.c (print):
Use it instead of a hand-written loop.

(cherry picked from commit fec87a4b36a67688932e7bb7e1720bd2c4363a61)
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