Lines Matching refs:c

64 #define	isquote(c) ((c) == SQ || (c) == DQ)  argument
65 #define iswhite(c) ((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) == '\f') argument
67 #define is_between(c, l, u) ((l) <= (c) && (c) <= (u)) argument
68 #define is_white(c) ((c) == ' ' || c == '\r' || c == '\t' || c == '\f') argument
69 #define is_lower(c) is_between((c), 'a', 'z') argument
70 #define is_upper(c) is_between((c), 'A', 'Z') argument
71 #define is_alpha(c) (is_lower(c) || is_upper(c)) argument
72 #define is_digit(c) is_between((c), '0', '9') argument
73 #define is_sstart(c) (is_alpha(c) || (c) == '_') argument
74 #define is_sfollow(c) (is_sstart(c) || is_digit(c)) argument
75 #define is_xdigit(c) \ argument
76 (is_digit(c) || is_between((c), 'A', 'F') || is_between((c), 'a', 'f'))
198 int c, xc; in yylex() local
205 c = getch(fp); in yylex()
206 if (c == EOF) in yylex()
209 if (c == '\n') { in yylex()
219 if (c == '#' && lex_at_bol) { in yylex()
223 while ((c = getch(fp)) != EOF && c != '\n') in yylex()
224 *p++ = c; in yylex()
249 if (is_white(c)) in yylex()
255 if (is_sstart(c)) { in yylex()
258 *p++ = c; in yylex()
259 c = getch(fp); in yylex()
260 } while (is_sfollow(c)); in yylex()
261 (void) ungetc(c, fp); in yylex()
278 if (is_digit(c)) { in yylex()
280 *p++ = c; in yylex()
281 if (c == '0') { in yylex()
282 c = getch(fp); in yylex()
283 if (c == 'x' || c == 'X') { in yylex()
286 *p++ = c; in yylex()
287 c = getch(fp); in yylex()
288 } while (is_xdigit(c)); in yylex()
290 } else if (c == 'b' || c == 'B' || in yylex()
291 c == 'd' || c == 'D' || in yylex()
292 c == 'o' || c == 'O') { in yylex()
294 *p++ = c; in yylex()
295 c = getch(fp); in yylex()
296 } while (is_digit(c)); in yylex()
299 (void) ungetc(c, fp); in yylex()
302 c = getch(fp); in yylex()
303 while (is_digit(c)) { in yylex()
304 *p++ = c; in yylex()
305 c = getch(fp); in yylex()
310 (void) ungetc(c, fp); in yylex()
323 lexeme[0] = c; in yylex()
330 if (c == '/' && xc == '/') { in yylex()
332 while ((c = getch(fp)) != EOF && c != '\n') in yylex()
334 (void) ungetc(c, fp); /* put back newline */ in yylex()
341 if (c == '/' && xc == '*') { in yylex()
344 while ((c = getch(fp)) != EOF) { in yylex()
345 if (xc == '*' && c == '/') { in yylex()
349 xc = c; in yylex()
350 if (c == '\n') in yylex()
377 if (is_between(c, ' ', '~')) in yylex()
378 compile_error("unrecognized character: 0x%02x (%c)", c, c); in yylex()
380 compile_error("unrecognized character: 0x%02x", c); in yylex()
541 int c; in str_to_sv() local
544 c = *p++; in str_to_sv()
545 if (c == 0) in str_to_sv()
549 if (iswhite(c)) in str_to_sv()
556 if (isquote(c)) { in str_to_sv()
557 int qc = c; in str_to_sv()
559 while (((c = *p++) != 0) && (c != qc)) in str_to_sv()
560 *q++ = c; in str_to_sv()
561 if (c == 0) in str_to_sv()
563 } else if (iswhite(c)) { in str_to_sv()
569 *q++ = c; in str_to_sv()