Skip to content

Commit

Permalink
basic: add RB-Tree implementation
Browse files Browse the repository at this point in the history
This adds an self-standing RB-Tree implementation to src/basic/. This
will be needed for NSEC RR lookups, since we need "close lookups", which
hashmaps (not even ordered-hashmaps) can give us in reasonable time.
  • Loading branch information
David Herrmann committed Dec 7, 2015
1 parent 1941d19 commit a0e4cae
Show file tree
Hide file tree
Showing 5 changed files with 1,348 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
/test-pty
/test-qcow2
/test-ratelimit
/test-rbtree
/test-replace-var
/test-resolve
/test-ring
Expand Down
9 changes: 9 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,8 @@ libbasic_la_SOURCES = \
src/basic/missing.h \
src/basic/capability-util.c \
src/basic/capability-util.h \
src/basic/c-rbtree.c \
src/basic/c-rbtree.h \
src/basic/conf-files.c \
src/basic/conf-files.h \
src/basic/stdio-util.h \
Expand Down Expand Up @@ -1493,6 +1495,7 @@ tests += \
test-copy \
test-cap-list \
test-sigbus \
test-rbtree \
test-verbs \
test-af-list \
test-arphrd-list \
Expand Down Expand Up @@ -1728,6 +1731,12 @@ test_sigbus_SOURCES = \
test_sigbus_LDADD = \
libshared.la

test_rbtree_SOURCES = \
src/test/test-rbtree.c

test_rbtree_LDADD = \
libshared.la

test_condition_SOURCES = \
src/test/test-condition.c

Expand Down
Loading

0 comments on commit a0e4cae

Please sign in to comment.