From 2d9ab63695f6774a2805d4fe1a2b92710c478b5a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 20 Jul 2025 02:21:53 -0400 Subject: usr: oasm: Store last token and line number Keep track of the last token type (for parser) and keep track of the current line number for debugging. Signed-off-by: Ian Moffett --- usr.bin/oasm/include/oasm/state.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/oasm/include') diff --git a/usr.bin/oasm/include/oasm/state.h b/usr.bin/oasm/include/oasm/state.h index c21d877..d4688c2 100644 --- a/usr.bin/oasm/include/oasm/state.h +++ b/usr.bin/oasm/include/oasm/state.h @@ -33,9 +33,12 @@ #include #include #include +#include struct oasm_state { int in_fd; + off_t line; + tt_t last; }; #endif /* !_OASM_STATE_H_ */ -- cgit v1.2.3