diff options
author | David Robillard <d@drobilla.net> | 2012-08-10 04:00:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-10 04:00:33 +0000 |
commit | 7339c3c6f211f7903465c2345583de06d727caf6 (patch) | |
tree | 11ad4b0654c6d8f9e69b9021c492cfd1961977d1 /src/lilv_internal.h | |
parent | 402fec7d2baa182464129ab510e2b1fe266bfe48 (diff) | |
download | lilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.gz lilv-7339c3c6f211f7903465c2345583de06d727caf6.tar.bz2 lilv-7339c3c6f211f7903465c2345583de06d727caf6.zip |
Always back LilvNode with a SordNode and shave 16 bytes off of LilvNode.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4642 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lilv_internal.h')
-rw-r--r-- | src/lilv_internal.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h index 51c3863..f23b7a2 100644 --- a/src/lilv_internal.h +++ b/src/lilv_internal.h @@ -201,19 +201,14 @@ typedef enum { } LilvNodeType; struct LilvNodeImpl { - LilvWorld* world; - char* str_val; ///< always present + LilvWorld* world; + SordNode* node; + LilvNodeType type; union { - int int_val; - float float_val; - bool bool_val; - SordNode* uri_val; - struct { - void* buf; - size_t size; - } blob_val; + int int_val; + float float_val; + bool bool_val; } val; - LilvNodeType type; }; struct LilvScalePointImpl { |