diff options
author | Adrian Thurston <thurston@colm.net> | 2018-06-18 15:56:46 +0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-06-18 15:56:46 +0700 |
commit | 7b0c27ec89c0fd72ac76e05bd6ae27a674599fed (patch) | |
tree | bc2c4b169167a2fcaa339c3a66faaeea3aac40c8 /src/ctinput.cc | |
parent | 622efddde25cbcaa82e6ac2b2d533e41987d07fb (diff) | |
download | colm-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/ctinput.cc')
-rw-r--r-- | src/ctinput.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ctinput.cc b/src/ctinput.cc index 53ff9b59..e11d94b5 100644 --- a/src/ctinput.cc +++ b/src/ctinput.cc @@ -68,6 +68,13 @@ void inputStreamSetEofSent( struct stream_impl_ct *si, char eof_sent ) si->eof_sent = eof_sent; } +void inputStreamTransferLoc( location_t *loc, struct stream_impl_ct *si ) +{ + loc->name = si->name; + loc->line = si->line; + loc->column = si->column; + loc->byte = si->byte; +} /* |