aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-20 18:12:59 +0000
committerDavid Robillard <d@drobilla.net>2011-01-20 18:12:59 +0000
commitf0c50e7461641d060c783e1f0fb1b74b3c175054 (patch)
tree42f464e24cb30205af5c457a90f25753ceea3714 /src
parent1c5d7f65aee365a856415adf8dbbcf4dfffa0fa6 (diff)
downloadserd-f0c50e7461641d060c783e1f0fb1b74b3c175054.tar.gz
serd-f0c50e7461641d060c783e1f0fb1b74b3c175054.tar.bz2
serd-f0c50e7461641d060c783e1f0fb1b74b3c175054.zip
Flesh out documentation.
git-svn-id: http://svn.drobilla.net/serd/trunk@12 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r--src/namespaces.c4
-rw-r--r--src/serdi.c2
-rw-r--r--src/uri.c2
-rw-r--r--src/write.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/namespaces.c b/src/namespaces.c
index a2526a5d..b14d74c5 100644
--- a/src/namespaces.c
+++ b/src/namespaces.c
@@ -95,8 +95,8 @@ SERD_API
bool
serd_namespaces_expand(SerdNamespaces ns,
const SerdString* qname,
- SerdRange* uri_prefix,
- SerdRange* uri_suffix)
+ SerdChunk* uri_prefix,
+ SerdChunk* uri_suffix)
{
const uint8_t* colon = memchr((const char*)qname->buf, ':', qname->n_bytes);
if (!colon) {
diff --git a/src/serdi.c b/src/serdi.c
index 6b4e62b4..548f88e7 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -39,7 +39,7 @@ event_base(void* handle,
return false;
}
- SerdURI base_uri = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},false};
+ SerdURI base_uri = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
SerdString* base_uri_str;
if (!uri.scheme.len) {
// URI has no scheme (relative by definition), resolve
diff --git a/src/uri.c b/src/uri.c
index 5f7a405e..a7e7178c 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -93,7 +93,7 @@ SERD_API
bool
serd_uri_parse(const uint8_t* utf8, SerdURI* uri)
{
- static const SerdURI null_uri = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0},false};
+ static const SerdURI null_uri = {{0,0},{0,0},{0,0},{0,0},{0,0},{0,0}};
*uri = null_uri;
assert(uri->path_base.buf == NULL);
assert(uri->path_base.len == 0);
diff --git a/src/write.c b/src/write.c
index c2b92d78..633655d8 100644
--- a/src/write.c
+++ b/src/write.c
@@ -115,8 +115,8 @@ serd_write_node(FILE* fd,
const SerdString* datatype,
const SerdString* lang)
{
- SerdRange uri_prefix;
- SerdRange uri_suffix;
+ SerdChunk uri_prefix;
+ SerdChunk uri_suffix;
switch (type) {
case BLANK:
fwrite("_:", 1, 2, fd);