aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2024-11-23Use angle brackets for library includesDavid Robillard18-19/+20
2024-11-22Use more conventional command-line help formattingDavid Robillard1-14/+14
2024-09-27Reorder branch to avoid redundant assignmentDavid Robillard1-4/+4
Well, to make it obvious to cppcheck that it's not redundant, anyway.
2024-09-27Fix potential null dereferenceDavid Robillard1-1/+1
2024-09-27Make more pointer variables constDavid Robillard3-9/+9
2024-09-27Make function parameters const wherever possibleDavid Robillard9-116/+132
The early history of this code didn't tend to make parameters const, but the "const density" is high enough now that I often find myself wondering if something is mutable for some reason, or just old and sloppier. So, eliminate this confusion by making (hopefully) all function parameters const if possible.
2024-09-27Use tighter types for UTF-8David Robillard3-16/+16
2024-09-27Remove unnecessary stdio.h includesDavid Robillard2-4/+3
2024-08-03Fix reading chunks from files without trailing newlinesDavid Robillard2-9/+8
2024-08-03Avoid bumping cursor column on EOFDavid Robillard1-2/+3
2024-07-16Suppress new warnings in clang and clang-tidy 18David Robillard1-1/+5
2024-06-25Simplify token comparison in readerDavid Robillard1-14/+20
"Simplify" in terms of the operations actually performed. Since we only need to test for equality here, a simpler comparison with less branching will do.
2024-06-25Reduce size of character classification codeDavid Robillard3-121/+24
2024-06-25Fix rewriting special literals when datatype URIs are prefixed namesDavid Robillard1-15/+30
2024-06-25Clean up redundant and/or inconsistent conditionalsDavid Robillard4-27/+19
2024-06-25Replace questionable switch statements with shorter conditionalsDavid Robillard7-97/+30
2024-06-25Fix overly permissive parsing of syntax names on the command lineDavid Robillard3-9/+14
2024-06-24Write blank lines between graphs and statements in TriGDavid Robillard1-1/+1
2024-06-24Clean up nonnull parameter assertionsDavid Robillard5-3/+32
2024-06-23Gracefully handle failure to terminate written anonymous nodesDavid Robillard1-14/+14
This case shouldn't be reachable when driven directly from a reader, but can be reached by invalid use of the writer in an application.
2024-06-23Gracefully handle errors while writing the end of anonymous nodesDavid Robillard1-1/+1
2024-06-22Strengthen clang-tidy configurationDavid Robillard1-3/+5
2024-06-22Avoid non-enum switches with missing default casesDavid Robillard2-25/+25
2024-06-09Treat out of range unicode characters as errorsDavid Robillard1-2/+2
2024-06-04Suppress new warnings in clang-tidy 17David Robillard1-1/+2
2024-03-29Fix lax NQuads parsingDavid Robillard1-5/+9
2024-03-29Support reading lone lists in lax modeDavid Robillard1-1/+1
This allows parsing documents like "(42) ."
2024-03-28Add assertions for all non-null pointers in the public APIDavid Robillard9-0/+106
2024-03-10Simplify writer logicDavid Robillard1-18/+17
2024-03-10Remove unnecessary internal writer separator caseDavid Robillard1-21/+7
2024-03-08Fix parsing NQuads lines with no space before the final dotDavid Robillard2-2/+2
2024-01-23Serd 0.32.2v0.32.2David Robillard1-1/+1
2024-01-20Fix writing empty list objects within blank nodesDavid Robillard1-0/+8
2024-01-09Avoid regressions in clang nullability checksDavid Robillard3-1/+47
Clang 15 (and still as of 16) lost the ability to understand null checks in conditionals, which is supposed to suppress these warnings. For now, work around some, and suppress others. The suppression boilerplate here is noisy and ugly, and hopefully temporary. It should be removed once the issue is fixed in clang. See https://github.com/llvm/llvm-project/issues/63018
2024-01-09Enable clang nullability checksDavid Robillard1-2/+2
2023-10-22Serd 0.32.0v0.32.0David Robillard1-1/+1
2023-09-22Fix potential realloc leaksDavid Robillard2-6/+12
2023-09-22Remove unused includeDavid Robillard1-1/+0
2023-05-08Avoid use of strtoul()David Robillard3-9/+16
This function is overkill for the simple cases actually needed here, and pretty slow anyway.
2023-05-04Fix whitespaceDavid Robillard1-2/+2
2023-05-03Make serd_reader_read_chunk() work with NQuadsDavid Robillard3-2/+7
2023-05-03Factor out read_nquads_statement()David Robillard1-42/+54
2023-05-03Remove redundant wrapper functionDavid Robillard1-7/+1
2023-04-30Add long "help" and "version" options to serdiDavid Robillard2-1/+9
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 Robillard5-85/+143
2023-04-06Clean up error handling and use TRY macros more broadlyDavid Robillard2-37/+41
2023-04-06Improve pretty-printing of lists and inline subjectsDavid Robillard4-161/+247
2023-04-06Remove support for writing Turtle named inline nodes extensionDavid Robillard1-30/+6
2023-04-06Simplify remove_dot_segments() implementationDavid Robillard1-53/+15
2023-04-06Make URI writing stricter by defaultDavid Robillard2-8/+11