Lines Matching defs:lnp
202 LenNode *lnp, ln = { 0 };
229 if ((lnp = avl_find(stp->st_lentree, &ln, &where)) == NULL) {
230 if ((lnp = calloc(sizeof (LenNode), 1)) == NULL)
232 lnp->ln_strlen = len;
233 avl_insert(stp->st_lentree, lnp, where);
235 if ((lnp->ln_strtree = calloc(sizeof (avl_tree_t), 1)) == NULL)
238 avl_create(lnp->ln_strtree, &avl_str_compare, sizeof (StrNode),
248 if ((snp = avl_find(lnp->ln_strtree, &sn, &where)) == NULL) {
252 avl_insert(lnp->ln_strtree, snp, where);
266 LenNode *lnp, ln = { 0 };
284 if ((lnp = avl_find(stp->st_lentree, &ln, 0)) != NULL) {
286 if ((snp = avl_find(lnp->ln_strtree, &sn, 0)) != NULL) {
292 avl_remove(lnp->ln_strtree, snp);
563 LenNode *lnp;
580 if ((lnp = avl_first(stp->st_lentree)) == NULL) {
592 while (lnp) {
600 for (snp = avl_first(lnp->ln_strtree); snp;
601 snp = AVL_NEXT(lnp->ln_strtree, snp)) {
603 lnp->ln_strlen) == -1)
615 while ((snp = avl_destroy_nodes(lnp->ln_strtree,
618 avl_destroy(lnp->ln_strtree);
619 free(lnp->ln_strtree);
620 lnp->ln_strtree = NULL;
625 lnp = AVL_NEXT(stp->st_lentree, lnp);
636 while ((lnp = avl_destroy_nodes(stp->st_lentree,
638 free(lnp);