summaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-12-12 12:32:49 +0200
committerAdrian Thurston <thurston@colm.net>2018-12-12 12:32:49 +0200
commit14feafceb89dd36663e65f8907e3c3d87b5dae84 (patch)
tree736a0fbd0ae582cc39393feb09010784d1626e8e /src/input.h
parent46afc4c66c0075d01646df65d0939571c91e9050 (diff)
downloadcolm-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.h6
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 );