David Robillard
164337b78f
Remove dependence on fmax() to avoid portability issues.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@476 490d8e77-9747-427b-9fa3-0b8f29cee8a0
8 years ago
David Robillard
31bf2e8147
Use Markdown in doc comments for better source readability.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@471 490d8e77-9747-427b-9fa3-0b8f29cee8a0
9 years ago
David Robillard
4d63cd1d88
Use Markdown in doc comments for better source readability.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@469 490d8e77-9747-427b-9fa3-0b8f29cee8a0
9 years ago
David Robillard
272b0626ea
Update copyright dates.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@467 490d8e77-9747-427b-9fa3-0b8f29cee8a0
9 years ago
David Robillard
cf7dc2c676
Remove unnecessary branch condition.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@447 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
541c97ad49
Correctly handle posix_memalign failure
...
git-svn-id: http://svn.drobilla.net/serd/trunk@411 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
c283edd147
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
02a41f39b2
Add error callback to reader and writer for custom error reporting.
...
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
11 years ago
David Robillard
75ad5aa2a1
Strip duplicate blank lines.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@341 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
d14a7d1136
Add serd_writer_set_root_uri(), root parameter to
...
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
11 years ago
David Robillard
f4365012b5
Add serd_writer_get_env().
...
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
11 years ago
David Robillard
2bbd923eb7
Fix collection parsing code to not leak stack space.
...
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
11 years ago
David Robillard
713dc6669f
Use consistent *_config.h rather than *-config.h.
...
Fix amalgamation.
git-svn-id: http://svn.drobilla.net/serd/trunk@298 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
e3dcfd6ac4
Fix compilation on sane platforms.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@292 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
2d724f0e19
Support compilation as C++ under MSVC++
...
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
3c3e2de8a7
Update copyright dates.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
847e56d9e6
Add serd_node_new_blob and serd_base64_decode for handling arbitrary binary
...
data via base64 encoding.
git-svn-id: http://svn.drobilla.net/serd/trunk@280 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
f3c95977f6
Near 100% branch coverage.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
2469c739d8
Add serd_strtod(), serd_node_new_decimal(), and serd_node_new_integer() for
...
locale-independent numeric node parsing/serialising.
git-svn-id: http://svn.drobilla.net/serd/trunk@260 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
22ac239266
Make bulk writer internal and inlinable to avoid function call overhead in the writer.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@254 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
ea1936a594
Move all #ifdef gunk to serd_internal.h.
...
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
11 years ago
David Robillard
6e4a3a9ea9
Add SerdBulkSink for writing bulk output and corresponding serdi -B option.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
926f29ed81
Create SerdNodeFlags typedef for flags.
...
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
12 years ago
David Robillard
efd2a2ecb1
Record whether strings contains quotes or newlines for smart selection of long strings vs short strings in writer output.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@167 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
8c7698ce03
Make serd_read_state_get_base_uri return a pointer.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@157 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
ecc3adb41d
Tidy.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@145 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
78492aeaf5
Fix license header (awk oops).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@143 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
0cdf509658
Switch to ISC license (legally equivalent to MIT license but with less obnoxious lawyer noise).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@139 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
a3a6b66ee7
Switch to 2-clause BSD license.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@105 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
839dd67ed1
Move node functions into API.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@75 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
ee5b1d33ac
Lint.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@74 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
33c8bc0564
Change source header tag line.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@72 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
5b0c4fec31
Fix memory leaks.
...
Push builtin URIs (rdf:type, etc) on parser creation/deletion, rather than at each parse.
git-svn-id: http://svn.drobilla.net/serd/trunk@67 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
e4daedb841
Remove SerdString cruft.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@54 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
6903e56e24
Remove SerdString from public API in favour of more expressive (and not necessarily inline with data payload) SerdNode.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@53 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
cffc0e7bb7
Add missing include.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@52 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
ebcef72577
Rearrange code, put common internal stuff in serd_internal.h.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@46 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
5de15ccf0a
Code cleanup (appease cpplint).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@45 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago
David Robillard
983c964a11
Streaming abbreviation.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@41 490d8e77-9747-427b-9fa3-0b8f29cee8a0
12 years ago