aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-08 16:15:46 -0400
committerDavid Robillard <d@drobilla.net>2022-01-13 23:03:31 -0500
commit5c90b6aff410bb4a9737680baffd79d10b5281fd (patch)
treee6f4c94fbc1c230fb238e3c91d8dc85adc0a1dec /src/node.h
parent00af9fa4e0344b1ff642a7ccd63626f77521ea8a (diff)
downloadserd-5c90b6aff410bb4a9737680baffd79d10b5281fd.tar.gz
serd-5c90b6aff410bb4a9737680baffd79d10b5281fd.tar.bz2
serd-5c90b6aff410bb4a9737680baffd79d10b5281fd.zip
Use a fixed-size reader stack
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index 69b36c3c..816445fb 100644
--- a/src/node.h
+++ b/src/node.h
@@ -20,6 +20,7 @@
#include "serd/serd.h"
#include <stddef.h>
+#include <stdint.h>
struct SerdNodeImpl {
size_t length; ///< Length in bytes (not including null)
@@ -27,6 +28,8 @@ struct SerdNodeImpl {
SerdNodeType type; ///< Node type
};
+static const size_t serd_node_align = 2 * sizeof(uint64_t);
+
static inline char* SERD_NONNULL
serd_node_buffer(SerdNode* SERD_NONNULL node)
{