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

Diff for /src/usr.bin/bc/bc.y between version 1.24 and 1.25

version 1.24, 2004/10/19 07:36:51 version 1.25, 2005/03/17 16:59:31
Line 190 
Line 190 
                         {                          {
                                 yyerrok;                                  yyerrok;
                         }                          }
                   | error QUIT
                           {
                                   yyerrok;
                           }
                 ;                  ;
   
 semicolon_list  : /* empty */  semicolon_list  : /* empty */
Line 928 
Line 932 
 {  {
         char    *str, *p;          char    *str, *p;
   
         if (isspace(yytext[0]) || !isprint(yytext[0]))          if (feof(yyin))
                 asprintf(&str, "%s: %s:%d: %s: ascii char 0x%x unexpected",                  asprintf(&str, "%s: %s:%d: %s: unexpected EOF",
                       __progname, filename, lineno, s);
           else if (isspace(yytext[0]) || !isprint(yytext[0]))
                   asprintf(&str, "%s: %s:%d: %s: ascii char 0x%02x unexpected",
                     __progname, filename, lineno, s, yytext[0]);                      __progname, filename, lineno, s, yytext[0]);
         else          else
                 asprintf(&str, "%s: %s:%d: %s: %s unexpected",                  asprintf(&str, "%s: %s:%d: %s: %s unexpected",

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25