Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-01-28 | Add a close function to SerdByteSink | David Robillard | 1 | -31/+26 | |
This simplifies everything by replacing special cases with a more general close function. A type is no longer stored in the structure, so the other constructors are now essentially syntactic sugar for the universal serd_byte_sink_new_function(). | |||||
2022-01-28 | Add assertions for all non-null pointers in the public API | David Robillard | 1 | -0/+11 | |
Clang issues warnings at build time based on the SERD_NONNULL annotations, which is a much better approach in general. However, it does not cover cases where the API is being used with another compiler, or without a compiler that can statically check things at all (such as Python or other dynamic language bindings). In those situations, getting a clear assertion message is a lot less confusing than a random crash somewhere in serd, and it makes it clear that the bug is in the caller, so I think it's worth the tedious verbosity. | |||||
2022-01-13 | Make Writer always write to a ByteSink | David Robillard | 1 | -44/+64 | |
2022-01-13 | Expose SerdByteSink in public API | David Robillard | 1 | -0/+106 | |