]> git.saurik.com Git - bison.git/commitdiff
* doc/bison.texinfo: Don't promote stdout for error messages.
authorAkim Demaille <akim@epita.fr>
Mon, 25 Aug 2003 10:35:38 +0000 (10:35 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 25 Aug 2003 10:35:38 +0000 (10:35 +0000)
ChangeLog
doc/bison.texinfo

index 15bccb4d3bcea42a5d7fb965bed0b26996757667..d17f18a70c065bb440975f71e66bfee62b43f3ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-25  Akim Demaille  <akim@epita.fr>
+
+       * doc/bison.texinfo: Don't promote stdout for error messages.
+
 2003-08-25  Akim Demaille  <akim@epita.fr>
 
        * data/lalr1.cc (Parser::reduce_print_): Remove unused yyi.
 2003-08-25  Akim Demaille  <akim@epita.fr>
 
        * data/lalr1.cc (Parser::reduce_print_): Remove unused yyi.
index 536b2cba912acd2acb8db3cb7bd91e687b272319..b316d4307dd2e14e0627240c2872d486ce7be6a0 100644 (file)
@@ -1415,7 +1415,7 @@ here is the definition we will use:
 void
 yyerror (char const *s)
 @{
 void
 yyerror (char const *s)
 @{
-  printf ("%s\n", s);
+  fprintf (stderr, "%s\n", s);
 @}
 @end group
 @end example
 @}
 @end group
 @end example
@@ -3082,8 +3082,6 @@ Though grammar rules and semantic actions are enough to write a fully
 functional parser, it can be useful to process some additional information,
 especially symbol locations.
 
 functional parser, it can be useful to process some additional information,
 especially symbol locations.
 
-@c (terminal or not) ?
-
 The way locations are handled is defined by providing a data type, and
 actions to take when rules are matched.
 
 The way locations are handled is defined by providing a data type, and
 actions to take when rules are matched.
 
@@ -3148,9 +3146,10 @@ exp:    @dots{}
               else
                 @{
                   $$ = 1;
               else
                 @{
                   $$ = 1;
-                  printf("Division by zero, l%d,c%d-l%d,c%d",
-                         @@3.first_line, @@3.first_column,
-                         @@3.last_line, @@3.last_column);
+                  fprintf (stderr,
+                           "Division by zero, l%d,c%d-l%d,c%d",
+                           @@3.first_line, @@3.first_column,
+                           @@3.last_line, @@3.last_column);
                 @}
             @}
 @end group
                 @}
             @}
 @end group
@@ -3174,9 +3173,10 @@ exp:    @dots{}
               else
                 @{
                   $$ = 1;
               else
                 @{
                   $$ = 1;
-                  printf("Division by zero, l%d,c%d-l%d,c%d",
-                         @@3.first_line, @@3.first_column,
-                         @@3.last_line, @@3.last_column);
+                  fprintf (stderr,
+                           "Division by zero, l%d,c%d-l%d,c%d",
+                           @@3.first_line, @@3.first_column,
+                           @@3.last_line, @@3.last_column);
                 @}
             @}
 @end group
                 @}
             @}
 @end group