aboutsummaryrefslogtreecommitdiffhomepage
path: root/rbtree.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-11 01:57:20 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-11 01:57:20 +0100
commit345521105a14102d4dd62788d5d3971270009760 (patch)
treea4174409eff2b67a48e8d578cf1bb0c3ed41b4b8 /rbtree.cpp
parent523947d30c5fb2e1a804023dcf7f1aa70a9a6932 (diff)
downloadsciteco-345521105a14102d4dd62788d5d3971270009760.tar.gz
RBTree class (wrapper around BSD macros) - use for Goto table
* the other classes (Table, StringTable, StringTableUndo) do not yet work
Diffstat (limited to 'rbtree.cpp')
-rw-r--r--rbtree.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbtree.cpp b/rbtree.cpp
new file mode 100644
index 0000000..28df67b
--- /dev/null
+++ b/rbtree.cpp
@@ -0,0 +1,5 @@
+#include <bsd/sys/tree.h>
+
+#include "rbtree.h"
+
+RB_GENERATE(RBTree::Tree, RBTree::RBEntry, nodes, RBTree::compare_entries);