From f927e045e37129cf1a57ad85c15a0b04093f3177 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 19:49:00 -0400 Subject: np: lex: Add LEX_EOF define Signed-off-by: Ian Moffett --- src/sys/np/core/np_lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/np/core/np_lex.c') diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index b2fad3a..7d72db8 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -323,7 +323,7 @@ lex_nom(struct np_work *work, struct lex_token *res) /* Match the token type */ switch (c) { case '\0': - return -2; /* EOF */ + return LEX_EOF; case '(': res->token = TT_LPAREN; break; -- cgit v1.2.3