aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
AgeCommit message (Collapse)AuthorFilesLines
2022-11-25Always handle the return value of eat_byte_safe()David Robillard1-54/+40
2022-11-24Gracefully handle bad characters in Turtle blank node syntaxDavid Robillard1-1/+3
2022-11-24Gracefully handle bad characters in Turtle datatype syntaxDavid Robillard1-2/+5
2022-11-24Avoid redundant comparisonDavid Robillard1-1/+1
2022-11-24Simplify error handling logicDavid Robillard1-6/+5
2022-10-23Fix hang when skipping an error at EOF when lax parsingDavid Robillard1-1/+1
2022-10-23Use uppercase integer literal suffixesDavid Robillard1-3/+3
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2022-06-10Fix memory consumption when reading documentsDavid Robillard1-1/+13
2021-05-31Make most function parameters constDavid Robillard1-69/+102
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-12/+12
This is just noise since these are static functions local to a C compilation unit.
2021-05-31Fix unannotated switch fallthroughsDavid Robillard1-4/+19
Unfortunately, clang does not support doing this with comments, requiring yet more preprocessor gunk.
2021-05-31Fix some conversion warningsDavid Robillard1-2/+2
2021-05-16Avoid else after breakDavid Robillard1-3/+3
2021-04-09Write statements with invalid URI characters in lax modeDavid Robillard1-9/+9
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-1295/+1373
2020-12-31Avoid "else" after "break" and "return"David Robillard1-13/+33
2020-11-13Improve IRI reading performanceDavid Robillard1-10/+13
This allows the compiler to construct a jump table, and avoids a branch.
2020-11-13Remove use of C character class functions that may use localeDavid Robillard1-2/+1
Some of these cause warnings, and should never have been used in the first place since they depend on locale.
2020-08-16Fix handling of bad syntax that ends a collectionDavid Robillard1-1/+2
2020-08-16Fix EOF and null byte handlingDavid Robillard1-3/+6
This is a bit questionable, but the null byte support is needed for streaming over a socket where some delimiter is required. This caused a bug where serdi would hang forever on corrupt files that contain a null byte. Fix this by consuming the byte, but otherwise behaving as before.
2020-08-15Clean up reader error handlingDavid Robillard1-279/+319
2020-08-15Make read_String() return a statusDavid Robillard1-42/+47
2020-08-15Make read_IRIREF_scheme() return a statusDavid Robillard1-15/+11
2020-08-15Make r_err() return a statusDavid Robillard1-52/+74
2020-08-15Make read_PrefixedName() return a statusDavid Robillard1-12/+17
2020-08-15Make read_PERCENT() return a statusDavid Robillard1-8/+4
2020-08-15Make read_UCHAR() and read_ECHAR() return a statusDavid Robillard1-21/+21
2020-08-15Exploit push_byte return statusDavid Robillard1-2/+1
2020-08-15Harden prefixed name parsingDavid Robillard1-9/+39
2020-08-14Clean up and separate internal headersDavid Robillard1-1/+5
2020-07-06Fix spurious semicolon warningsDavid Robillard1-2/+2
2020-07-06Fix format conversion warningsDavid Robillard1-3/+6
2020-07-05Remove unreachable codeDavid Robillard1-3/+2
2020-06-21Cleanup: Add missing default switch casesDavid Robillard1-0/+7
2020-06-21Cleanup: Fix uninitialised variablesDavid Robillard1-19/+19
2020-06-21Cleanup: Remove unnecessary storesDavid Robillard1-1/+1
2020-06-21Clean up includesDavid Robillard1-4/+5
2019-10-27Fix EOF handling while reading in bulk or from stringsDavid Robillard1-15/+23
2019-10-27Use int as internal character type so it can represent EOFDavid Robillard1-62/+69
2019-10-27Fix integer conversion warningsDavid Robillard1-8/+9
2019-10-27Fix lax handling of string errors and add separate lax test suiteDavid Robillard1-10/+13
2019-04-20Fix incorrect print format argumentsDavid Robillard1-2/+4
2019-03-30Fix parsing "a" abbreviation without padding whitespaceDavid Robillard1-13/+2
2019-03-17Fix bug parsing TriG graphs with several squashed trailing dotsDavid Robillard1-2/+2
2019-01-05Rewrite switch statements that are better written as ifsDavid Robillard1-18/+14
2019-01-05Fix potential use of uninitialised dataDavid Robillard1-1/+1
2019-01-05Fix unused parameter warningsDavid Robillard1-2/+2
2018-11-11Fix missing parse error messagesDavid Robillard1-1/+4