aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-25Fix writer flags typeDavid Robillard1-18/+18
2018-11-25Simplify streaming API and improve pretty printingDavid Robillard1-108/+150
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.
2018-11-25Cache commonly used nodes in the worldDavid Robillard1-10/+8
2018-11-25Separate ByteSink from WriterDavid Robillard1-8/+6
2018-11-25Expose SerdByteSink in public APIDavid Robillard1-4/+4
2018-11-25Simplify writer style optionsDavid Robillard1-2/+2
2018-11-25Separate style enum from style flags typesDavid Robillard1-1/+1
2018-11-25Make SerdSink opaqueDavid Robillard1-0/+1
2018-11-25Simplify SerdEnv APIDavid Robillard1-4/+7
2018-11-25Make 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.
2018-11-25Move SerdField to public APIDavid Robillard1-47/+41
2018-11-25Use fixed size stackDavid Robillard1-1/+1
2018-11-25Clean up node construction APIDavid Robillard1-12/+7
2018-11-25Clean up includes and improve source file separationDavid Robillard1-6/+9
2018-11-25Move error handling to worldDavid Robillard1-21/+6
2018-11-25Add SerdWorld for shared library stateDavid Robillard1-11/+5
2018-11-25Add SerdSink interface and hide individual function implementationsDavid Robillard1-2/+21
2018-11-25Bring read/write interface closer to C standardDavid Robillard1-15/+9
2018-11-25Clean up and separate internal headersDavid Robillard1-0/+14
2018-11-25Merge datatype and/or language into nodeDavid Robillard1-28/+20
This moves closer to the sord API, and is more convenient in most cases.
2018-11-25Make nodes opaqueDavid Robillard1-71/+78
2018-11-25Use opaque node APIDavid Robillard1-29/+39
2018-11-25Rename SerdChunk to SerdSliceDavid Robillard1-3/+3
2018-11-25Use char* for strings in public APIDavid Robillard1-19/+19
The constant casting just makes user code a mess, for no benefit.
2018-11-25Remove useless character countingDavid Robillard1-4/+3
2018-11-25Use SerdBuffer for mutable buffersDavid Robillard1-7/+7
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2018-06-15Remove redundant SERD_API declarationsDavid Robillard1-14/+0
2018-06-10Remove syntax assumptions from SerdEnv implementationDavid Robillard1-1/+15
2018-05-27Clarify errors returned by serd_env_expand()David Robillard1-5/+5
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-8/+0
2017-11-05Factor out namespace definesDavid Robillard1-3/+0
2017-09-23Use more efficient stack allocation and growth policiesDavid Robillard1-1/+1
2017-08-29Fix writing of corrupt UTF-8David Robillard1-8/+7
2017-07-30Move parse_utf8_char to shared internal headerDavid Robillard1-20/+1
2017-07-30Cleanup: Add push_bytes function to reduce code verbosityDavid Robillard1-2/+0
2017-07-10Cleanup: Separate writer code into smaller functionsDavid Robillard1-154/+207
2017-07-10Gracefully handle applications that write corrupt UTF-8David Robillard1-7/+13
2017-07-10Factor out UTF-8 character size countingDavid Robillard1-23/+1
2017-06-30Clean up UTF-8 parsing and use CLZ if availableDavid Robillard1-27/+29
2017-06-30Cleanup: Remove unnecessary variableDavid Robillard1-4/+3
2017-06-30Fix various clang-tidy issuesDavid Robillard1-1/+1
2017-05-20Abstract more syntax specifics away from writerDavid Robillard1-7/+11
2017-04-14Make BulkSink general and factor out details from WriterDavid Robillard1-21/+6
2017-02-14Improve struct packingDavid Robillard1-1/+1
2017-01-07Add support for writing TriGDavid Robillard1-29/+67
2017-01-06Add support for reading TriGDavid Robillard1-10/+11
2017-01-06TidyDavid Robillard1-2/+2
2017-01-05Add support for NQuadsDavid Robillard1-2/+9
2016-09-18Update copyright datesDavid Robillard1-1/+1
2016-06-13Fix use of uninitialized fieldsDavid Robillard1-8/+1
Fixes #1135