]> git.eshelyaron.com Git - emacs.git/commit
Use hash_idx_t for storing hash indices
authorMattias Engdegård <mattiase@acm.org>
Sun, 5 Nov 2023 11:10:34 +0000 (12:10 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 13 Jan 2024 19:50:38 +0000 (20:50 +0100)
commit0a998938ca1b7e5e6f09d14b4a62ec7089be2af6
treee512f901ed054fcf3f6d83c70ddda62e09f09f7b
parent3b00255a4c70bc1075446c94a8ff65c987ac143f
Use hash_idx_t for storing hash indices

Now hash_idx_t is a typedef for ptrdiff_t so there is no actual code
change, but this allows us to decouple the index width from the Lisp
word size.

* src/lisp.h (hash_idx_t): New typedef for ptrdiff_t.
(struct Lisp_Hash_Table): Use it for indices and sizes:
index, next, table_size, index_size, count and next_free.
All uses adapted.
src/fns.c
src/lisp.h
src/pdumper.c