From 930f28478ca2573b7f7baf29a57a03cfa95a841f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Dec 2023 01:20:48 -0500 Subject: 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. --- src/world.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/world.h') diff --git a/src/world.h b/src/world.h index b330d4e4..96252a7a 100644 --- a/src/world.h +++ b/src/world.h @@ -13,6 +13,7 @@ #include struct SerdWorldImpl { + SerdLimits limits; SerdErrorFunc error_func; void* error_handle; uint32_t next_blank_id; -- cgit v1.2.1