From ec3f0a41258099b4aa04ce236d062ffe0580f27d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 16:32:58 -0400 Subject: np: lex: Add TT_NONE token for invalid types Signed-off-by: Ian Moffett --- src/sys/np/core/np_parse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sys/np/core/np_parse.c') diff --git a/src/sys/np/core/np_parse.c b/src/sys/np/core/np_parse.c index b894edb..2b52cbe 100644 --- a/src/sys/np/core/np_parse.c +++ b/src/sys/np/core/np_parse.c @@ -40,6 +40,9 @@ /* Token to string conversion table */ static const char *stoktab[] = { + /* Reserved */ + [TT_NONE] = "", + /* Symbols */ [TT_LPAREN] = "", [TT_RPAREN] = "", -- cgit v1.2.3