mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
In the grammar file, the first column is 1 not 0 on the first line as
on every other line. * src/parse-gram.y (%initial-action): Initialize @$ correctly. * tests/input.at (Torturing the Scanner): Update output. * src/scan-gram.l (scanner_cursor): Declare it static.
This commit is contained in:
@@ -88,8 +88,8 @@ static int current_prec = 0;
|
||||
{
|
||||
/* Bison's grammar can initial empty locations, hence a default
|
||||
location is needed. */
|
||||
boundary_set (&@$.start, current_file, 1, 0);
|
||||
boundary_set (&@$.end, current_file, 1, 0);
|
||||
boundary_set (&@$.start, current_file, 1, 1);
|
||||
boundary_set (&@$.end, current_file, 1, 1);
|
||||
}
|
||||
|
||||
/* Only NUMBERS have a value. */
|
||||
|
||||
Reference in New Issue
Block a user