aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Use ZixAllocator directlyDavid Robillard1-2/+2
2023-12-02Avoid dynamic allocation of world blank nodeDavid Robillard1-1/+6
2023-12-02Cache commonly used nodes in the worldDavid Robillard1-9/+15
2023-12-02Make blank node prefixing automaticDavid Robillard1-1/+2
Though potentially useful, I don't think the complexity cost of the old interface (both to the implementation and to the user) is worth it. A special tool to transform blank node labels (for example with regular expressions) would be a better approach to this if it's ever needed in the future.
2023-12-02Add support for custom allocatorsDavid Robillard1-4/+9
This makes it explicit in the API where memory is allocated, and allows the user to provide a custom allocator to avoid the use of the default system allocator for whatever reason.
2023-12-02[WIP] Add extensible logging APIDavid Robillard1-20/+6
2023-12-02Simplify input stream APIDavid Robillard1-5/+1
2023-12-02Rename SerdErrorFunc to SerdLogFuncDavid Robillard1-5/+5
2023-12-02Add a set of limits to the worldDavid Robillard1-0/+1
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.
2023-12-02Add serd_world_get_blank()David Robillard1-0/+4
2023-12-02Move fopen wrapper to worldDavid Robillard1-1/+5
2023-12-02Move error handling to worldDavid Robillard1-0/+16
2023-12-02Add SerdWorld for shared library stateDavid Robillard1-0/+14