diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 18:08:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-05 17:12:38 +0100 |
commit | d4e594b0825391db76d72fbf092451d86ebe66c2 (patch) | |
tree | 948e8d2fc87b7275fe9b54715123d36cb6b4353c /src/reader.h | |
parent | d493841ad1ae145db53b04d4d8eeb21fe6a2a438 (diff) | |
download | serd-d4e594b0825391db76d72fbf092451d86ebe66c2.tar.gz serd-d4e594b0825391db76d72fbf092451d86ebe66c2.tar.bz2 serd-d4e594b0825391db76d72fbf092451d86ebe66c2.zip |
Remove reader status and handle errors more precisely
Diffstat (limited to 'src/reader.h')
-rw-r--r-- | src/reader.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/reader.h b/src/reader.h index 8c0efe3a..f7413ce8 100644 --- a/src/reader.h +++ b/src/reader.h @@ -55,7 +55,6 @@ struct SerdReaderImpl { SerdStack stack; SerdSyntax syntax; unsigned next_id; - SerdStatus status; uint8_t* buf; char* bprefix; size_t bprefix_len; @@ -99,11 +98,8 @@ peek_byte(SerdReader* reader) static inline uint8_t eat_byte(SerdReader* reader) { - const uint8_t c = peek_byte(reader); - const SerdStatus st = serd_byte_source_advance(&reader->source); - if (st) { - reader->status = st; - } + const uint8_t c = peek_byte(reader); + serd_byte_source_advance(&reader->source); return c; } |