aboutsummaryrefslogtreecommitdiffstats
path: root/tests/overflow_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-28 17:54:00 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commita091b1332b7b741fbc8dd12ca20ead202f6fb021 (patch)
treee9bd20002a4d1d3210df81cd0c596250b214f65b /tests/overflow_test.c
parente481791e907a551495f8929756b8ca5e24cac277 (diff)
downloadserd-a091b1332b7b741fbc8dd12ca20ead202f6fb021.tar.gz
serd-a091b1332b7b741fbc8dd12ca20ead202f6fb021.tar.bz2
serd-a091b1332b7b741fbc8dd12ca20ead202f6fb021.zip
Replace serd_reader_set_strict() with SerdReaderFlags
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
Diffstat (limited to 'tests/overflow_test.c')
-rw-r--r--tests/overflow_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/overflow_test.c b/tests/overflow_test.c
index 7e545793..e3031b7e 100644
--- a/tests/overflow_test.c
+++ b/tests/overflow_test.c
@@ -24,7 +24,9 @@
static SerdStatus
test(SerdWorld* world, SerdSink* sink, const char* str, size_t stack_size)
{
- SerdReader* reader = serd_reader_new(world, SERD_TURTLE, sink, stack_size);
+ SerdReader* reader =
+ serd_reader_new(world, SERD_TURTLE, 0, sink, stack_size);
+
serd_reader_start_string(reader, str, NULL);
const SerdStatus st = serd_reader_read_document(reader);
serd_reader_free(reader);