kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

commit f0b8d11c52b728016a5533e5190309848e4e302b
parent f72ddf35d97b90d5c0ac2c0a6afc98397348846a
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Mon, 15 Jun 2026 16:47:28 -0700

Tok alias CFeCell

Diffstat:
Mlang/cpp/lex/lex.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/lang/cpp/lex/lex.h b/lang/cpp/lex/lex.h @@ -134,6 +134,14 @@ typedef struct Tok { TextRef text; } Tok; +_Static_assert(sizeof(struct Tok) == 32, + "lean token-stream cell stays the compact 32-byte storage unit"); + +/* Canonical name for the shared front-half cell. + * `Tok` stays the primary spelling across lexer/PP/parser; `CFeCell` is the + * alias newer ring/shared code uses. They are the same type. */ +typedef struct Tok CFeCell; + /* Lean accessors. The parser/PP read identifier identity and punctuator code * straight off `aux` — never a symbol-table probe for punctuators. */ static inline Sym tok_ident(const Tok* t) { return (Sym)t->aux; }