Return to parse.y CVS log | Up to [local] / src / usr.bin / doas |
version 1.4, 2015/07/16 23:02:56 | version 1.5, 2015/07/19 22:09:08 | ||
---|---|---|---|
|
|
||
yylex(void) | yylex(void) | ||
{ | { | ||
char buf[1024], *ebuf, *p, *str; | char buf[1024], *ebuf, *p, *str; | ||
int i, c; | int i, c, next; | ||
p = buf; | p = buf; | ||
ebuf = buf + sizeof(buf); | ebuf = buf + sizeof(buf); | ||
while ((c = getc(yyfp)) == ' ' || c == '\t') | repeat: | ||
; /* skip spaces */ | c = getc(yyfp); | ||
switch (c) { | switch (c) { | ||
case ' ': | |||
case '\t': | |||
goto repeat; /* skip spaces */ | |||
case '\\': | |||
next = getc(yyfp); | |||
if (next == '\n') | |||
goto repeat; | |||
else | |||
c = next; | |||
case '\n': | case '\n': | ||
case '{': | case '{': | ||
case '}': | case '}': |