aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Split up serd_internal.hDavid Robillard1-2/+1
2021-03-08Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-7/+2
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2021-03-08Align node allocationsDavid Robillard1-1/+12
2021-03-08Make reader tolerant of being started several timesDavid Robillard1-0/+4
2021-03-08Handle read errors more preciselyDavid Robillard1-1/+1
2021-03-08Simplify streaming API and improve pretty printingDavid Robillard1-1/+1
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
2021-03-08Add SerdStatementDavid Robillard1-2/+7
2021-03-08Add SerdCursorDavid Robillard1-13/+17
2021-03-08Remove serd_reader_set_default_graph()David Robillard1-21/+7
2021-03-08Move fopen wrapper to worldDavid Robillard1-2/+2
2021-03-08Move error handling to worldDavid Robillard1-1/+2
2021-03-08Add SerdWorld for shared library stateDavid Robillard1-11/+6
2021-03-08Zero node padding before passing to reader sinksDavid Robillard1-0/+4
2021-03-08Simplify stack management by popping in bulk at higher levelsDavid Robillard1-20/+8
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.
2021-03-08Use a fixed-size reader stackDavid Robillard1-34/+30
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2021-03-07Simplify reader interfaceDavid Robillard1-48/+28
2021-03-07Add SerdSink interface and hide implementationsDavid Robillard1-36/+15
2021-03-07Use consistent naming for function typesDavid Robillard1-13/+13
2021-03-07Bring read/write interface closer to C standardDavid Robillard1-2/+2
2021-03-07Simplify reader interfaceDavid Robillard1-83/+41
2021-03-07Simplify URI API and implementationDavid Robillard1-1/+1
2021-03-07Merge datatype/language into nodeDavid Robillard1-4/+2
This moves closer to the sord API, and is more convenient in most cases.
2021-03-07Make nodes opaqueDavid Robillard1-14/+10
2021-03-07Remove "get" from accessor namesDavid Robillard1-1/+1
2021-03-07Rename SerdType to SerdNodeTypeDavid Robillard1-7/+10
The old name will be even more ambiguous with the increased scope.
2021-03-07Use char* for strings in public APIDavid Robillard1-22/+20
The constant casting just makes user code a mess, for no benefit.
2021-03-07Remove useless character countingDavid Robillard1-5/+5
2021-01-10Add missing includesDavid Robillard1-0/+2
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-213/+216
2020-12-31Avoid "else" after "break" and "return"David Robillard1-1/+3
2020-11-13Improve add and chop prefix functions when given empty stringsDavid Robillard1-4/+5
2020-08-16Ensure that all free methods tolerate NULLDavid Robillard1-0/+4
2020-08-15Clean up reader error handlingDavid Robillard1-19/+27
2020-08-15Make r_err() return a statusDavid Robillard1-2/+2
2020-08-15Fix stack check C++ compatibilityDavid Robillard1-1/+1
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+2
2020-07-05Remove redundant switch statementDavid Robillard1-3/+1
2020-06-21Clean up includesDavid Robillard1-2/+1
2019-12-08Fix reading from a null-delimited socketDavid Robillard1-0/+6
2019-10-27Simplify syntax dispatch conditionDavid Robillard1-4/+2
This avoids the Wswitch-enum warning in clang.
2019-10-27Fix integer conversion warningsDavid Robillard1-3/+3
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+3
2018-07-22Add serd_free for freeing memory allocated by serdDavid Robillard1-1/+1
2018-06-15Remove redundant SERD_API declarationsDavid Robillard1-15/+0
2018-06-10Fix byte source to never read past end of stringsDavid Robillard1-8/+4
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-1601/+37
2018-02-04Factor out is_xdigitDavid Robillard1-5/+4
2018-01-04Open files in binary mode to preserve line endings on WindowsDavid Robillard1-1/+1
2017-11-05Move cursor from reader to byte sourceDavid Robillard1-25/+3