diff options
author | David Robillard <d@drobilla.net> | 2021-07-23 12:21:57 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | d4bfea4ad74f8a737dad143f6f136aff499cb23f (patch) | |
tree | d80433e0357fff4954aea91f99d2edb2f02c9d69 /src/world.h | |
parent | 2019d1581c1296cc534c731a1f454ce08b460dcc (diff) | |
download | serd-d4bfea4ad74f8a737dad143f6f136aff499cb23f.tar.gz serd-d4bfea4ad74f8a737dad143f6f136aff499cb23f.tar.bz2 serd-d4bfea4ad74f8a737dad143f6f136aff499cb23f.zip |
Avoid dynamic allocation of world blank node
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/world.h b/src/world.h index 0888b480..8033dcec 100644 --- a/src/world.h +++ b/src/world.h @@ -5,6 +5,7 @@ #define SERD_SRC_WORLD_H #include "log.h" +#include "node.h" #include "serd/memory.h" #include "serd/node.h" @@ -25,9 +26,13 @@ struct SerdWorldImpl { const SerdNode* xsd_boolean; const SerdNode* xsd_decimal; const SerdNode* xsd_integer; - SerdNode* blank_node; uint32_t next_blank_id; uint32_t next_document_id; + + struct { + SerdNode node; + char string[16]; + } blank; }; #endif // SERD_SRC_WORLD_H |