[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.2 and 1.3

version 1.2, 2015/07/16 22:11:01 version 1.3, 2015/07/16 22:33:01
Line 185 
Line 185 
                         return c;                          return c;
                 case EOF:                  case EOF:
                         return 0;                          return 0;
                 case ':':  
                         *p++ = c;  
                         c = getc(yyfp);  
                         break;  
                 default:  
                         break;  
         }          }
         while (isalnum(c)) {          while (1) {
                   switch (c) {
                   case '\n':
                   case '{':
                   case '}':
                   case '#':
                   case ' ':
                   case '\t':
                   case EOF:
                           goto eow;
                   }
                 *p++ = c;                  *p++ = c;
                 if (p == ebuf)                  if (p == ebuf)
                         yyerror("too much stuff");                          yyerror("too much stuff");
                 c = getc(yyfp);                  c = getc(yyfp);
         }          }
   eow:
         *p = 0;          *p = 0;
         if (c != EOF)          if (c != EOF)
                 ungetc(c, yyfp);                  ungetc(c, yyfp);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3