diff options
author | David Robillard <d@drobilla.net> | 2011-05-12 16:43:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-12 16:43:42 +0000 |
commit | d1a185c160bf8767e9001a6357f46ac6cfc6f94d (patch) | |
tree | 23bc229896bc71ec3316db2c6dc5bac779d35ed8 /src/sord_test.c | |
parent | b1992a03139b64e718eeaf87686cce8c7c9134d1 (diff) | |
download | sord-d1a185c160bf8767e9001a6357f46ac6cfc6f94d.tar.gz sord-d1a185c160bf8767e9001a6357f46ac6cfc6f94d.tar.bz2 sord-d1a185c160bf8767e9001a6357f46ac6cfc6f94d.zip |
Expose sord_node_from_serd_node.
Remove _counted node constructor methods.
Use SerdNode directly for equivalent fields in SordNode.
git-svn-id: http://svn.drobilla.net/sord/trunk@110 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_test.c')
-rw-r--r-- | src/sord_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sord_test.c b/src/sord_test.c index 589ed9d..90e29dd 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -34,11 +34,10 @@ uri(SordWorld* world, int num) if (num == 0) return 0; - char uri[] = "eg:000"; - const size_t uri_len = 3 + DIGITS; - char* uri_num = uri + 3; // First `0' + char uri[] = "eg:000"; + char* uri_num = uri + 3; // First `0' snprintf(uri_num, DIGITS + 1, "%0*d", DIGITS, num); - return sord_new_uri_counted(world, (const uint8_t*)uri, uri_len); + return sord_new_uri(world, (const uint8_t*)uri); } /** Trivial function to return EXIT_FAILURE (useful as a breakpoint) */ |