diff options
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/input.h b/src/input.h index d559c508..0cf77566 100644 --- a/src/input.h +++ b/src/input.h @@ -59,13 +59,26 @@ enum run_buf_type { RUN_BUF_SOURCE_TYPE }; -struct run_buf +struct seq_buf { enum run_buf_type type; long length; struct colm_tree *tree; struct stream_impl *si; long offset; + struct seq_buf *next, *prev; + + /* Must be at the end. We will grow this struct to add data if the input + * demands it. */ + char data[FSM_BUFSIZE]; +}; + +struct run_buf +{ + enum run_buf_type type; + long length; + struct colm_tree *tree; + long offset; struct run_buf *next, *prev; /* Must be at the end. We will grow this struct to add data if the input @@ -129,8 +142,8 @@ struct stream_impl_seq char eof; char eos_sent; - struct run_buf *queue; - struct run_buf *queue_tail; + struct seq_buf *queue; + struct seq_buf *queue_tail; long line; long column; |