Lines Matching refs:lh
874 struct labhash **lhp, *lh; in enterlabel() local
881 for (lh = *lhp; lh != NULL; lh = lh->lh_next) in enterlabel()
882 if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0) in enterlabel()
884 if ((lh = malloc(sizeof (*lh))) == NULL) in enterlabel()
886 lh->lh_next = *lhp; in enterlabel()
887 lh->lh_hash = h; in enterlabel()
888 lh->lh_cmd = cp; in enterlabel()
889 lh->lh_ref = 0; in enterlabel()
890 *lhp = lh; in enterlabel()
900 struct labhash *lh; in findlabel() local
906 for (lh = labels[h & LHMASK]; lh != NULL; lh = lh->lh_next) { in findlabel()
907 if (lh->lh_hash == h && strcmp(name, lh->lh_cmd->t) == 0) { in findlabel()
908 lh->lh_ref = 1; in findlabel()
909 return (lh->lh_cmd); in findlabel()
922 struct labhash *lh, *next; in uselabel() local
926 for (lh = labels[i]; lh != NULL; lh = next) { in uselabel()
927 next = lh->lh_next; in uselabel()
928 if (!lh->lh_ref) in uselabel()
930 linenum, fname, lh->lh_cmd->t); in uselabel()
931 free(lh); in uselabel()