aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
AgeCommit message (Collapse)AuthorFilesLines
2018-09-30Fix calloc argument orderDavid Robillard1-1/+1
2018-09-16Fix const castsDavid Robillard1-1/+1
2018-07-22Inline serd_byte_source_advanceDavid Robillard1-2/+34
2018-07-12Fix making relative URIs that are shorter than, but under, the rootDavid Robillard1-14/+30
2018-06-11Zero-initialize stack memoryDavid Robillard1-1/+1
2018-06-10Fix relative URI serialisationDavid Robillard1-2/+9
2018-02-04Factor out syntax-specific reader implementationDavid Robillard1-0/+89
2018-02-04Factor out is_xdigitDavid Robillard1-1/+8
2017-12-26Print file open error in standard formatDavid Robillard1-1/+2
2017-11-05Move cursor from reader to byte sourceDavid Robillard1-0/+8
2017-11-05Move EOF flag from reader to byte sourceDavid Robillard1-0/+1
2017-11-05Factor out namespace definesDavid Robillard1-0/+3
2017-09-24Make serdi syntax options case-insensitiveDavid Robillard1-0/+12
2017-09-23Use more efficient stack allocation and growth policiesDavid Robillard1-1/+1
2017-08-29Fix writing of corrupt UTF-8David Robillard1-7/+1
2017-07-30Move parse_utf8_char to shared internal headerDavid Robillard1-0/+24
2017-07-30Cleanup: Add push_bytes function to reduce code verbosityDavid Robillard1-0/+2
2017-07-10Factor out UTF-8 character size countingDavid Robillard1-0/+23
2017-07-09Add serd_node_from_substring()David Robillard1-0/+6
This allows creating nodes in-place from substrings of other strings to allow zero-copy serialization from existing delimited buffers.
2017-07-08Fix parsing of hex escapes in file URIsJohannes Mueller1-0/+7
This fixes round-trip of paths to/from escaped file URIs.
2017-06-30Fix various clang-tidy issuesDavid Robillard1-1/+1
2017-06-29Fix strict parsing of abolute URI schemesDavid Robillard1-0/+11
2017-04-24Allow arbitrary page size to be passed for custom sourcesDavid Robillard1-2/+2
2017-04-14Make BulkSink general and factor out details from WriterDavid Robillard1-13/+21
2017-04-14Factor out file reading from readerDavid Robillard1-0/+46
2016-08-01Use consistent feature test macrosDavid Robillard1-1/+1
2016-05-17Fix unaligned memory access (UB which breaks ARM)David Robillard1-1/+33
With this fix, the test suite runs cleanly with UBSan.
2014-10-03Remove dependence on fmax() to avoid portability issues.David Robillard1-8/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@476 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@471 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@469 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@467 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-31Remove unnecessary branch condition.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@447 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-03Correctly handle posix_memalign failureDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@411 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-1/+1
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-05Add error callback to reader and writer for custom error reporting.David Robillard1-0/+13
Add -q option to serdi to suppress all non-data output, e.g. errors. Resolves #815. git-svn-id: http://svn.drobilla.net/serd/trunk@354 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-28Strip duplicate blank lines.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@341 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard1-0/+51
serd_uri_serialise_relative(), and -r option to serdi, to enable writing URIs with up references (../) within a parent namespace. Resolve dot segments in serd_uri_resolve() instead of at write time. git-svn-id: http://svn.drobilla.net/serd/trunk@336 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add serd_writer_get_env().David Robillard1-0/+7
Add serd_node_new_uri_from_path() and serd_file_uri_parse() and implement proper URI to/from path hex escaping, etc. Add serd_uri_serialise_relative() for making URIs relative to a base where possible (by chopping a common prefix and adding dot segments). Make URIs serialised by the writer properly escape characters. git-svn-id: http://svn.drobilla.net/serd/trunk@330 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Fix collection parsing code to not leak stack space.David Robillard1-2/+2
Collection parsing now truly uses O(1) memory. Trim some fat. git-svn-id: http://svn.drobilla.net/serd/trunk@309 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
Fix amalgamation. git-svn-id: http://svn.drobilla.net/serd/trunk@298 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Fix compilation on sane platforms.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@292 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Support compilation as C++ under MSVC++David Robillard1-3/+11
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-30Add serd_node_new_blob and serd_base64_decode for handling arbitrary binaryDavid Robillard1-0/+6
data via base64 encoding. git-svn-id: http://svn.drobilla.net/serd/trunk@280 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25Near 100% branch coverage.David Robillard1-4/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-19Add serd_strtod(), serd_node_new_decimal(), and serd_node_new_integer() forDavid Robillard1-0/+11
locale-independent numeric node parsing/serialising. git-svn-id: http://svn.drobilla.net/serd/trunk@260 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Make bulk writer internal and inlinable to avoid function call overhead in ↵David Robillard1-0/+73
the writer. git-svn-id: http://svn.drobilla.net/serd/trunk@254 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Move all #ifdef gunk to serd_internal.h.David Robillard1-0/+36
Centralise file open and buffer allocation to localize platform tweaks. git-svn-id: http://svn.drobilla.net/serd/trunk@244 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Add SerdBulkSink for writing bulk output and corresponding serdi -B option.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-11Create SerdNodeFlags typedef for flags.David Robillard1-32/+0
Expose serd_strlen. Make serd_node_copy tolerate a NULL parameter. git-svn-id: http://svn.drobilla.net/serd/trunk@168 490d8e77-9747-427b-9fa3-0b8f29cee8a0