diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-17 17:10:58 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-17 17:10:58 -0400 |
commit | 801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb (patch) | |
tree | 9f30308b9df0a872ff95f68e4ebe3d070fd1fef6 /src/screen.h | |
parent | 858dfa5e53f2068b0b88eb5ebdaef5afc5f0301d (diff) | |
download | libvt100-801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb.tar.gz libvt100-801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb.zip |
hide the parser state
this shouldn't be public (none of the parser stuff should be), but the
way i was doing before with redefining certain types from parser.h was
causing warnings on clang.
Diffstat (limited to 'src/screen.h')
-rw-r--r-- | src/screen.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/screen.h b/src/screen.h index 01ad280..881a76f 100644 --- a/src/screen.h +++ b/src/screen.h @@ -75,12 +75,7 @@ struct vt100_grid { struct vt100_row *rows; }; -/* XXX including parser.h in a place which would be visible here breaks things, - * so we copy these defintions over here */ -typedef void* yyscan_t; -struct yy_buffer_state; -typedef struct yy_buffer_state *YY_BUFFER_STATE; - +struct vt100_parser_state; struct vt100_screen { struct vt100_grid *grid; struct vt100_grid *alternate; @@ -94,8 +89,7 @@ struct vt100_screen { int scrollback_length; - yyscan_t scanner; - YY_BUFFER_STATE state; + struct vt100_parser_state *parser_state; unsigned char hide_cursor: 1; unsigned char application_keypad: 1; |