aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Add initial flags to write contextDavid Robillard1-12/+17
2023-12-02Simplify statement flagsDavid Robillard1-17/+24
2023-12-02Replace multiple stream callbacks with SerdEventDavid Robillard1-10/+30
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future.
2023-12-02Simplify writer style options and write UTF-8 by defaultDavid Robillard1-3/+4
2023-12-02Add SerdStatementDavid Robillard1-7/+8
2023-12-02Add SerdField to public APIDavid Robillard1-41/+33
A statement field enum was previously only used by the writer internally, but will be used in the public API (without a sentinel value) in following commits.
2023-12-02Use thread-safe strerror_r() if availableDavid Robillard1-1/+4
2023-12-02Move error handling to worldDavid Robillard1-3/+4
2023-12-02Add SerdWorld for shared library stateDavid Robillard1-14/+7
2023-12-02Use a fixed-size reader stackDavid Robillard1-11/+18
2023-12-02Add SerdSink interface and hide implementationsDavid Robillard1-5/+19
2023-12-02Bring read/write interface closer to the C standardDavid Robillard1-14/+18
2023-12-02Simplify node construction APIDavid Robillard1-16/+26
2023-12-02Merge datatype/language into nodeDavid Robillard1-45/+35
This moves closer to the sord API, and is more convenient in most cases.
2023-12-02Simplify URI API and implementationDavid Robillard1-15/+13
2023-12-02Make nodes opaqueDavid Robillard1-125/+131
2023-12-02Rename string view fieldsDavid Robillard1-4/+4
2023-12-02Use more human-readable status codesDavid Robillard1-11/+9
2023-12-02Split up public API headerDavid Robillard1-2/+12
2023-12-02Remove "get" from accessor namesDavid Robillard1-4/+4
2023-12-02Rename function types for consistencyDavid Robillard1-4/+4
2023-12-02Rename SerdStyle to SerdWriterFlagsDavid Robillard1-26/+26
2023-12-02Rename SerdURI to SerdURIViewDavid Robillard1-12/+12
2023-12-02Rename SerdChunk to SerdStringViewDavid Robillard1-6/+6
2023-12-02Add SerdBuffer type for mutable buffersDavid Robillard1-8/+8
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2023-12-02Use char* for strings in public APIDavid Robillard1-42/+36
The constant casting just makes user code a mess, for no benefit.
2023-12-02Remove useless character countingDavid Robillard1-4/+3
2023-09-22Fix potential realloc leaksDavid Robillard1-3/+6
2023-04-16Gracefully handle errors when writing textDavid Robillard1-66/+118
2023-04-06Clean up error handling and use TRY macros more broadlyDavid Robillard1-8/+6
2023-04-06Improve pretty-printing of lists and inline subjectsDavid Robillard1-146/+227
2023-04-06Remove support for writing Turtle named inline nodes extensionDavid Robillard1-30/+6
2023-04-06Make URI writing stricter by defaultDavid Robillard1-7/+10
2023-04-05Improve writer error handlingDavid Robillard1-138/+165
2023-04-05Simplify writing URI delimitersDavid Robillard1-10/+5
2023-04-05Fix potential memory leaks when a write is abortedDavid Robillard1-68/+82
Also clean up and simplify writer context management in general.
2023-04-05Fix pretty-printing of anonymous subjectsDavid Robillard1-3/+9
2023-04-02Improve TriG pretty-printing and remove trailing newlinesDavid Robillard1-3/+9
2023-03-31Fix possible hang when writing nested Turtle listsDavid Robillard1-6/+13
2023-02-04Fix clang and clang-tidy warnings on WindowsDavid Robillard1-1/+1
2022-12-20Avoid using ASCII grave as a quoteDavid Robillard1-1/+1
2022-11-25Always handle the return value of serd_env_set_base_uri()David Robillard1-14/+15
2022-10-23Add trailing commas to enum declarationsDavid Robillard1-2/+2
This has been supported since C99 and C++11, and makes for less noisy diffs and fewer conflicts when things are added.
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-06-30Avoid writing invalid prefixed name prefixesDavid Robillard1-1/+2
2021-05-31Remove "static inline" for functions in implementation filesDavid Robillard1-5/+5
This is just noise since these are static functions local to a C compilation unit.
2021-05-16Remove redundant castDavid Robillard1-1/+1
2021-04-09Write invalid characters in URIs with percent encodingDavid Robillard1-5/+9
2021-02-15Fix writing long literals with triple quotesDavid Robillard1-2/+10
2021-01-09Add missing pure attributesDavid Robillard1-1/+1