Lines Matching refs:lh
1011 struct labhash **lhp, *lh; in enterlabel() local
1018 for (lh = *lhp; lh != NULL; lh = lh->lh_next) in enterlabel()
1019 if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0) in enterlabel()
1021 if ((lh = malloc(sizeof *lh)) == NULL) in enterlabel()
1023 lh->lh_next = *lhp; in enterlabel()
1024 lh->lh_hash = h; in enterlabel()
1025 lh->lh_cmd = cp; in enterlabel()
1026 lh->lh_ref = 0; in enterlabel()
1027 *lhp = lh; in enterlabel()
1037 struct labhash *lh; in findlabel() local
1043 for (lh = labels[h & LHMASK]; lh != NULL; lh = lh->lh_next) { in findlabel()
1044 if (lh->lh_hash == h && strcmp(name, lh->lh_cmd->t) == 0) { in findlabel()
1045 lh->lh_ref = 1; in findlabel()
1046 return (lh->lh_cmd); in findlabel()
1059 struct labhash *lh, *next; in uselabel() local
1063 for (lh = labels[i]; lh != NULL; lh = next) { in uselabel()
1064 next = lh->lh_next; in uselabel()
1065 if (!lh->lh_ref) in uselabel()
1067 linenum, fname, lh->lh_cmd->t); in uselabel()
1068 free(lh); in uselabel()