mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
getargs: fix the locations of command-line input
* src/getargs.c (command_line_location): Here. * tests/input.at: Adjust.
This commit is contained in:
@@ -556,7 +556,7 @@ command_line_location (void)
|
||||
{
|
||||
location res;
|
||||
/* "<command line>" is used in GCC's messages about -D. */
|
||||
boundary_set (&res.start, uniqstr_new ("<command line>"), optind, -1);
|
||||
boundary_set (&res.start, uniqstr_new ("<command line>"), optind - 1, -1);
|
||||
res.end = res.start;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user