aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-05-06 03:30:48 -0400
committerJesse Luehrs <doy@tozt.net>2014-05-06 03:30:48 -0400
commit24cdab0ff9c4747a15f8d13acf8cca9d27cf296c (patch)
treeea27bdd041b7be90c61778c634cca3b9d06ff9e4 /src/screen.h
parentbfe9fca8c487d78c9602dd57ebe69c8ea5c6404a (diff)
downloadrunes-24cdab0ff9c4747a15f8d13acf8cca9d27cf296c.tar.gz
runes-24cdab0ff9c4747a15f8d13acf8cca9d27cf296c.zip
stop creating and destroying parser states all the time
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/screen.h b/src/screen.h
index 3132e8a..d08139b 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -72,6 +72,12 @@ struct runes_grid {
struct runes_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 runes_screen {
struct runes_grid *grid;
struct runes_grid *alternate;
@@ -83,6 +89,9 @@ struct runes_screen {
struct runes_cell_attrs attrs;
+ yyscan_t scanner;
+ YY_BUFFER_STATE state;
+
unsigned char hide_cursor: 1;
unsigned char application_keypad: 1;
unsigned char application_cursor: 1;