2012-02-26 04:18:39 +00:00
|
|
|
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
|
1999-08-25 23:53:55 +00:00
|
|
|
type ENTRY
|
|
|
|
type {struct entry}
|
|
|
|
element {struct entry} {char*} key
|
|
|
|
element {struct entry} {void*} data
|
|
|
|
|
|
|
|
type ACTION
|
|
|
|
constant FIND
|
|
|
|
constant ENTER
|
|
|
|
|
|
|
|
type VISIT
|
|
|
|
constant preorder
|
|
|
|
constant postorder
|
|
|
|
constant endorder
|
|
|
|
constant leaf
|
|
|
|
|
|
|
|
function int hcreate (size_t)
|
|
|
|
function void hdestroy (void)
|
|
|
|
function {ENTRY*} hsearch (ENTRY, ACTION)
|
2017-04-27 20:29:35 +00:00
|
|
|
#ifndef XPG4
|
1999-08-25 23:53:55 +00:00
|
|
|
function void insque (void*, void*)
|
2016-05-19 14:35:41 +00:00
|
|
|
#endif
|
1999-08-25 23:53:55 +00:00
|
|
|
function {void*} lfind (const void*, const void*, size_t*, size_t, int (*)(const void*, const void*))
|
|
|
|
function {void*} lsearch (const void*, void*, size_t*, size_t, int (*)(const void*, const void*))
|
2017-04-27 20:29:35 +00:00
|
|
|
#ifndef XPG4
|
1999-08-25 23:53:55 +00:00
|
|
|
function void remque (void*)
|
2016-05-19 14:35:41 +00:00
|
|
|
#endif
|
1999-08-25 23:53:55 +00:00
|
|
|
function {void*} tdelete (const void*, void**, int(*)(const void*, const void*))
|
2000-02-23 06:02:09 +00:00
|
|
|
function {void*} tfind (const void*, void*const*, int(*)(const void*, const void*))
|
1999-08-25 23:53:55 +00:00
|
|
|
function {void*} tsearch (const void*, void**, int(*)(const void*, const void*))
|
|
|
|
function void twalk (const void*, void (*) (const void*, VISIT, int))
|
1999-08-26 00:13:21 +00:00
|
|
|
|
|
|
|
allow *_t
|
1999-08-25 23:53:55 +00:00
|
|
|
#endif
|