Lines Matching refs:tp
256 Token *tp; in eval() local
260 trp->tp++; in eval()
263 if (trp->lp - trp->bp != 4 || trp->tp->type != NAME) in eval()
268 np = lookup(trp->tp, 0); in eval()
271 ntok = trp->tp - trp->bp; in eval()
279 for (rnd = 0, tp = trp->bp + ntok; tp < trp->lp; tp++) in eval()
281 switch (tp->type) in eval()
296 *vp++ = tokval(tp); in eval()
306 *op++ = tp->type; in eval()
316 if (tp->type == MINUS) in eval()
318 if (tp->type == STAR || tp->type == AND) in eval()
347 if (evalop(priority[tp->type]) != 0) in eval()
349 *op++ = tp->type; in eval()
372 if ((tp + 1) < trp->lp) in eval()
374 np = lookup(tp + 1, 0); in eval()
377 tp++; in eval()
387 error(ERROR, "Bad operator (%t) in #if/#elsif", tp); in eval()
621 tokval(Token * tp) in tokval() argument
631 switch (tp->type) in tokval()
639 if ((np = lookup(tp, 0)) != NULL && np->flag & (ISDEFINED | ISMAC)) in tokval()
644 if ((np = lookup(tp, 0)) != NULL && np->flag & (ISARCHITECTURE)) in tokval()
651 p = tp->t; in tokval()
652 c = p[tp->len]; in tokval()
653 p[tp->len] = '\0'; in tokval()
670 "Bad digit in number %t", tp); in tokval()
686 "Bad number %t in #if/#elsif", tp); in tokval()
691 tp->t[tp->len] = c; in tokval()
696 p = tp->t; in tokval()