]> git.saurik.com Git - bison.git/commitdiff
doc: display locations in error as recommended by GNU Coding Standards
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 23 Feb 2013 16:04:17 +0000 (17:04 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 9 Apr 2013 12:07:52 +0000 (14:07 +0200)
* doc/bison.texi (Actions and Locations): here.

doc/bison.texi

index 5366808a8fc4f6e60af8bf56771603b6cee1bdaf..2ed10c2f7c5af0c50e629234002f3bb482d8ae57 100644 (file)
@@ -4459,8 +4459,7 @@ exp:
       else
         @{
           $$ = 1;
-          fprintf (stderr,
-                   "Division by zero, l%d,c%d-l%d,c%d",
+          fprintf (stderr, "%d.%d-%d.%d: division by zero",
                    @@3.first_line, @@3.first_column,
                    @@3.last_line, @@3.last_column);
         @}
@@ -4487,8 +4486,7 @@ exp:
       else
         @{
           $$ = 1;
-          fprintf (stderr,
-                   "Division by zero, l%d,c%d-l%d,c%d",
+          fprintf (stderr, "%d.%d-%d.%d: division by zero",
                    @@3.first_line, @@3.first_column,
                    @@3.last_line, @@3.last_column);
         @}