aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-25Zero node padding before passing to reader sinksDavid Robillard1-3/+6
2018-11-25Remove datatype and language from reader contextDavid Robillard1-28/+17
2018-11-25Remove unused parameters from emit_statementDavid Robillard1-6/+5
2018-11-25Simplify stack management by popping in bulk at higher levelsDavid Robillard1-48/+40
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.
2018-11-25Use fixed size stackDavid Robillard1-146/+175
2018-11-25Clean up includes and improve source file separationDavid Robillard1-8/+7
2018-11-25Add SerdSink interface and hide individual function implementationsDavid Robillard1-8/+8
2018-11-25Clean up and separate internal headersDavid Robillard1-1/+3
2018-11-25Merge datatype and/or language into nodeDavid Robillard1-2/+10
This moves closer to the sord API, and is more convenient in most cases.
2018-11-25Simplify reader interfaceDavid Robillard1-12/+16
2018-11-25Use opaque node APIDavid Robillard1-12/+16
2018-11-25Use char* for strings in public APIDavid Robillard1-1/+1
The constant casting just makes user code a mess, for no benefit.
2018-11-11Fix missing parse error messagesDavid Robillard1-1/+4
2018-10-03Fix colliding blank nodes when parsing TriGDavid Robillard1-1/+1
2018-09-16Use strtoul instead of sscanf for converting hexDavid Robillard1-2/+3
2018-09-04Fix fallthrough warnings with GCC8David Robillard1-0/+3
2018-05-25Fix reported error when reading statements with only a blank nodeDavid Robillard1-1/+1
2018-04-19Fix growing stack when parsing TriG files with many graphsDavid Robillard1-0/+3
2018-04-18Fix potential memory errors when the reader stack growsDavid Robillard1-2/+3
This fixes possible segfaults for inputs that push a lot to the stack, like files with deeply nested or very large nodes.
2018-03-08Fix parsing local names that end with escaped dotsDavid Robillard1-3/+5
2018-03-08Fix comment typoDavid Robillard1-1/+1
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-0/+1490