aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Tolerate lack of predicate when context is poppedDavid Robillard1-1/+2
2020-10-27Reset writer to empty when finished to avoid spurious blank linesDavid Robillard1-0/+1
2020-10-27Pass context flags to write_sep()David Robillard1-22/+24
2020-10-27Add initial flags to write contextDavid Robillard1-14/+22
2020-10-27Simplify internal writer context APIDavid Robillard1-21/+17
2020-10-27Strengthen writer statement preconditionsDavid Robillard1-1/+3
2020-10-27Add option for writing terse output without newlinesDavid Robillard1-4/+8
2020-10-27Factor out writing top level separatorDavid Robillard1-6/+10
2020-10-27Rename writer flags for consistency with enum typeDavid Robillard1-3/+3
2020-10-27Simplify writer statement validity checkingDavid Robillard1-3/+2
2020-10-27Fix various warnings and conversion issuesDavid Robillard1-4/+4
2020-10-27Use consistent naming for function typesDavid Robillard1-4/+4
2020-10-27Add extensible logging APIDavid Robillard1-10/+10
2020-10-27Use public sink interface in readerDavid Robillard1-0/+1
2020-10-27Rename SerdStyle to SerdWriterFlagsDavid Robillard1-28/+28
2020-10-27Use simpler names for statement flagsDavid Robillard1-17/+15
2020-10-27Simplify streaming API and improve pretty printingDavid Robillard1-143/+210
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.
2020-10-27Cache commonly used nodes in the worldDavid Robillard1-10/+8
2020-10-27Separate ByteSink from WriterDavid Robillard1-7/+6
2020-10-27Expose SerdByteSink in public APIDavid Robillard1-5/+4
2020-10-27Simplify writer style optionsDavid Robillard1-2/+4
2020-10-27Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2020-10-27Separate style enum from style flags typesDavid Robillard1-20/+20
2020-10-27Make SerdSink opaqueDavid Robillard1-0/+1
2020-10-27Simplify SerdEnv APIDavid Robillard1-4/+7
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard1-6/+8
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-10-27Move SerdField to public APIDavid Robillard1-46/+40
2020-10-27Use a fixed-size reader stackDavid Robillard1-1/+5
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-10-27Clean up node construction APIDavid Robillard1-12/+6
2020-10-27Move error handling to worldDavid Robillard1-22/+7
2020-10-27Add SerdWorld for shared library stateDavid Robillard1-12/+6
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard1-2/+21
2020-10-27Bring read/write interface closer to C standardDavid Robillard1-14/+13
2020-10-27Merge datatype and/or language into nodeDavid Robillard1-28/+20
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Remove SERD_NOTHING node typeDavid Robillard1-2/+0
2020-10-27Make nodes opaqueDavid Robillard1-70/+73
2020-10-27Use opaque node APIDavid Robillard1-29/+39
2020-10-27Remove "get" from accessor namesDavid Robillard1-3/+3
2020-10-27Rename SerdChunk to SerdStringViewDavid Robillard1-6/+5
2020-10-27Use char* for strings in public APIDavid Robillard1-27/+27
The constant casting just makes user code a mess, for no benefit.
2020-10-27Remove useless character countingDavid Robillard1-4/+3
2020-10-27Add SerdBuffer type for mutable buffersDavid Robillard1-7/+7
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2020-08-16Ensure that all free methods tolerate NULLDavid Robillard1-0/+4
2020-08-14Fix incorrect separator lengthDavid Robillard1-1/+1
2020-08-14Fix Wswitch-enum warningsDavid Robillard1-6/+4
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+12
2020-07-06Fix spurious semicolon warningsDavid Robillard1-3/+5
2020-06-21Cleanup: Add missing default switch casesDavid Robillard1-0/+3
2020-06-21Cleanup: Fix uninitialised variablesDavid Robillard1-3/+4
2020-06-21Cleanup: Avoid declaring multiple variables on a single lineDavid Robillard1-1/+3