Lines Matching refs:lh
892 struct labhash **lhp, *lh;
899 for (lh = *lhp; lh != NULL; lh = lh->lh_next)
900 if (lh->lh_hash == h && strcmp(cp->t, lh->lh_cmd->t) == 0)
902 if ((lh = malloc(sizeof *lh)) == NULL)
904 lh->lh_next = *lhp;
905 lh->lh_hash = h;
906 lh->lh_cmd = cp;
907 lh->lh_ref = 0;
908 *lhp = lh;
918 struct labhash *lh;
924 for (lh = labels[h & LHMASK]; lh != NULL; lh = lh->lh_next) {
925 if (lh->lh_hash == h && strcmp(name, lh->lh_cmd->t) == 0) {
926 lh->lh_ref = 1;
927 return (lh->lh_cmd);
940 struct labhash *lh, *next;
944 for (lh = labels[i]; lh != NULL; lh = next) {
945 next = lh->lh_next;
946 if (!lh->lh_ref)
948 linenum, fname, lh->lh_cmd->t);
949 free(lh);