aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Use ZixAllocator directlyDavid Robillard1-12/+8
2023-12-02Use ZixStringView directlyDavid Robillard1-8/+8
2023-12-02Avoid dynamic allocation of world blank nodeDavid Robillard1-11/+9
2023-12-02Cache commonly used nodes in the worldDavid Robillard1-1/+36
2023-12-02[WIP] Generalize node construction APIDavid Robillard1-2/+2
2023-12-02Add support for custom allocatorsDavid Robillard1-8/+20
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-61/+5
2023-12-02Simplify input stream APIDavid Robillard1-27/+0
2023-12-02Rename SerdErrorFunc to SerdLogFuncDavid Robillard1-3/+3
2023-12-02Make r_err take a single line without trailing newlineDavid Robillard1-0/+1
Towards having an actual logging (rather than printing) mechanism.
2023-12-02Add assertions for all non-null pointers in the public APIDavid Robillard1-0/+2
2023-12-02Use a simple type-safe stack in writerDavid Robillard1-0/+1
2023-12-02Add a set of limits to the worldDavid Robillard1-1/+18
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 SerdCaretDavid Robillard1-6/+12
2023-12-02Add serd_world_get_blank()David Robillard1-2/+36
2023-12-02Use thread-safe strerror_r() if availableDavid Robillard1-6/+6
2023-12-02Move fopen wrapper to worldDavid Robillard1-0/+28
2023-12-02Move error handling to worldDavid Robillard1-2/+47
2023-12-02Add SerdWorld for shared library stateDavid Robillard1-0/+29