From db61b5925966587717a17d48339bc8fea58a142b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 15:16:46 -0400 Subject: np: Allocate memory for identifier Signed-off-by: Ian Moffett --- src/sys/include/np/lex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sys/include/np/lex.h') diff --git a/src/sys/include/np/lex.h b/src/sys/include/np/lex.h index ba4bdb8..9c6e69e 100644 --- a/src/sys/include/np/lex.h +++ b/src/sys/include/np/lex.h @@ -85,7 +85,10 @@ typedef uint64_t tokval_t; */ struct lex_token { tt_t token; - tokval_t val; + union { + tokval_t val; + char *val_str; + }; }; /* -- cgit v1.2.3