summaryrefslogtreecommitdiffstats
path: root/include/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/search.h')
-rw-r--r--include/search.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/search.h b/include/search.h
index 068c82d..4c1f534 100644
--- a/include/search.h
+++ b/include/search.h
@@ -35,8 +35,9 @@ typedef enum {
#ifdef _SEARCH_PRIVATE
typedef struct node {
- char *key;
+ void *key;
struct node *llink, *rlink;
+ signed char balance;
} node_t;
struct que_elem {
@@ -46,11 +47,8 @@ struct que_elem {
#endif
#if __BSD_VISIBLE
-struct _ENTRY;
struct hsearch_data {
- struct _ENTRY *table;
- size_t size;
- size_t filled;
+ struct __hsearch *__hsearch;
};
#endif
OpenPOWER on IntegriCloud