aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_overflow.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-28Use SerdNodes instead of manual memory management in testsDavid Robillard1-2/+3
2022-01-28Add custom allocator supportDavid Robillard1-4/+4
2022-01-28Make environments and sinks part of the worldDavid Robillard1-2/+2
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.
2022-01-28Use more human-readable status codesDavid Robillard1-2/+2
2022-01-28Simplify input stream APIDavid Robillard1-5/+10
More or less the same rationale as the previous commit, but for reading. This makes for nice symmetry with writing, at the cost of a slightly more annoying reader interface since the source doesn't know its block size or name.
2022-01-28Make blank node prefixing automaticDavid Robillard1-1/+1
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.
2022-01-14Factor out NTriples readerDavid Robillard1-0/+3
2022-01-14Remove SERD_CURIE node datatype entirelyDavid Robillard1-0/+4
2022-01-14Expand URIs in readerDavid Robillard1-6/+38
This expands relative and prefixed URIs in the reader on the stack, rather than passing them to the caller to be dealt with. This pushes these context-full forms to the edge of the system as much as possible to minimise the headaches they can cause. Towards having stricter guarantees about nodes and eliminating the CURIE node type altogether.
2022-01-14Move SerdEnv mutation from writer to readerDavid Robillard1-1/+3
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader.
2022-01-13Add support for parsing variablesDavid Robillard1-12/+15
This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries.
2022-01-13Make Reader always read from a ByteSourceDavid Robillard1-2/+4
2022-01-13Align nodes on the reader stackDavid Robillard1-1/+3
2022-01-13Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-2/+4
2022-01-13Replace multiple stream callbacks with SerdEventDavid Robillard1-1/+1
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future.
2022-01-13Add SerdCaretDavid Robillard1-1/+1
2022-01-13Add SerdWorld for shared library stateDavid Robillard1-7/+18
2022-01-13Improve reader error handlingDavid Robillard1-0/+163