From 239cbc23b2da5a770b02f5b743e3e5db8ad34416 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 20 Jul 2025 02:25:32 -0400 Subject: usr: oasm: Add log.c Signed-off-by: Ian Moffett --- usr.bin/oasm/include/oasm/state.h | 11 +++++++++++ 1 file changed, 11 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 d4688c2..5f58144 100644 --- a/usr.bin/oasm/include/oasm/state.h +++ b/usr.bin/oasm/include/oasm/state.h @@ -35,8 +35,19 @@ #include #include +/* + * OASM state: + * + * @filename: Filname of unit we are parsing + * @in_fd: Input file descriptor + * @out_fd: Resulting binary output file descriptor + * @line: Current line number + * @last: Last token + */ struct oasm_state { + char *filename; int in_fd; + int out_fd; off_t line; tt_t last; }; -- cgit v1.2.3