diff options
Diffstat (limited to 'winsup/cygwin/include/search.h')
-rw-r--r-- | winsup/cygwin/include/search.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/winsup/cygwin/include/search.h b/winsup/cygwin/include/search.h index bfadb23e0..36a335ed9 100644 --- a/winsup/cygwin/include/search.h +++ b/winsup/cygwin/include/search.h @@ -31,26 +31,18 @@ typedef enum leaf } VISIT; -#ifdef _SEARCH_PRIVATE -typedef struct node -{ - char *key; - struct node *llink, *rlink; -} node_t; - -struct que_elem -{ - struct que_elem *next; - struct que_elem *prev; -}; -#endif - struct hsearch_data { struct internal_head *htable; size_t htablesize; }; +struct qelem +{ + struct qelem *q_forw; + struct qelem *q_back; +}; + __BEGIN_DECLS int hcreate (size_t); void hdestroy (void); @@ -69,6 +61,8 @@ void *lfind (const void *, const void *, size_t *, size_t, int (*) (const void *, const void *)); void *lsearch (const void *, void *, size_t *, size_t, int (*) (const void *, const void *)); +void insque (void *, void *); +void remque (void *); __END_DECLS #endif /* !_SEARCH_H_ */ |