aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
AgeCommit message (Collapse)AuthorFilesLines
2020-06-21Add extensible logging APIDavid Robillard1-1/+1
2020-06-21Rename SerdType to SerdNodeTypeDavid Robillard1-10/+10
The old name has become ambiguous with the expanded scope of serd.
2020-06-21Simplify reader stack pushing codeDavid Robillard1-8/+10
2020-06-21Remove serd_reader_set_default_graph()David Robillard1-1/+0
2020-06-21Clean up reader error handlingDavid Robillard1-9/+11
2020-06-21Improve push_byte() performanceDavid Robillard1-4/+4
2020-06-21Remove datatype and language from reader contextDavid Robillard1-2/+0
2020-06-21Simplify stack management by popping in bulk at higher levelsDavid Robillard1-3/+1
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.
2020-06-21Use a fixed-size reader stackDavid Robillard1-36/+37
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.
2020-06-21Add SerdWorld for shared library stateDavid Robillard1-1/+2
2020-06-21Add SerdSink interface and hide individual function implementationsDavid Robillard1-24/+19
2020-06-21Clean up and separate internal headersDavid Robillard1-1/+93
2020-06-21Make serd_strtod API const-correctDavid Robillard1-1/+1
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the C API.
2020-06-21Use char* for strings in public APIDavid Robillard1-1/+1
The constant casting just makes user code a mess, for no benefit.
2020-06-21Remove useless character countingDavid Robillard1-3/+0
2020-06-21Clean up includesDavid Robillard1-1/+5
2019-10-27Use int as internal character type so it can represent EOFDavid Robillard1-12/+19
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+2
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-0/+86