diff options
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; }; |