]> git.eshelyaron.com Git - emacs.git/commit
Fit symbol_redirect snugly in two bits
authorMattias Engdegård <mattiase@acm.org>
Sun, 16 Apr 2023 09:20:05 +0000 (11:20 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 16 Apr 2023 12:07:36 +0000 (14:07 +0200)
commit3c8167ec0f9647e6fc33e65b0a0324f96cb795ee
tree7178b4c017cc59c77e0c9d7e573243964716fd21
parentbc61a1afdd6c3ba8a605ed46ae97b1e36b40f951
Fit symbol_redirect snugly in two bits

This allows the C compiler to do away with all default clauses when
switching on the `redirect` field.

* src/lisp.h (enum symbol_redirect): Use values in the 0..3 range,
which also matches the old comment in struct Lisp_Symbol.
(enum symbol_interned, enum symbol_redirect)
(enum symbol_trapped_write): Comment members.  Remove explicit values.
(struct Lisp_Symbol): Shrink the `redirect` member to 2 bits.
Use the correct type for the `interned` field.
Move value comments to their types.
* src/pdumper.c (dump_symbol): Update hashes.
src/lisp.h
src/pdumper.c