aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
AgeCommit message (Collapse)AuthorFilesLines
2024-06-25Fix overly permissive parsing of syntax names on the command lineDavid Robillard1-2/+2
2023-05-04Fix whitespaceDavid Robillard1-2/+2
2023-04-30Add long "help" and "version" options to serdiDavid Robillard1-0/+8
Although serdi still "officially" has a BSD-style interface, meson uses --version to find the version of executables. So, support that, and also add --help, since users will often try that for unknown commands.
2023-04-16Gracefully handle errors when writing textDavid Robillard1-3/+8
2023-04-06Make URI writing stricter by defaultDavid Robillard1-1/+1
2023-04-06Improve help textDavid Robillard1-2/+2
2023-02-06Update year in version outputDavid Robillard1-2/+2
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-24Explicitly ignore the posix_fadvise() return valueDavid Robillard1-1/+2
I can't figure out a sensible way to test this, and even if it did fail, at most a warning message could be printed because this is just a performance hint anyway.
2022-10-23Use uppercase integer literal suffixesDavid Robillard1-1/+1
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2022-07-16Simplify command line usage printingDavid Robillard1-16/+19
2022-07-16Remove redundant check for command line argument countDavid Robillard1-4/+1
2022-07-16Define _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.
2022-05-26Update serdi version outputDavid Robillard1-3/+3
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
2017-12-29Add serdi option to write ASCII outputDavid Robillard1-1/+6
2017-09-24Make serdi guess input syntax from extension if unspecifiedDavid Robillard1-2/+27
2017-09-24Make serdi syntax options case-insensitiveDavid Robillard1-20/+28
2017-02-07Remove comment fragment cruftDavid Robillard1-6/+1
2017-01-06Add support for reading TriGDavid Robillard1-5/+8
2017-01-05Add support for NQuadsDavid Robillard1-4/+6
2017-01-03Always escape file URIsDavid Robillard1-1/+1
2016-09-18Update copyright datesDavid Robillard1-2/+2
2016-05-29Fix handling of file I/O errorsDavid Robillard1-4/+8