Home
last modified time | relevance | path

Searched refs:node_t (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dtsearch.c17 typedef struct node_t { struct
19 struct node_t *left, *right; argument
31 if (rootp == (struct node_t **)0) in tsearch()
33 while (*rootp != (struct node_t *)0) { /* Knuth's T1: */ in tsearch()
43 if (q != (struct node_t *)0) { /* make new node */ in tsearch()
46 q->left = q->right = (struct node_t *)0; in tsearch()
63 if (rootp == (struct node_t **)0 || *rootp == (struct node_t *)0) in tdelete()
64 return ((struct node_t *)0); in tdelete()
70 if (*rootp == (struct node_t *)0) in tdelete()
74 if ((q = (*rootp)->left) == (struct node_t *)0) /* Left (struct node_t *)0? */ in tdelete()
[all …]
Dtfind.c15 typedef struct node_t struct
18 struct node_t *llink, *rlink; argument
29 if (rootp == (struct node_t **)0) in tfind()
30 return ((struct node_t *)0); in tfind()
31 while (*rootp != (struct node_t *)0) { /* T1: */ in tfind()
/bionic/libc/bionic/
Dtdestroy.cpp20 struct node_t { struct
29 node_t* root_node = reinterpret_cast<node_t*>(root); in tdestroy() argument