aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
AgeCommit message (Collapse)AuthorFilesLines
2025-01-30Unify invalid input character error reportingDavid Robillard1-1/+4
Puts all error messages that print input characters in the same place, so that potentially printing them can be handled properly. Most notably this avoids printing EOF and control characters in error messages.
2024-11-23Use angle brackets for library includesDavid Robillard1-1/+1
2024-09-27Make function parameters const wherever possibleDavid Robillard1-7/+10
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-27Remove unnecessary stdio.h includesDavid Robillard1-3/+3
2023-05-03Make serd_reader_read_chunk() work with NQuadsDavid Robillard1-0/+3
2023-04-06Improve pretty-printing of lists and inline subjectsDavid Robillard1-6/+0
2023-04-05Use distinct include guards for internal headersDavid Robillard1-4/+4
2022-12-20Avoid using ASCII grave as a quoteDavid Robillard1-1/+1
2022-11-25Always handle the return value of eat_byte_safe()David Robillard1-4/+13
2022-11-24Gracefully handle bad characters in Turtle blank node syntaxDavid Robillard1-1/+2
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-05-31Make most function parameters constDavid Robillard1-1/+1
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-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-87/+99
2020-11-10Add const, pure, and malloc function attributesDavid Robillard1-3/+3
2020-10-28Simplify reader byte reading interfaceDavid Robillard1-10/+3
This eliminates eat_byte() and the way it conflates the status of advancing the source with the current character, which can cause problems with custom sinks.
2020-08-15Clean up reader error handlingDavid Robillard1-13/+12
2020-08-15Make r_err() return a statusDavid Robillard1-3/+4
2020-08-15Move prototype to a more sensible locationDavid Robillard1-4/+4
2020-08-14Make serd_stack_push() return a void pointerDavid Robillard1-1/+1
This avoids some unnecessary type punning.
2020-08-14Clean up and separate internal headersDavid Robillard1-1/+93
2020-06-21Clean up includesDavid Robillard1-1/+5
2019-10-27Use int as internal character type so it can represent EOFDavid Robillard1-12/+19
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+2
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-0/+86