summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-18 11:43:19 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-18 11:43:19 +0700
commit86c6138144297ccf9df32c411a8aab26cf0842a9 (patch)
treece4a7733101e68930cfa9e2db0f746436ac76298 /src/input.c
parent90ff6d71d42811aef9b04326499d0e86a6d7953d (diff)
downloadcolm-86c6138144297ccf9df32c411a8aab26cf0842a9.tar.gz
removing some direct access to stream_impl
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/input.c b/src/input.c
index 77f0bf03..4eb21179 100644
--- a/src/input.c
+++ b/src/input.c
@@ -565,20 +565,19 @@ static int is_source_stream( struct stream_impl_seq *is )
return false;
}
-static void stream_set_eof( struct stream_impl_seq *is )
+static void stream_set_eof( struct stream_impl_seq *si )
{
- //debug( REALM_INPUT, "setting EOF in input stream\n" );
- is->eof = true;
+ si->eof = true;
}
-static void stream_unset_eof( struct stream_impl_seq *is )
+static void stream_unset_eof( struct stream_impl_seq *si )
{
- if ( is_source_stream( is ) ) {
- struct stream_impl *si = is->queue->si;
- si->eof = false;
+ if ( is_source_stream( si ) ) {
+ struct stream_impl_data *sid = (struct stream_impl_data*)si->queue->si;
+ sid->eof = false;
}
else {
- is->eof = false;
+ si->eof = false;
}
}