aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-13Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-5/+4
2022-01-13Make Writer always write to a ByteSinkDavid Robillard1-16/+30
2022-01-13Add empty syntax type for suppressing outputDavid Robillard1-6/+11
2022-01-13Replace SERD_WRITE_STRICT flag with SERD_WRITE_LAXDavid Robillard1-2/+2
The unset value for flags should represent the best default, which in this case is strict parsing. Lax parsing is the riskier opt-in option.
2022-01-13Improve writer error handlingDavid Robillard1-1/+2
2022-01-13Add option for writing terse output without newlinesDavid Robillard1-21/+19
2022-01-13Separate ByteSink from writerDavid Robillard1-5/+12
2022-01-13Simplify writer style optionsDavid Robillard1-31/+3
2022-01-13Add SerdCaretDavid Robillard1-4/+8
2022-01-13Add SerdWorld for shared library stateDavid Robillard1-8/+9
2022-01-13Move syntax name/extension utilities to public APIDavid Robillard1-51/+6
2022-01-13Use a fixed-size reader stackDavid Robillard1-1/+18
2022-01-13Simplify reader interfaceDavid Robillard1-61/+25
2022-01-13Add SerdSink interface and hide implementationsDavid Robillard1-7/+1
2022-01-13Bring read/write interface closer to C standardDavid Robillard1-2/+2
2022-01-13Simplify node construction APIDavid Robillard1-11/+13
2022-01-13Simplify URI API and implementationDavid Robillard1-2/+3
2022-01-13Make nodes opaqueDavid Robillard1-6/+8
2022-01-13Shorten node constructor namesDavid Robillard1-2/+2
2022-01-13Rename function types for consistencyDavid Robillard1-4/+4
2022-01-13Rename SerdStyle to SerdWriterFlagsDavid Robillard1-11/+11
2022-01-13Rename SerdURI to SerdURIViewDavid Robillard1-2/+2
2022-01-13Use char* for strings in public APIDavid Robillard1-28/+26
The constant casting just makes user code a mess, for no benefit.
2022-01-13Remove escape parameter from serd_node_new_file_uriDavid Robillard1-1/+1
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2022-01-13Define _POSIX_C_SOURCE globally in the build systemDavid Robillard1-2/+0
Using inconsistent defines like this that affect the standard library implementation can cause issues. So, doing this consistently for the whole library is a better approach, although it unfortunately makes the code more difficult to compile manually.
2021-05-31Make most function parameters constDavid Robillard1-6/+6
More const never hurts in general, but in particular this allows the compiler to make better nullability deductions, which reduces the amount of manual nullability casting required.
2021-05-31Remove "static inline" for functions in implementation filesDavid Robillard1-1/+1
This is just noise since these are static functions local to a C compilation unit.
2021-04-12Sort command line argument handling codeDavid Robillard1-7/+7
2021-04-11Support combining several BSD-style command line flags in serdiDavid Robillard1-59/+68
2021-01-09Only define WIN32_LEAN_AND_MEAN for MSVCDavid Robillard1-1/+3
This avoids a warning with MinGW.
2021-01-02Update date in version outputDavid Robillard1-1/+1
2021-01-02Use email address instead of website for attributionDavid Robillard1-2/+2
2021-01-01Remove the need for a generated configuration headerDavid Robillard1-2/+2
2020-12-31Format all code with clang-formatDavid Robillard1-275/+277
2020-12-31Avoid "else" after "break" and "return"David Robillard1-3/+12
2020-11-14Deprecate serd_uri_to_path()David Robillard1-2/+8
2020-11-12Add missing const qualifiersDavid Robillard1-4/+4
2020-11-12Factor out output style selectionDavid Robillard1-22/+34
2020-11-10Add const, pure, and malloc function attributesDavid Robillard1-1/+1
2020-11-10Define WIN32_LEAN_AND_MEANDavid Robillard1-0/+1
2020-09-27Update stale copyright datesDavid Robillard1-1/+1
2020-08-16Use conventional short variable name for statusDavid Robillard1-8/+8
2020-08-14Avoid absurd Windows warnings about "deprecated" POSIX functionsDavid Robillard1-2/+2
2020-08-14Clean up and separate internal headersDavid Robillard1-1/+24
2020-07-06Fix spurious semicolon warningsDavid Robillard1-2/+2
2020-06-21Clean up includesDavid Robillard1-4/+7
2019-03-16Set stdin and stdout to binary mode on Windows to preserve newlinesDavid Robillard1-0/+10
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+2
2018-01-04Open files in binary mode to preserve line endings on WindowsDavid Robillard1-1/+1
2017-12-29Don't force ASCII for NQuadsDavid Robillard1-2/+1