aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-23 21:27:47 +0000
committerDavid Robillard <d@drobilla.net>2011-04-23 21:27:47 +0000
commitc8bca421254840c7eb249e138d06f6ae0b008290 (patch)
tree8336af934b9db34bde70372c13ee792630ceaf3b /serd
parent82fdce9e8aa514710b349d3862148c7309d0ba36 (diff)
downloadserd-c8bca421254840c7eb249e138d06f6ae0b008290.tar.gz
serd-c8bca421254840c7eb249e138d06f6ae0b008290.tar.bz2
serd-c8bca421254840c7eb249e138d06f6ae0b008290.zip
Improve node struct alignment
git-svn-id: http://svn.drobilla.net/serd/trunk@147 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 120273c0..6865a1c7 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -186,10 +186,10 @@ typedef enum {
A syntactic RDF node.
*/
typedef struct {
- SerdType type;
+ const uint8_t* buf; /**< Buffer */
size_t n_bytes; /**< Size in bytes (including null) */
size_t n_chars; /**< Length in characters */
- const uint8_t* buf; /**< Buffer */
+ SerdType type; /**< Node type */
} SerdNode;
/**
@@ -277,7 +277,7 @@ serd_uri_serialise(const SerdURI* uri, SerdSink sink, void* stream);
@{
*/
-static const SerdNode SERD_NODE_NULL = { SERD_NOTHING, 0, 0, 0 };
+static const SerdNode SERD_NODE_NULL = { 0, 0, 0, SERD_NOTHING };
/**
Make a (shallow) node from @a str.