From 0d433faadd5ea92dfd83269ba13912c65bff3696 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 5 May 2011 02:54:08 +0000 Subject: Tidy git-svn-id: http://svn.drobilla.net/sord/trunk@104 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord_internal.h | 10 +++++----- src/syntax.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/sord_internal.h b/src/sord_internal.h index e4d858b..727701f 100644 --- a/src/sord_internal.h +++ b/src/sord_internal.h @@ -14,8 +14,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef SORD_SORD_INTERNAL_H_ -#define SORD_SORD_INTERNAL_H_ +#ifndef SORD_SORD_INTERNAL_H +#define SORD_SORD_INTERNAL_H #include #include @@ -27,12 +27,12 @@ struct SordNodeImpl { uint8_t* buf; ///< Value (string) const char* lang; ///< Literal language (interned string) SordNode* datatype; ///< Literal data type (ID of a URI node, or 0) - size_t n_bytes; ///< Length of data in bytes (including terminator) - size_t refs; ///< Reference count (i.e. number of containing quads) + size_t n_bytes; ///< Length of data in bytes (including NULL) + size_t refs; ///< Reference count (# of containing quads) SordNodeType type; ///< SordNodeType }; const char* sord_intern_lang(SordWorld* world, const char* lang); -#endif /* SORD_SORD_INTERNAL_H_ */ +#endif /* SORD_SORD_INTERNAL_H */ diff --git a/src/syntax.c b/src/syntax.c index 585a642..1c925c9 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -103,8 +103,8 @@ sord_node_from_serd_node(ReadState* state, const SerdNode* sn, memcpy(buf, uri_prefix.buf, uri_prefix.len); memcpy(buf + uri_prefix.len, uri_suffix.buf, uri_suffix.len); buf[uri_len] = '\0'; - SordNode* ret = sord_new_uri_counted(state->world, - buf, uri_prefix.len + uri_suffix.len); + SordNode* ret = sord_new_uri_counted( + state->world, buf, uri_prefix.len + uri_suffix.len); free(buf); return ret; } -- cgit v1.2.1