diff options
author | Adrian Thurston <thurston@colm.net> | 2018-12-12 16:37:54 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-12-12 16:53:01 +0200 |
commit | 586156b75620db8e78700c37ab31b4aff2ad8c35 (patch) | |
tree | b94691083b2abbdf90a82cff802edb4f3211b28c /src/input.h | |
parent | 86abaf24ee9239e5d17114bba50edfcfd4327381 (diff) | |
download | colm-586156b75620db8e78700c37ab31b4aff2ad8c35.tar.gz |
don't use reported line as index when tracking line lenths
Starting line may not always be 1, for example when we split a stream. Want the
freedom to report arbitrary lines.
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input.h b/src/input.h index 9b91a7b5..6e3b16b6 100644 --- a/src/input.h +++ b/src/input.h @@ -195,10 +195,11 @@ struct stream_impl_data int *line_len; int lines_alloc; + int lines_cur; }; -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 ); +void stream_impl_push_line( struct stream_impl_data *ss, int ll ); +int stream_impl_pop_line( struct stream_impl_data *ss ); struct input_impl *colm_impl_new_generic( char *name ); |