summaryrefslogtreecommitdiffstats
path: root/src/sord_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-23 21:27:52 +0000
committerDavid Robillard <d@drobilla.net>2011-04-23 21:27:52 +0000
commit9ad2e0bdec306d80357a642271fbde1f8f02ec45 (patch)
tree699965c7dede97a0943ec3f252b6a4d68743353e /src/sord_internal.h
parent978e99c6034845c01adb440811e0951f8215f6bb (diff)
downloadsord-9ad2e0bdec306d80357a642271fbde1f8f02ec45.tar.gz
sord-9ad2e0bdec306d80357a642271fbde1f8f02ec45.tar.bz2
sord-9ad2e0bdec306d80357a642271fbde1f8f02ec45.zip
Improve node struct alignment
git-svn-id: http://svn.drobilla.net/sord/trunk@84 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_internal.h')
-rw-r--r--src/sord_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sord_internal.h b/src/sord_internal.h
index 4e8892e..7d62e54 100644
--- a/src/sord_internal.h
+++ b/src/sord_internal.h
@@ -26,12 +26,12 @@ typedef intptr_t SordCount; ///< Count of nodes or triples
/** Node */
struct _SordNode {
- SordNodeType type; ///< SordNodeType
+ 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)
SordCount refs; ///< Reference count (i.e. number of containing quads)
- SordNode datatype; ///< Literal data type (ID of a URI node, or 0)
- const char* lang; ///< Literal language (interned string)
- uint8_t* buf; ///< Value (string)
+ SordNodeType type; ///< SordNodeType
};
#endif /* SORD_SORD_INTERNAL_H_ */