diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 20:10:57 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:06 -0500 |
commit | 1c1c060d7a449952051b2dd78176e48db53df1c4 (patch) | |
tree | 3f1a487c3fbdf87fa812c99bd5380325310e7b9f /test/TurtleTests/turtle-syntax-bad-struct-11.ttl | |
parent | dd63c46261f36de5c6dbd951ae1c535128f5cf8c (diff) | |
download | serd-1c1c060d7a449952051b2dd78176e48db53df1c4.tar.gz serd-1c1c060d7a449952051b2dd78176e48db53df1c4.tar.bz2 serd-1c1c060d7a449952051b2dd78176e48db53df1c4.zip |
WIP: Make serd_env_expand() always return a node if it is not relative
The old interface was potentially faster, because it avoided unnecessary
copies, but was annoying to use and problematic because nodes that don't need
expansion were indistinguishable from nodes that failed to expand (like those
that use undefined namespace prefixes).
In the grand scheme of things, the potential performance improvement isn't
worth it, and unexpected unexpanded nodes causes deep nightmarish problems, so
just make serd_env_expand() copy the input if it doesn't need expansion to make
the API simpler and safer.
Diffstat (limited to 'test/TurtleTests/turtle-syntax-bad-struct-11.ttl')
0 files changed, 0 insertions, 0 deletions