diff options
author | David Robillard <d@drobilla.net> | 2021-09-09 14:30:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | 5ea7c0d763685c23dc6933e273dfa11eec5bec14 (patch) | |
tree | c858abf15eae4f98472796aff3d05e4aadc51bc1 /test | |
parent | bd24b8f6d558bafbbb16d9490ebe3478dbf130bd (diff) | |
download | serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.gz serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.tar.bz2 serd-5ea7c0d763685c23dc6933e273dfa11eec5bec14.zip |
Use simpler names for I/O function types
Diffstat (limited to 'test')
-rw-r--r-- | test/test_reader.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/test_reader.c b/test/test_reader.c index 37e645e3..d9edc294 100644 --- a/test/test_reader.c +++ b/test/test_reader.c @@ -202,7 +202,7 @@ test_read_eof_by_page(void) SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0u, env, sink, 4096); SerdInputStream in = serd_open_input_stream( - (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, NULL, temp); + (SerdReadFunc)fread, (SerdErrorFunc)ferror, NULL, temp); assert(serd_reader_start(reader, &in, NULL, 4096) == SERD_SUCCESS); assert(serd_reader_read_chunk(reader) == SERD_SUCCESS); @@ -230,11 +230,8 @@ test_read_eof_by_byte(void) SerdReader* reader = serd_reader_new(world, SERD_TURTLE, 0u, env, sink, 4096); size_t n_reads = 0u; - SerdInputStream in = - serd_open_input_stream((SerdReadFunc)eof_test_read, - (SerdStreamErrorFunc)eof_test_error, - NULL, - &n_reads); + SerdInputStream in = serd_open_input_stream( + (SerdReadFunc)eof_test_read, (SerdErrorFunc)eof_test_error, NULL, &n_reads); assert(serd_reader_start(reader, &in, NULL, 1) == SERD_SUCCESS); assert(serd_reader_read_chunk(reader) == SERD_SUCCESS); @@ -267,8 +264,8 @@ test_read_chunks(void) assert(reader); - SerdInputStream in = serd_open_input_stream( - (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, NULL, f); + SerdInputStream in = + serd_open_input_stream((SerdReadFunc)fread, (SerdErrorFunc)ferror, NULL, f); SerdStatus st = serd_reader_start(reader, &in, NULL, 1); assert(st == SERD_SUCCESS); @@ -336,8 +333,8 @@ test_read_empty(void) assert(reader); - SerdInputStream in = serd_open_input_stream( - (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, NULL, f); + SerdInputStream in = + serd_open_input_stream((SerdReadFunc)fread, (SerdErrorFunc)ferror, NULL, f); SerdStatus st = serd_reader_start(reader, &in, NULL, 1); assert(!st); |