[Libsysio-commit] HEAD: libsysio/include tree.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-31 21:35:57
|
Update of /cvsroot/libsysio/libsysio/include In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26922/include Modified Files: tree.h Log Message: The splay routine is now public, called _sysio_splay. Note, it's still a really bad idea to depend on the other tree routines maintaining their trees as a splay-tree. Index: tree.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/tree.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- tree.h 17 Apr 2009 14:54:35 -0000 1.3 +++ tree.h 31 Aug 2009 21:35:44 -0000 1.4 @@ -73,4 +73,7 @@ extern int _sysio_tree_enumerate(const s int (*in)(const struct tree_node *, void *), int (*post)(const struct tree_node *, void *), void *); +extern int _sysio_splay(const void *key, + struct tree_node **rootp, + int (*compar)(const void *, const void *)); #endif /* !defined(_TREE_H) */ |