diff options
author | Ben Smith <binjimin@gmail.com> | 2017-05-23 12:22:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-23 12:22:10 -0700 |
commit | cb60a587dae48ec973fb8f59f48e34d58d569f5a (patch) | |
tree | b26d7e1ae31043231ff532560c843f4c40f3b8ba /src/binary-reader-logging.cc | |
parent | 6f21c9537c59321ac9b3b7a8368e346573b02dfc (diff) | |
download | wabt-cb60a587dae48ec973fb8f59f48e34d58d569f5a.tar.gz wabt-cb60a587dae48ec973fb8f59f48e34d58d569f5a.tar.bz2 wabt-cb60a587dae48ec973fb8f59f48e34d58d569f5a.zip |
Clean up BinaryReader; rename to BinaryReaderDelegate (#451)
This removes the use of setjmp/longjmp as well.
Diffstat (limited to 'src/binary-reader-logging.cc')
-rw-r--r-- | src/binary-reader-logging.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc index 335b24c1..6cdc7ad5 100644 --- a/src/binary-reader-logging.cc +++ b/src/binary-reader-logging.cc @@ -48,7 +48,8 @@ void sprint_limits(char* dst, size_t size, const Limits* limits) { } // namespace -BinaryReaderLogging::BinaryReaderLogging(Stream* stream, BinaryReader* forward) +BinaryReaderLogging::BinaryReaderLogging(Stream* stream, + BinaryReaderDelegate* forward) : stream(stream), reader(forward), indent(0) {} void BinaryReaderLogging::Indent() { @@ -90,7 +91,7 @@ bool BinaryReaderLogging::OnError(const char* message) { } void BinaryReaderLogging::OnSetState(const State* s) { - BinaryReader::OnSetState(s); + BinaryReaderDelegate::OnSetState(s); reader->OnSetState(s); } |