Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-03-08 | WIP: Test reading string EOF as chunk | David Robillard | 1 | -1/+14 | |
2021-03-08 | Expand URIs in reader | David Robillard | 1 | -3/+11 | |
2021-03-08 | WIP: Make Reader always read from a ByteSource | David Robillard | 1 | -27/+31 | |
2021-03-08 | WIP: Make Writer always write to a ByteSink | David Robillard | 1 | -9/+16 | |
2021-03-08 | Fix crash when attempting to read before starting | David Robillard | 1 | -0/+3 | |
2021-03-08 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 1 | -14/+14 | |
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future. | |||||
2021-03-08 | Report writer errors and add strict write mode | David Robillard | 1 | -0/+37 | |
2021-03-08 | WIP: Write invalid characters in URIs with percent encoding | David Robillard | 1 | -0/+2 | |
2021-03-08 | Fix socket-like stream reading test | David Robillard | 1 | -3/+5 | |
2021-03-08 | Separate ByteSink from Writer | David Robillard | 1 | -3/+7 | |
2021-03-08 | Replace multiple stream callbacks with SerdEvent | David Robillard | 1 | -26/+19 | |
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. | |||||
2021-03-08 | Add SerdStatement | David Robillard | 1 | -10/+6 | |
2021-03-08 | Add SerdCursor | David Robillard | 1 | -1/+2 | |
2021-03-08 | Remove serd_reader_set_default_graph() | David Robillard | 1 | -36/+23 | |
2021-03-08 | Add serd_world_get_blank() | David Robillard | 1 | -0/+18 | |
2021-03-08 | Add SerdWorld for shared library state | David Robillard | 1 | -5/+15 | |
2021-03-08 | Clean up nodes in reader/writer tests | David Robillard | 1 | -12/+20 | |
2021-03-08 | Simplify literal construction API | David Robillard | 1 | -3/+2 | |
2021-03-08 | Use a fixed-size reader stack | David Robillard | 1 | -3/+3 | |
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. | |||||
2021-03-07 | Simplify reader interface | David Robillard | 1 | -20/+20 | |
2021-03-07 | Add SerdSink interface and hide implementations | David Robillard | 1 | -27/+36 | |
2021-03-07 | Bring read/write interface closer to C standard | David Robillard | 1 | -5/+10 | |
2021-03-07 | Simplify reader interface | David Robillard | 1 | -9/+10 | |
2021-03-07 | Simplify node construction API | David Robillard | 1 | -21/+30 | |
2021-03-07 | Merge datatype/language into node | David Robillard | 1 | -43/+15 | |
This moves closer to the sord API, and is more convenient in most cases. | |||||
2021-03-07 | Remove SERD_NOTHING node type | David Robillard | 1 | -15/+1 | |
2021-03-07 | Make nodes opaque | David Robillard | 1 | -42/+51 | |
2021-03-07 | Remove "get" from accessor names | David Robillard | 1 | -4/+4 | |
2021-03-07 | Rename SerdStyle to SerdWriterFlags | David Robillard | 1 | -5/+4 | |
2021-03-07 | Use char* for strings in public API | David Robillard | 1 | -29/+27 | |
The constant casting just makes user code a mess, for no benefit. | |||||
2021-03-07 | Add SerdBuffer type for mutable buffers | David Robillard | 1 | -5/+5 | |
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks. | |||||
2021-01-02 | Use email address instead of website for attribution | David Robillard | 1 | -1/+1 | |
2020-12-31 | Format all code with clang-format | David Robillard | 1 | -261/+268 | |
2020-11-13 | Remove tests that pass null to nonnull parameters | David Robillard | 1 | -6/+2 | |
2020-11-11 | Add nonnull and nullable attributes to API | David Robillard | 1 | -0/+8 | |
This will warn if NULL is passed to any nonnull-annotated parameter, and is also supported by sanitizers which can check for violations at runtime. Unfortunately, it is currently only supported by clang. GCC has a similar feature in the nonnull attribute, but this has a different syntax (it's a function attribute) and is more dangerous since it is used by the optimizer to assume a null pointer is undefined behavior. This one just warns and still allows code to handle the situation gracefully, which I think is more appropriate for a library API. Note that this optimization behavior is not some unlikely edge case: switching these attributes to the GCC one will break release builds. | |||||
2020-11-09 | Add a test for reading strings with no trailing newline | David Robillard | 1 | -0/+23 | |
2020-11-09 | Split out reader and writer tests | David Robillard | 1 | -0/+329 | |