summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 03:51:27 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 03:51:27 +0000
commit7b21b438b02d8ff14ae079a0734b1a9e51b7c453 (patch)
treef99c8b6a69cdf078900a62bd1fde4d3308b84ccb /src/sord.c
parentf08ab45ec226e01e4e6a77ced66e30176b30e5cd (diff)
downloadsord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.tar.gz
sord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.tar.bz2
sord-7b21b438b02d8ff14ae079a0734b1a9e51b7c453.zip
Hide zix symbols (fix static builds with lilv).
git-svn-id: http://svn.drobilla.net/sord/trunk@248 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sord.c b/src/sord.c
index f0f3428..bd68d65 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -22,7 +22,10 @@
#include <stdlib.h>
#include <string.h>
+#define ZIX_INLINE
+#include "zix/hash.c"
#include "zix/hash.h"
+#include "zix/tree.c"
#include "zix/tree.h"
#include "sord_config.h"
@@ -640,10 +643,10 @@ sord_new(SordWorld* world, unsigned indices, bool graphs)
if (indices & (1 << i)) {
sord->indices[i] = zix_tree_new(
- false, sord_quad_compare, (void*)ordering);
+ false, sord_quad_compare, (void*)ordering, NULL);
if (graphs) {
sord->indices[i + (NUM_ORDERS / 2)] = zix_tree_new(
- false, sord_quad_compare, (void*)g_ordering);
+ false, sord_quad_compare, (void*)g_ordering, NULL);
} else {
sord->indices[i + (NUM_ORDERS / 2)] = NULL;
}
@@ -655,11 +658,11 @@ sord_new(SordWorld* world, unsigned indices, bool graphs)
if (!sord->indices[DEFAULT_ORDER]) {
sord->indices[DEFAULT_ORDER] = zix_tree_new(
- false, sord_quad_compare, (void*)orderings[DEFAULT_ORDER]);
+ false, sord_quad_compare, (void*)orderings[DEFAULT_ORDER], NULL);
}
if (graphs && !sord->indices[DEFAULT_GRAPH_ORDER]) {
sord->indices[DEFAULT_GRAPH_ORDER] = zix_tree_new(
- false, sord_quad_compare, (void*)orderings[DEFAULT_GRAPH_ORDER]);
+ false, sord_quad_compare, (void*)orderings[DEFAULT_GRAPH_ORDER], NULL);
}
return sord;