aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/reader.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-12-02 01:20:48 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit930f28478ca2573b7f7baf29a57a03cfa95a841f (patch)
treeccd9fca0955c8c92e6f3d3cacd032024c1c3d4b7 /include/serd/reader.h
parent06bc73c6fdf986eb5d13943b497992a947661bb1 (diff)
downloadserd-930f28478ca2573b7f7baf29a57a03cfa95a841f.tar.gz
serd-930f28478ca2573b7f7baf29a57a03cfa95a841f.tar.bz2
serd-930f28478ca2573b7f7baf29a57a03cfa95a841f.zip
Add a set of limits to the world
The idea here is to remove the burden of passing things around like stack sizes (where most users don't care and will be happy with a reasonably large default) and keeping the call sites to things like serd_reader_new() clean. The cost is a bit more state, so it's both more powerful and more potentially flaky, since changing the limits has action at a distance that isn't clear from the call site. I think it's worth it for the cleaner API in the common case, and the much better forward compatibility.
Diffstat (limited to 'include/serd/reader.h')
-rw-r--r--include/serd/reader.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/serd/reader.h b/include/serd/reader.h
index cc19a9b8..a2b2698d 100644
--- a/include/serd/reader.h
+++ b/include/serd/reader.h
@@ -31,8 +31,7 @@ typedef struct SerdReaderImpl SerdReader;
SERD_API SerdReader* SERD_ALLOCATED
serd_reader_new(SerdWorld* SERD_NONNULL world,
SerdSyntax syntax,
- const SerdSink* SERD_NONNULL sink,
- size_t stack_size);
+ const SerdSink* SERD_NONNULL sink);
/**
Enable or disable strict parsing.