diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_internal.h | 10 | ||||
-rw-r--r-- | 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 <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; } |