diff options
author | David Robillard <d@drobilla.net> | 2021-08-12 13:23:59 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | da7940afb82d8d1dd5321b311f27340f5702aea2 (patch) | |
tree | 43f4caf75a0e49a59db03d129ec837ea4972cf25 /src | |
parent | 4339b6f9cb0da8a9d6519077f4a0ecc385cc382c (diff) | |
download | serd-da7940afb82d8d1dd5321b311f27340f5702aea2.tar.gz serd-da7940afb82d8d1dd5321b311f27340f5702aea2.tar.bz2 serd-da7940afb82d8d1dd5321b311f27340f5702aea2.zip |
Split SERD_READ_VERBATIM into two more precise flags
Although the "verbatim" idea is nice and simple, more fine-grained control is
necessary since these features (relative URI preservation and blank node label
clash avoidance) are useful in different situations.
Diffstat (limited to 'src')
-rw-r--r-- | src/n3.c | 2 | ||||
-rw-r--r-- | src/node_syntax.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -374,7 +374,7 @@ read_IRIREF(SerdReader* const reader, SerdNode** const dest) return st; } - return (reader->flags & SERD_READ_VERBATIM) + return (reader->flags & SERD_READ_RELATIVE) ? SERD_SUCCESS : resolve_IRIREF(reader, *dest, string_start_offset); } diff --git a/src/node_syntax.c b/src/node_syntax.c index edf5cbf5..1dadc7b8 100644 --- a/src/node_syntax.c +++ b/src/node_syntax.c @@ -58,7 +58,7 @@ serd_node_from_syntax_in(const char* const str, SerdReader* const reader = serd_reader_new(world, syntax, - SERD_READ_VERBATIM | SERD_READ_GENERATED, + SERD_READ_RELATIVE | SERD_READ_GLOBAL | SERD_READ_GENERATED, env, sink, 1024 + doc_len); |