From f6e997b7f73d01db84665bc924ba2d065e314e43 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 2 Dec 2002 02:37:01 -0500 Subject: snapshot of project "lynx", label v2-8-5dev_11 --- WWW/Library/Implementation/HTBTree.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation/HTBTree.h') diff --git a/WWW/Library/Implementation/HTBTree.h b/WWW/Library/Implementation/HTBTree.h index d4b2ac08..cbbfad43 100644 --- a/WWW/Library/Implementation/HTBTree.h +++ b/WWW/Library/Implementation/HTBTree.h @@ -15,7 +15,7 @@ #ifndef HTUTILS_H #include #endif - + /* Data structures @@ -74,6 +74,16 @@ Add an object to a binary tree extern void HTBTree_add PARAMS((HTBTree* tree, void * object)); +/* + +Search an object in a binary tree + + returns Pointer to equivalent object in a tree or NULL if none. + */ + +extern void * HTBTree_search PARAMS((HTBTree* tree, void * object)); + + /* Find user object for element @@ -91,7 +101,7 @@ Find next element in depth-first order ele if NULL, start with leftmost element. if != 0 give next object to the right. - returns Pointer to element ot NULL if none left. + returns Pointer to element or NULL if none left. */ extern HTBTElement * HTBTree_next PARAMS((HTBTree* tree, HTBTElement * ele)); -- cgit 1.4.1-2-gfad0