]> 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)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Jan 2024 15:15:42 +0000 (16:15 +0100)
commit7e64cd11adc8e0ea54aed348b0d6bffb68241343
tree91a2b709e2b88b9bddfd718e8fc8189a7956713d
parent9281482aeb969ff2c2a4f0443870804b92e2152f
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.

(cherry picked from commit 0a998938ca1b7e5e6f09d14b4a62ec7089be2af6)
src/fns.c
src/lisp.h
src/pdumper.c