diff options
| author | Mattias EngdegÄrd | 2023-10-26 15:49:32 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-01-13 20:50:37 +0100 |
| commit | c6bdc1ea1dc7f9a0b6d92d443f34c42affde73d1 (patch) | |
| tree | d913aa29399325b0e1ab08fce48bbaae6eb3068c /admin/notes/java | |
| parent | 3f9c81a87f7bce854489b8232d817b536ccf349b (diff) | |
| download | emacs-c6bdc1ea1dc7f9a0b6d92d443f34c42affde73d1.tar.gz emacs-c6bdc1ea1dc7f9a0b6d92d443f34c42affde73d1.zip | |
Represent hash table weakness as an enum internally
This takes less space (saves an entire word) and is more type-safe.
No change in behaviour.
* src/lisp.h (hash_table_weakness_t): New.
(struct Lisp_Hash_Table): Replace Lisp object `weak` with enum
`weakness`.
* src/fns.c
(keep_entry_p, hash_table_weakness_symbol): New.
(make_hash_table): Retype argument. All callers updated.
(sweep_weak_table, Fmake_hash_table, Fhash_table_weakness):
* src/alloc.c (purecopy_hash_table, purecopy, process_mark_stack):
* src/pdumper.c (dump_hash_table):
* src/print.c (print_object): Use retyped field.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions