diff options
author | David Robillard <d@drobilla.net> | 2020-08-12 20:54:05 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:59 +0100 |
commit | 7f1d50b40814db24573b9eb425566ce1d44d2e85 (patch) | |
tree | 56c87c5b0ed1b84027957888605e497d4521f0a0 /tests/TriGTests/objectList_with_two_objects.nq | |
parent | aafc82f0bee3b222d395ef959aa4a6917f2ef0b2 (diff) | |
download | serd-7f1d50b40814db24573b9eb425566ce1d44d2e85.tar.gz serd-7f1d50b40814db24573b9eb425566ce1d44d2e85.tar.bz2 serd-7f1d50b40814db24573b9eb425566ce1d44d2e85.zip |
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 'tests/TriGTests/objectList_with_two_objects.nq')
0 files changed, 0 insertions, 0 deletions