aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes/java
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-10-26 15:49:32 +0200
committerMattias EngdegÄrd2024-01-13 20:50:37 +0100
commitc6bdc1ea1dc7f9a0b6d92d443f34c42affde73d1 (patch)
treed913aa29399325b0e1ab08fce48bbaae6eb3068c /admin/notes/java
parent3f9c81a87f7bce854489b8232d817b536ccf349b (diff)
downloademacs-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