summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-18 15:56:46 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-18 15:56:46 +0700
commit7b0c27ec89c0fd72ac76e05bd6ae27a674599fed (patch)
treebc2c4b169167a2fcaa339c3a66faaeea3aac40c8 /src/input.c
parent622efddde25cbcaa82e6ac2b2d533e41987d07fb (diff)
downloadcolm-7b0c27ec89c0fd72ac76e05bd6ae27a674599fed.tar.gz
added location information to stream interfaces
Last of the interface making, allows us to strip down stream_impl into just funcs pointer, making it entirely abstract.
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index 36d917dc..cc35c742 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1239,6 +1239,8 @@ struct stream_funcs_seq stream_funcs =
.print_tree = &stream_print_tree,
.get_eof_sent = &stream_get_eof_sent,
.set_eof_sent = &stream_set_eof_sent,
+
+ .transfer_loc = &transfer_loc_seq,
};
struct stream_funcs_data file_funcs =
@@ -1255,6 +1257,7 @@ struct stream_funcs_data file_funcs =
.print_tree = &data_print_tree,
.get_eof_sent = &data_get_eof_sent,
.set_eof_sent = &data_set_eof_sent,
+ .transfer_loc = &transfer_loc_data,
};
struct stream_funcs_data text_funcs =
@@ -1271,6 +1274,7 @@ struct stream_funcs_data text_funcs =
.print_tree = &data_print_tree,
.get_eof_sent = &data_get_eof_sent,
.set_eof_sent = &data_set_eof_sent,
+ .transfer_loc = &transfer_loc_data,
};
static struct stream_impl *colm_impl_new_file( char *name, FILE *file )