projects
/
rxpd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492b8b4
)
add function checking if a tree is empty to psplay
author
Christian Thaeter
<ct@pipapo.org>
Sun, 7 Oct 2007 06:49:50 +0000
(08:49 +0200)
committer
Christian Thaeter
<ct@pipapo.org>
Sun, 7 Oct 2007 06:49:50 +0000
(08:49 +0200)
psplay.h
patch
|
blob
|
history
diff --git
a/psplay.h
b/psplay.h
index
e2c38b8
..
ea65417
100644
(file)
--- a/
psplay.h
+++ b/
psplay.h
@@
-61,6
+61,12
@@
psplay_init_root (PSplayroot self, psplay_cmp_t cmp, psplay_delete_t delete);
PSplayroot
psplay_destroy_root (PSplayroot self);
+static inline int
+psplay_isempty_root (PSplayroot root)
+{
+ return !root->tree;
+}
+
#define PSPLAYROOT_INITIALIZER(cmp, delete) {NULL, cmp, delete, 0}
//