aboutsummaryrefslogtreecommitdiffstats
path: root/src/stack.h
AgeCommit message (Collapse)AuthorFilesLines
2022-01-13Align nodes on the reader stackDavid Robillard1-4/+7
2022-01-13Simplify streaming API and improve pretty printingDavid Robillard1-0/+6
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.
2022-01-13Zero node padding before passing to reader sinksDavid Robillard1-0/+1
2022-01-13Simplify stack management by popping in bulk at higher levelsDavid Robillard1-23/+11
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.
2022-01-13Use a fixed-size reader stackDavid Robillard1-4/+8
2022-01-13Use char* for strings in public APIDavid Robillard1-12/+9
The constant casting just makes user code a mess, for no benefit.
2021-05-31Fix some conversion warningsDavid Robillard1-1/+1
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-42/+44
2020-12-15Clean up includesDavid Robillard1-2/+2
2020-08-14Make serd_stack_push() return a void pointerDavid Robillard1-1/+1
This avoids some unnecessary type punning.
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+117