aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
AgeCommit message (Collapse)AuthorFilesLines
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
2011-05-11Record whether strings contains quotes or newlines for smart selection of ↵David Robillard1-1/+9
long strings vs short strings in writer output. git-svn-id: http://svn.drobilla.net/serd/trunk@167 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-05Make serd_read_state_get_base_uri return a pointer.David Robillard1-10/+12
git-svn-id: http://svn.drobilla.net/serd/trunk@157 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-23Tidy.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@145 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-22Fix license header (awk oops).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@143 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-22Switch to ISC license (legally equivalent to MIT license but with less ↵David Robillard1-20/+12
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/serd/trunk@139 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-25Switch to 2-clause BSD license.David Robillard1-16/+24
git-svn-id: http://svn.drobilla.net/serd/trunk@105 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Move node functions into API.David Robillard1-6/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@75 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Lint.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@74 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Change source header tag line.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@72 490d8e77-9747-427b-9fa3-0b8f29cee8a0