Lines Matching refs:tp

76         if (trp->tp >= trp->lp)  in process()
78 trp->tp = trp->lp = trp->bp; in process()
81 trp->tp = trp->bp; in process()
83 if (trp->tp->type == END) in process()
92 trp->tp = trp->lp; in process()
101 if (trp->tp->type == SHARP) in process()
103 trp->tp += 1; in process()
126 Token *tp; in control() local
128 tp = trp->tp; in control()
129 if (tp->type != NAME) in control()
131 if (tp->type == NUMBER) in control()
133 if (tp->type != NL) in control()
137 if ((np = lookup(tp, 0)) == NULL || ((np->flag & ISKW) == 0 && !skipping)) in control()
139 error(WARNING, "Unknown preprocessor control %t", tp); in control()
178 tp += 1; in control()
179 if (tp->type != NAME || trp->lp - trp->bp != 4) in control()
184 if ((np = lookup(tp, 0)) != NULL) in control()
200 for (tp = trp->tp - 1; ((tp->type != NL) && (tp < trp->lp)); tp++) in control()
201 tp->type = UNCLASS; in control()
266 trp->tp = tp + 1; in control()
271 trp->tp = tp + 1; in control()
273 tp = trp->bp + 2; in control()
275 if (tp + 1 >= trp->lp || tp->type != NUMBER || tp + 3 < trp->lp in control()
276 || (tp + 3 == trp->lp in control()
277 && ((tp + 1)->type != STRING || *(tp + 1)->t == 'L'))) in control()
282 cursource->line = atol((char *) tp->t) - 1; in control()
285 tp = tp + 1; in control()
286 if (tp + 1 < trp->lp) in control()
287 cursource->filename = (char *) newstring(tp->t + 1, tp->len - 2, 0); in control()
314 error(ERROR, "Preprocessor control `%t' not yet implemented", tp); in control()
342 Token *tp; in error() local
375 tp = va_arg(ap, Token *); in error()
376 fprintf(stderr, "%.*s", (int)tp->len, tp->t); in error()
381 for (tp = trp->tp; tp < trp->lp && tp->type != NL; tp++) in error()
383 if (tp > trp->tp && tp->wslen) in error()
385 fprintf(stderr, "%.*s", (int)tp->len, tp->t); in error()