[BACK]Return to parse.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / doas

Diff for /src/usr.bin/doas/parse.y between version 1.4 and 1.5

version 1.4, 2015/07/16 23:02:56 version 1.5, 2015/07/19 22:09:08
Line 166 
Line 166 
 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 '}':

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5