mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
doc: display locations in error as recommended by GNU Coding Standards
* doc/bison.texi (Actions and Locations): here.
This commit is contained in:
@@ -4459,8 +4459,7 @@ exp:
|
|||||||
else
|
else
|
||||||
@{
|
@{
|
||||||
$$ = 1;
|
$$ = 1;
|
||||||
fprintf (stderr,
|
fprintf (stderr, "%d.%d-%d.%d: division by zero",
|
||||||
"Division by zero, l%d,c%d-l%d,c%d",
|
|
||||||
@@3.first_line, @@3.first_column,
|
@@3.first_line, @@3.first_column,
|
||||||
@@3.last_line, @@3.last_column);
|
@@3.last_line, @@3.last_column);
|
||||||
@}
|
@}
|
||||||
@@ -4487,8 +4486,7 @@ exp:
|
|||||||
else
|
else
|
||||||
@{
|
@{
|
||||||
$$ = 1;
|
$$ = 1;
|
||||||
fprintf (stderr,
|
fprintf (stderr, "%d.%d-%d.%d: division by zero",
|
||||||
"Division by zero, l%d,c%d-l%d,c%d",
|
|
||||||
@@3.first_line, @@3.first_column,
|
@@3.first_line, @@3.first_column,
|
||||||
@@3.last_line, @@3.last_column);
|
@@3.last_line, @@3.last_column);
|
||||||
@}
|
@}
|
||||||
|
|||||||
Reference in New Issue
Block a user