Lines Matching defs:snp
199 StrNode *snp, sn = { 0 };
247 if ((snp = avl_find(lnp->ln_strtree, &sn, &where)) == NULL) {
248 if ((snp = calloc(sizeof (*snp), 1)) == NULL)
250 snp->sn_str = str;
251 avl_insert(lnp->ln_strtree, snp, where);
253 snp->sn_refcnt++;
266 StrNode *snp, sn = { 0 };
285 if ((snp = avl_find(lnp->ln_strtree, &sn, 0)) != NULL) {
290 if (--snp->sn_refcnt == 0)
291 avl_remove(lnp->ln_strtree, snp);
592 StrNode *snp;
599 for (snp = avl_first(lnp->ln_strtree); snp;
600 snp = AVL_NEXT(lnp->ln_strtree, snp)) {
601 if (st_hash_insert(stp, snp->sn_str,
614 while ((snp = avl_destroy_nodes(lnp->ln_strtree,
616 free(snp);