From 56a20074863641eb994e298afb4b38b27a277406 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Sep 2025 22:28:59 -0400 Subject: np: lex: Cache last char during parse Sometimes when parsing while we are scanning for a string, we might loose the last character if we don't save it Signed-off-by: Ian Moffett --- src/sys/include/os/np.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys/include/os/np.h') diff --git a/src/sys/include/os/np.h b/src/sys/include/os/np.h index 3083ee1..5734e69 100644 --- a/src/sys/include/os/np.h +++ b/src/sys/include/os/np.h @@ -46,12 +46,14 @@ * @source_size: Source size in bytes * @line_no: Current line number * @lex_st: Lexer state + * @ccache: Character cache (temporary store for lexer) */ struct np_work { char *source; size_t source_size; size_t line_no; struct lexer_state lex_st; + char ccache; }; /* -- cgit v1.2.3