From eb804125430e3445e85c423b28e1c41346772ed0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Sep 2021 13:20:47 -0400 Subject: Make environments and sinks part of the world Although functions/components that require minimal pre-existing state are nice, these allocate memory and could potentially share resources. So, give them a pointer to a world which can be used to configure such things. In particular, this is working towards supporting custom allocators everywhere. --- test/test_terse_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_terse_write.c') diff --git a/test/test_terse_write.c b/test/test_terse_write.c index d9ce4d1b..02f6bebf 100644 --- a/test/test_terse_write.c +++ b/test/test_terse_write.c @@ -44,7 +44,7 @@ test(void) { SerdBuffer buffer = {NULL, 0}; SerdWorld* world = serd_world_new(); - SerdEnv* env = serd_env_new(SERD_EMPTY_STRING()); + SerdEnv* env = serd_env_new(world, SERD_EMPTY_STRING()); SerdNodes* nodes = serd_nodes_new(); const SerdNode* b1 = serd_nodes_blank(nodes, SERD_STRING("b1")); -- cgit v1.2.1