aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Add SerdWorld for shared library stateDavid Robillard21-112/+219
2023-12-02Add serd_node_compare()David Robillard4-0/+106
2023-12-02Clean up base64 node construction and access APIDavid Robillard6-20/+162
2023-12-02Clean up numeric node construction and access APIDavid Robillard9-93/+450
2023-12-02[WIP] Use exess for reading and writing numeric and binary literalsDavid Robillard14-359/+219
2023-12-02Clean up nodes in reader/writer testsDavid Robillard1-12/+20
2023-12-02Move syntax name/extension utilities to public APIDavid Robillard6-55/+158
2023-12-02Improve reader error handlingDavid Robillard5-137/+320
2023-12-02Set flags directly when reading literal nodesDavid Robillard1-64/+43
2023-12-02Add debug checks for node paddingDavid Robillard2-13/+37
2023-12-02Zero node padding before passing to reader sinksDavid Robillard5-2/+41
2023-12-02Remove datatype and language from reader contextDavid Robillard2-40/+32
2023-12-02Simplify stack management by popping in bulk at higher levelsDavid Robillard4-139/+55
Since all memory used by the reader is POD in the stack, there is no benefit to forcing code to explicitly pop everything pushed to the stack, since any function can record an offset and pop back down to it regardless of what its callers pushed if it knows that it does not need those items. This is slightly more efficient (due to avoiding many pop calls), but also more resilient since "leaks" at deeper levels of recursion get nuked by some caller regardless of what was pushed. This should help prevent future regressions like f6437f606 (Fix memory consumption when reading documents).
2023-12-02Use a fixed-size reader stackDavid Robillard13-208/+301
2023-12-02Simplify reader interfaceDavid Robillard7-266/+179
2023-12-02Add SerdSink interface and hide implementationsDavid Robillard17-196/+480
2023-12-02Bring read/write interface closer to the C standardDavid Robillard16-105/+130
2023-12-02Add serd_new_boolean()David Robillard3-0/+35
2023-12-02Simplify literal construction APIDavid Robillard5-70/+123
2023-12-02Set datatypes on integer, decimal, and base64 nodesDavid Robillard3-41/+111
2023-12-02Simplify node construction APIDavid Robillard13-294/+365
2023-12-02Merge datatype/language into nodeDavid Robillard11-140/+282
This moves closer to the sord API, and is more convenient in most cases.
2023-12-02Simplify URI API and implementationDavid Robillard12-377/+490
2023-12-02Add serd_node_uri_view()David Robillard3-5/+37
2023-12-02Add serd_node_string_view()David Robillard3-0/+21
2023-12-02Align node allocationsDavid Robillard3-6/+46
2023-12-02Make nodes opaqueDavid Robillard24-596/+651
2023-12-02Add node accessor APIDavid Robillard2-0/+44
2023-12-02Shorten node constructor namesDavid Robillard7-66/+67
2023-12-02Rename string view fieldsDavid Robillard7-77/+77
2023-12-02Use more human-readable status codesDavid Robillard15-139/+157
2023-12-02Add version constants to public headerDavid Robillard7-6/+68
2023-12-02Split up public API headerDavid Robillard47-977/+1554
2023-12-02Remove "get" from accessor namesDavid Robillard6-18/+18
2023-12-02Rename function types for consistencyDavid Robillard9-62/+62
2023-12-02Rename SerdStyle to SerdWriterFlagsDavid Robillard5-60/+64
2023-12-02Rename SerdType to SerdNodeTypeDavid Robillard5-25/+28
The old name will be even more ambiguous with the increased scope.
2023-12-02Rename SerdURI to SerdURIViewDavid Robillard8-111/+113
2023-12-02Rename SerdChunk to SerdStringViewDavid Robillard8-32/+38
2023-12-02Add SerdBuffer type for mutable buffersDavid Robillard7-45/+50
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2023-12-02Use char* for strings in public APIDavid Robillard24-430/+388
The constant casting just makes user code a mess, for no benefit.
2023-12-02Remove support for reading Turtle named inline nodes extensionDavid Robillard9-61/+1
2023-12-02Remove escape parameter from serd_node_new_file_uriDavid Robillard4-34/+16
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2023-12-02Remove useless character countingDavid Robillard11-101/+55
2023-12-02Remove serd_uri_to_path()David Robillard9-104/+11
2023-12-02Delete trailing whitespaceDavid Robillard1-1/+1
2023-10-22Serd 0.32.0v0.32.0David Robillard4-5/+5
2023-10-06Tolerate reduce floating point precision on Apple SiliconDavid Robillard1-2/+2
This is... strange, and slightly worrying, although it's already known that this conversion code isn't exact in all cases. The next major version will fix that (and I've confirmed that these issues aren't present there), but that's a major change so, for now, just reduce the very large number in the test case slightly so that it passes on these chips as well.
2023-09-23Avoid use of deprecated meson string formatting with filesDavid Robillard2-24/+29
Meson annoyingly doesn't provide access to the path of file objects (but it should). It was possible to do that by formatting a string with a file argument, but now this triggers a loud warning that claims it has always been broken and will be deprecated. So, avoid this by juggling things around and maintaining unchecked path strings instead, and hope that they're all passed to files() at some point so they can't get stale.
2023-09-23Explicitly specify all documentation dependenciesDavid Robillard5-14/+37
Yet another attempt to sort out flaky documentation builds. This tries to be careful and describe the complete documentation dependency graph to meson explicitly (ignoring tool outputs that aren't used). Also remove the shared doctrees directory option, since I suspect this causes issues in parallel builds.