mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: calc: minor refactoring.
* tests/calc.at (_AT_DATA_CALC_Y): Simplify yylex.
(cherry picked from commit 67f1a2c254)
This commit is contained in:
@@ -122,19 +122,15 @@ int
|
||||
])[
|
||||
}
|
||||
|
||||
]AT_LOCATION_IF([
|
||||
AT_LOC_FIRST_COLUMN = AT_LOC_LAST_COLUMN;
|
||||
AT_LOC_FIRST_LINE = AT_LOC_LAST_LINE;
|
||||
])[
|
||||
|
||||
/* Skip white space. */
|
||||
while ((c = get_char (]AT_LEX_ARGS[)) == ' ' || c == '\t')
|
||||
/* Skip current token, then white spaces. */
|
||||
do
|
||||
{
|
||||
]AT_LOCATION_IF(
|
||||
[ AT_LOC_FIRST_COLUMN = AT_LOC_LAST_COLUMN;
|
||||
AT_LOC_FIRST_LINE = AT_LOC_LAST_LINE;
|
||||
])[
|
||||
}
|
||||
while ((c = get_char (]AT_LEX_ARGS[)) == ' ' || c == '\t');
|
||||
|
||||
/* process numbers */
|
||||
if (c == '.' || isdigit (c))
|
||||
|
||||
Reference in New Issue
Block a user