Lines Matching refs:sep
185 searchstring (struct Strent **sep, struct Strent *newstr) in searchstring() argument
190 if (*sep == NULL) in searchstring()
192 *sep = newstr; in searchstring()
193 return sep; in searchstring()
197 cmpres = memcmp ((*sep)->reverse, newstr->reverse, in searchstring()
198 MIN ((*sep)->len, newstr->len) - 1); in searchstring()
201 return sep; in searchstring()
203 return searchstring (&(*sep)->left, newstr); in searchstring()
205 return searchstring (&(*sep)->right, newstr); in searchstring()
214 struct Strent **sep; in strtabadd() local
230 sep = searchstring (&st->root, newstr); in strtabadd()
231 if (*sep != newstr) in strtabadd()
234 if ((*sep)->len > newstr->len) in strtabadd()
238 for (subs = (*sep)->next; subs; subs = subs->next) in strtabadd()
254 newstr->next = (*sep)->next; in strtabadd()
255 (*sep)->next = newstr; in strtabadd()
257 else if ((*sep)->len != newstr->len) in strtabadd()
262 st->total += newstr->len - (*sep)->len; in strtabadd()
263 newstr->next = *sep; in strtabadd()
264 newstr->left = (*sep)->left; in strtabadd()
265 newstr->right = (*sep)->right; in strtabadd()
266 *sep = newstr; in strtabadd()
274 newstr = *sep; in strtabadd()