diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-20 02:25:32 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-20 02:36:56 -0400 |
commit | 239cbc23b2da5a770b02f5b743e3e5db8ad34416 (patch) | |
tree | 1e97f17a77001257a98cbf379ea9bd61dcae1940 /usr.bin/oasm/include | |
parent | 2d9ab63695f6774a2805d4fe1a2b92710c478b5a (diff) |
usr: oasm: Add log.c
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/oasm/include')
-rw-r--r-- | usr.bin/oasm/include/oasm/state.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 <unistd.h> #include <oasm/lex.h> +/* + * 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; }; |