From 640d5e95560d3c9099a58e09a93831197b863a2b Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 20 Dec 2025 12:11:16 +0100 Subject: optimize lexer a bit more --- common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.h') diff --git a/common.h b/common.h index 6cf1b21..9e32ded 100644 --- a/common.h +++ b/common.h @@ -185,7 +185,8 @@ void free(void *); /* string interning */ typedef const struct internstr {char c;} *internstr; -internstr intern(const char *); +internstr intern_(const char *, uint len); +#define intern(s) intern_(s, 0) /* growable buffer that stores its capacity in the allocated memory */ #define xbnew_(n) (void *)(1 + (size_t *)xcalloc(sizeof(size_t) + (n))) -- cgit v1.2.3