summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-05 02:54:08 +0000
committerDavid Robillard <d@drobilla.net>2011-05-05 02:54:08 +0000
commit0d433faadd5ea92dfd83269ba13912c65bff3696 (patch)
tree10e8760a4b3dc3f80f62133ddcf89e10ab2c20a7 /src
parent86a0dfa80fff11f10bf6e3634b404a93d0800abb (diff)
downloadsord-0d433faadd5ea92dfd83269ba13912c65bff3696.tar.gz
sord-0d433faadd5ea92dfd83269ba13912c65bff3696.tar.bz2
sord-0d433faadd5ea92dfd83269ba13912c65bff3696.zip
Tidy
git-svn-id: http://svn.drobilla.net/sord/trunk@104 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src')
-rw-r--r--src/sord_internal.h10
-rw-r--r--src/syntax.c4
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 <stddef.h>
#include <stdint.h>
@@ -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;
}