Commit e90f3dea authored by Paul Eggert's avatar Paul Eggert

* getdate.y (yylex): Allow space between sign and number.

parent 9a13bba6
2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
* getdate.y (yylex): Allow space between sign and number.
Problem reported by Dan Jacobson.
2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
and Jim Meyering <jim@meyering.net>
......
......@@ -844,7 +844,8 @@ yylex (YYSTYPE *lvalp, parser_control *pc)
if (c == '-' || c == '+')
{
sign = c == '-' ? -1 : 1;
c = *++pc->input;
while (c = *++pc->input, ISSPACE (c))
continue;
if (! ISDIGIT (c))
/* skip the '-' sign */
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment