From 801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 17 Sep 2014 17:10:58 -0400 Subject: 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. --- src/screen.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/screen.h') 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; -- cgit v1.2.3-54-g00ecf