diff options
author | Adrian Thurston <thurston@colm.net> | 2018-12-12 12:32:49 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-12-12 12:32:49 +0200 |
commit | 14feafceb89dd36663e65f8907e3c3d87b5dae84 (patch) | |
tree | 736a0fbd0ae582cc39393feb09010784d1626e8e /src/input.h | |
parent | 46afc4c66c0075d01646df65d0939571c91e9050 (diff) | |
download | colm-14feafceb89dd36663e65f8907e3c3d87b5dae84.tar.gz |
stream: track line lengths and use to restore during push back
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h index fc100313..9b91a7b5 100644 --- a/src/input.h +++ b/src/input.h @@ -192,8 +192,14 @@ struct stream_impl_data /* Indentation. */ int level; int indent; + + int *line_len; + int lines_alloc; }; +void stream_impl_push_line( struct stream_impl_data *ss, int line, int ll ); +int stream_impl_pop_line( struct stream_impl_data *ss, int line ); + struct input_impl *colm_impl_new_generic( char *name ); void update_position( struct stream_impl *input_stream, const char *data, long length ); |