Lines Matching refs:vp
61 register struct var *vp; in assign() local
70 vp = lookup(name); in assign()
71 if (vp == NOVAR) { in assign()
72 if ((vp = (struct var *) in assign()
73 calloc(sizeof (*vp), 1)) == NULL) in assign()
75 vp->v_name = vcopy(name); in assign()
76 vp->v_link = variables[h]; in assign()
77 variables[h] = vp; in assign()
79 vfree(vp->v_value); in assign()
80 vp->v_value = vcopy(value); in assign()
85 prompt = vp->v_value; in assign()
88 if (debug) fprintf(stderr, "assign(%s)=%s\n", vp->v_name, vp->v_value); in assign()
95 register struct var *vp, *vp2; in deassign() local
118 for (vp = variables[h]; vp->v_link != vp2; vp = vp->v_link) in deassign()
120 vp->v_link = vp2->v_link; in deassign()
168 register struct var *vp; in value() local
171 if ((vp = lookup(name)) == NOVAR) in value()
174 cp = vp->v_value; in value()
187 register struct var *vp; in lookup() local
191 for (vp = variables[h]; vp != NOVAR; vp = vp->v_link) in lookup()
192 if (equal(vp->v_name, name)) in lookup()
193 return(vp); in lookup()