bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: doc: stderr for errors/warnings


From: Akim Demaille
Subject: FYI: doc: stderr for errors/warnings
Date: Tue, 26 Aug 2003 10:27:32 +0200

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * doc/bison.texinfo: Don't promote stdout for error messages.

Index: doc/bison.texinfo
===================================================================
RCS file: /cvsroot/bison/bison/doc/bison.texinfo,v
retrieving revision 1.110
diff -u -u -r1.110 bison.texinfo
--- doc/bison.texinfo 20 Jun 2003 22:52:12 -0000 1.110
+++ doc/bison.texinfo 25 Aug 2003 10:33:59 -0000
@@ -1415,7 +1415,7 @@
 void
 yyerror (char const *s)
 @{
-  printf ("%s\n", s);
+  fprintf (stderr, "%s\n", s);
 @}
 @end group
 @end example
@@ -3082,8 +3082,6 @@
 functional parser, it can be useful to process some additional information,
 especially symbol locations.
 
address@hidden (terminal or not) ?
-
 The way locations are handled is defined by providing a data type, and
 actions to take when rules are matched.
 
@@ -3148,9 +3146,10 @@
               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
@@ -3174,9 +3173,10 @@
               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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]