Home
last modified time | relevance | path

Searched refs:trp (Results 1 – 8 of 8) sorted by relevance

/trunk/main/soltools/cpp/
H A D_macro.c179 trp->tp = trp->bp; in doadefine()
182 if (trp->lp - trp->tp != 2 || trp->tp->type != NAME) in doadefine()
192 if (trp->tp >= trp->lp || trp->tp->type != NAME) in doadefine()
198 if (trp->tp >= trp->lp || trp->tp->type == END) in doadefine()
207 if (trp->tp >= trp->lp || trp->tp->type != NAME) in doadefine()
212 if (trp->tp >= trp->lp || trp->tp->type == END) in doadefine()
247 for (tp = trp->tp; tp < trp->lp;) in expandrow()
396 if (trp->tp != trp->lp) in expand()
435 if (trp->tp >= trp->lp) in gatherargs()
458 if (trp->tp >= trp->lp) in gatherargs()
[all …]
H A D_cpp.c76 if (trp->tp >= trp->lp) in process()
78 trp->tp = trp->lp = trp->bp; in process()
81 trp->tp = trp->bp; in process()
92 trp->tp = trp->lp; in process()
128 tp = trp->tp; in control()
179 if (tp->type != NAME || trp->lp - trp->bp != 4) in control()
247 if (trp->lp - trp->bp != 3) in control()
261 if (trp->lp - trp->bp != 3) in control()
296 trp->lp = trp->bp; in control()
301 trp->lp = trp->bp; in control()
[all …]
H A D_tokens.c210 trp->tp = trp->bp; in maketokenrow()
211 trp->lp = trp->bp; in maketokenrow()
217 int ncur = trp->tp - trp->bp; in growtokenrow()
218 int nlast = trp->lp - trp->bp; 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()
354 len = trp->lp - trp->tp; in normtokenrow()
389 for (tp = trp->bp; tp < trp->lp && tp < trp->bp + 32; tp++) in peektokens()
528 trp->tp = trp->bp; in setempty()
[all …]
H A D_include.c59 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()
66 trp->tp = trp->bp + len; in doinclude()
81 trp->tp++; in doinclude()
84 if (trp->tp > trp->lp || len + trp->tp->len + 2 >= sizeof(fname)) in doinclude()
86 strncpy(fname + len, (char *) trp->tp->t, trp->tp->len); in doinclude()
95 trp->tp += 2; in doinclude()
96 if (trp->tp < trp->lp || len == 0) in doinclude()
[all …]
H A D_eval.c254 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.c340 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.c142 tokenrow_zeroTokenIdentifiers(Tokenrow* trp) in tokenrow_zeroTokenIdentifiers() argument
145 for (tp = trp->bp; tp < trp->lp; tp++) in tokenrow_zeroTokenIdentifiers()
H A Dcpp.h185 void tokenrow_zeroTokenIdentifiers(Tokenrow* trp);

Completed in 31 milliseconds