aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 20:10:57 -0500
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:06 -0500
commit1c1c060d7a449952051b2dd78176e48db53df1c4 (patch)
tree3f1a487c3fbdf87fa812c99bd5380325310e7b9f /src/byte_source.c
parentdd63c46261f36de5c6dbd951ae1c535128f5cf8c (diff)
downloadserd-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 'src/byte_source.c')
0 files changed, 0 insertions, 0 deletions