Lines Matching refs:tp
210 trp->tp = trp->bp; in maketokenrow()
217 int ncur = trp->tp - trp->bp; in growtokenrow()
223 trp->tp = &trp->bp[ncur]; in growtokenrow()
235 tp1 = tr1->tp; in comparetokens()
236 tp2 = tr2->tp; in comparetokens()
260 dtr->tp += ntok; in insertrow()
262 dtr->tp -= ntok; in insertrow()
264 dtr->tp += nrtok; in insertrow()
274 Token *tp = trp->tp; in makespace() local
276 if (tp >= trp->lp) in makespace()
281 tt = newstring(tp->t, tp->len, ntp->wslen); in makespace()
283 tp->t = tt + ntp->wslen; in makespace()
284 tp->wslen = ntp->wslen; in makespace()
285 tp->flag |= XPWS; in makespace()
301 memmove(dtr->tp, str->bp, nby); in movetokenrow()
321 nby = (char *) trp->lp - (char *) trp->tp; in adjustrow()
323 memmove(trp->tp + nt, trp->tp, nby); in adjustrow()
350 Token *tp; in normtokenrow() local
354 len = trp->lp - trp->tp; in normtokenrow()
358 for (tp = trp->tp; tp < trp->lp; tp++) in normtokenrow()
360 *ntrp->lp = *tp; in normtokenrow()
361 if (tp->len) in normtokenrow()
363 ntrp->lp->t = newstring(tp->t, tp->len, 1); in normtokenrow()
365 if (tp->wslen) in normtokenrow()
381 Token *tp; in peektokens() local
383 tp = trp->tp; in peektokens()
387 if (tp < trp->bp || tp > trp->lp) in peektokens()
388 fprintf(stderr, "(tp offset %ld) ", (long int) (tp - trp->bp)); in peektokens()
389 for (tp = trp->bp; tp < trp->lp && tp < trp->bp + 32; tp++) in peektokens()
391 if (tp->type != NL) in peektokens()
393 int c = tp->t[tp->len]; in peektokens()
395 tp->t[tp->len] = 0; in peektokens()
396 fprintf(stderr, "%s", tp->t); in peektokens()
397 tp->t[tp->len] = (uchar) c; in peektokens()
399 fprintf(stderr, tp == trp->tp ? "{%x*} " : "{%x} ", tp->type); in peektokens()
408 Token *tp; in puttokens() local
414 tp = trp->bp; in puttokens()
415 for (; tp < trp->lp; tp++) in puttokens()
417 if (tp->type != NL) in puttokens()
419 len = tp->len + tp->wslen; in puttokens()
420 p = tp->t - tp->wslen; in puttokens()
425 if( (tp->type == NAME) && (strncmp( (char*)p, "delete", len ) == 0) ) in puttokens()
427 Token* ntp = tp; in puttokens()
462 if( (tp->wslen == 0) && (strncmp( (char*)p, "extern", len ) == 0) ) in puttokens()
470 if ((tp->type == STRING) || (tp->type == CCON)) in puttokens()
479 if( (tp->type == NAME) && (strncmp( (char*)p, "__ToLatin1__", len) == 0) ) in puttokens()
505 trp->tp = tp; in puttokens()
528 trp->tp = trp->bp; in setempty()