Lines Matching refs:cs

140     char *cs;		/* pointer to current symbol in converted exp */  in expconv()  local
147 cs = NIL; in expconv()
156 if (cs == NIL || (*cs & STR) == 0) { in expconv()
157 cs = ccre; in expconv()
158 *cs = STR; in expconv()
159 SCNT(cs) = 1; in expconv()
162 SCNT(cs)++; in expconv()
172 if (acs != NIL && acs != cs) { in expconv()
180 cs = ccre; in expconv()
181 *cs = META; in expconv()
182 MSYM(cs) = c; in expconv()
183 ccre = MNEXT(cs); in expconv()
191 if (acs != NIL && acs != cs) { in expconv()
199 cs = ccre; in expconv()
200 *cs = META; in expconv()
201 MSYM(cs) = c; in expconv()
202 ccre = MNEXT(cs); in expconv()
207 if (cs) in expconv()
208 *cs = *cs | OPT; in expconv()
213 if (acs != NIL && acs != cs) { in expconv()
221 cs = ccre; in expconv()
222 *cs = OPER; in expconv()
223 OSYM(cs) = '('; in expconv()
224 ccre = ONEXT(cs); in expconv()
226 OCNT(cs) = ccre - cs; /* offset to next symbol */ in expconv()
239 cs = ccre; in expconv()
240 *cs = META; in expconv()
241 MSYM(cs) = c; in expconv()
242 ccre = MNEXT(cs); in expconv()
249 if (acs != NIL && acs != cs) in expconv()
253 *cs |= ALT; in expconv()
254 cs = ccre; in expconv()
255 *cs = OPER; in expconv()
256 OSYM(cs) = '|'; in expconv()
257 ccre = ONEXT(cs); in expconv()
258 acs = cs; /* remember that the pointer is to be filles */ in expconv()
263 if (cs == NIL || (*cs & STR) == 0) { in expconv()
264 cs = ccre; in expconv()
265 *cs = STR; in expconv()
266 SCNT(cs) = 1; in expconv()
267 ccre = SSTR(cs); in expconv()
269 SCNT(cs)++; in expconv()
317 char *cs; /* the current symbol */ in expmatch() local
324 cs = re; in expmatch()
328 while (*cs) { in expmatch()
329 switch (*cs & (OPER | STR | META)) { in expmatch()
333 matched = !STRNCMP (s, SSTR(cs), SCNT(cs)); in expmatch()
337 s += SCNT(cs); in expmatch()
338 cs = SNEXT(cs); in expmatch()
339 } else if (*cs & ALT) { in expmatch()
342 cs = SNEXT(cs); in expmatch()
343 } else if (*cs & OPT) { in expmatch()
346 cs = SNEXT(cs); in expmatch()
357 switch (OSYM(cs)) { in expmatch()
364 cs = OPTR(cs); in expmatch()
368 cs = ONEXT(cs); in expmatch()
373 ptr = expmatch (s, ONEXT(cs), mstring); in expmatch()
379 } else if (*cs & ALT) { in expmatch()
383 } else if (*cs & OPT) { in expmatch()
392 cs = OPTR(cs); in expmatch()
399 switch (MSYM(cs)) { in expmatch()
410 ptr = expmatch (s1, MNEXT(cs), mstring); in expmatch()
417 } else if (ptr != NIL && (*cs & OPT)) { in expmatch()
444 ptr = expmatch (s1, MNEXT(cs), mstring); in expmatch()
449 } else if (ptr != NIL && (*cs & OPT)) { in expmatch()
469 cs = MNEXT(cs); in expmatch()
481 cs = MNEXT(cs); in expmatch()
486 cs = MNEXT(cs); in expmatch()
487 } else if (*cs & ALT) { in expmatch()
491 cs = MNEXT(cs); in expmatch()
492 } else if (*cs & OPT) { in expmatch()
496 cs = MNEXT(cs); in expmatch()
510 cs = MNEXT(cs); in expmatch()
511 } else if (*cs & ALT) { in expmatch()
515 cs = MNEXT(cs); in expmatch()
516 } else if (*cs & OPT) { in expmatch()
520 cs = MNEXT(cs); in expmatch()
533 cs = MNEXT(cs); in expmatch()
534 } else if (*cs & ALT) { in expmatch()
538 cs = MNEXT(cs); in expmatch()
539 } else if (*cs & OPT) { in expmatch()
543 cs = MNEXT(cs); in expmatch()