Lines Matching refs:trp

203     maketokenrow(int size, Tokenrow * trp)  in maketokenrow()  argument
205 trp->max = size; in maketokenrow()
207 trp->bp = (Token *) domalloc(size * sizeof(Token)); in maketokenrow()
209 trp->bp = NULL; in maketokenrow()
210 trp->tp = trp->bp; in maketokenrow()
211 trp->lp = trp->bp; in maketokenrow()
215 growtokenrow(Tokenrow * trp) in growtokenrow() argument
217 int ncur = trp->tp - trp->bp; in growtokenrow()
218 int nlast = trp->lp - trp->bp; in growtokenrow()
220 trp->max = 3 * trp->max / 2 + 1; in growtokenrow()
221 trp->bp = (Token *) realloc(trp->bp, trp->max * sizeof(Token)); in growtokenrow()
222 trp->lp = &trp->bp[nlast]; in growtokenrow()
223 trp->tp = &trp->bp[ncur]; in growtokenrow()
224 return trp->lp; in growtokenrow()
271 makespace(Tokenrow * trp, Token * ntp) in makespace() argument
274 Token *tp = trp->tp; in makespace()
276 if (tp >= trp->lp) in makespace()
311 adjustrow(Tokenrow * trp, int nt) in adjustrow() argument
317 size = (trp->lp - trp->bp) + nt; in adjustrow()
318 while (size > trp->max) in adjustrow()
319 growtokenrow(trp); in adjustrow()
321 nby = (char *) trp->lp - (char *) trp->tp; in adjustrow()
323 memmove(trp->tp + nt, trp->tp, nby); in adjustrow()
324 trp->lp += nt; in adjustrow()
348 normtokenrow(Tokenrow * trp) in normtokenrow() argument
354 len = trp->lp - trp->tp; in normtokenrow()
358 for (tp = trp->tp; tp < trp->lp; tp++) in normtokenrow()
379 peektokens(Tokenrow * trp, char *str) in peektokens() argument
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()
399 fprintf(stderr, tp == trp->tp ? "{%x*} " : "{%x} ", tp->type); in peektokens()
406 puttokens(Tokenrow * trp) in puttokens() argument
413 peektokens(trp, ""); in puttokens()
414 tp = trp->bp; in puttokens()
415 for (; tp < trp->lp; tp++) in puttokens()
505 trp->tp = tp; in puttokens()
526 setempty(Tokenrow * trp) in setempty() argument
528 trp->tp = trp->bp; in setempty()
529 trp->lp = trp->bp + 1; in setempty()
530 *trp->bp = nltoken; in setempty()