Searched refs:trp (Results 1 – 8 of 8) sorted by relevance
| /AOO41X/main/soltools/cpp/ |
| H A D | _macro.c | 44 dodefine(Tokenrow * trp) in dodefine() argument 52 tp = trp->tp + 1; in dodefine() 53 if (tp >= trp->lp || tp->type != NAME) in dodefine() 67 if (tp < trp->lp && tp->type == LP && tp->wslen == 0) in dodefine() 114 trp->tp = tp; in dodefine() 115 if (((trp->lp) - 1)->type == NL) in dodefine() 116 trp->lp -= 1; in dodefine() 117 def = normtokenrow(trp); in dodefine() 127 trp->bp + 2, np->loc); in dodefine() 131 trp->bp + 2, "commandline" ); in dodefine() [all …]
|
| H A D | _cpp.c | 70 process(Tokenrow * trp) in process() argument 76 if (trp->tp >= trp->lp) in process() 78 trp->tp = trp->lp = trp->bp; in process() 80 anymacros |= gettokens(trp, 1); 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() 104 control(trp); in process() [all …]
|
| H A D | _tokens.c | 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() [all …]
|
| H A D | _include.c | 52 doinclude(Tokenrow * trp, int depth, int import) in doinclude() argument 59 trp->tp += 1; in doinclude() 60 if (trp->tp >= trp->lp) in doinclude() 62 if (trp->tp->type != STRING && trp->tp->type != LT) in doinclude() 64 len = trp->tp - trp->bp; in doinclude() 65 expandrow(trp, "<include>"); in doinclude() 66 trp->tp = trp->bp + len; in doinclude() 68 if (trp->tp->type == STRING) in doinclude() 70 len = trp->tp->len - 2; in doinclude() 73 strncpy(fname, (char *) trp->tp->t + 1, len); in doinclude() [all …]
|
| H A D | _eval.c | 254 eval(Tokenrow * trp, int kw) in eval() argument 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() 274 expandrow(trp, "<if>"); in eval() 279 for (rnd = 0, tp = trp->bp + ntok; tp < trp->lp; tp++) in eval() 372 if ((tp + 1) < trp->lp) in eval()
|
| H A D | _lex.c | 340 gettokens(Tokenrow * trp, int reset) in gettokens() argument 349 tp = trp->lp; in gettokens() 368 maxp = &trp->bp[trp->max]; in gettokens() 375 trp->lp = tp; in gettokens() 376 tp = growtokenrow(trp); in gettokens() 377 maxp = &trp->bp[trp->max]; in gettokens() 495 if (tp != trp->bp && (tp - 1)->type != NL && cursource->fd != -1) in gettokens() 497 trp->lp = tp + 1; in gettokens() 509 trp->lp = tp + 1; in gettokens()
|
| H A D | _mcrvalid.c | 142 tokenrow_zeroTokenIdentifiers(Tokenrow* trp) in tokenrow_zeroTokenIdentifiers() argument 145 for (tp = trp->bp; tp < trp->lp; tp++) in tokenrow_zeroTokenIdentifiers()
|
| H A D | cpp.h | 185 void tokenrow_zeroTokenIdentifiers(Tokenrow* trp);
|