/[bison]/bison/src/complain.c
ViewVC logotype

Diff of /bison/src/complain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by akim, Tue Jul 9 15:54:39 2002 UTC revision 1.11 by akim, Tue Jul 9 16:24:57 2002 UTC
# Line 41  Line 41 
41  void exit ();  void exit ();
42  #endif  #endif
43    
 /* To get error_one_per_line. */  
 #include "error.h"  
   
44  #include "complain.h"  #include "complain.h"
45    
46  #ifndef HAVE_DECL_STRERROR_R  #ifndef HAVE_DECL_STRERROR_R
# Line 128  warn_at (location, message, va_alist) Line 125  warn_at (location, message, va_alist)
125    va_list args;    va_list args;
126  #endif  #endif
127    
   if (error_one_per_line)  
     {  
       static const char *old_infile;  
       static int old_lineno;  
   
       if (old_lineno == location.first_line &&  
           (infile == old_infile || !strcmp (old_infile, infile)))  
         /* Simply return and print nothing.  */  
         return;  
   
       old_infile = infile;  
       old_lineno = location.first_line;  
     }  
   
128    fflush (stdout);    fflush (stdout);
129    LOCATION_PRINT (stderr, location);    LOCATION_PRINT (stderr, location);
130    fputs (": ", stderr);    fputs (": ", stderr);
# Line 178  complain_at (location, message, va_alist Line 161  complain_at (location, message, va_alist
161    va_list args;    va_list args;
162  #endif  #endif
163    
   if (error_one_per_line)  
     {  
       static const char *old_infile;  
       static int old_lineno;  
   
       if (old_lineno == location.first_line &&  
           (infile == old_infile || !strcmp (old_infile, infile)))  
         /* Simply return and print nothing.  */  
         return;  
   
       old_infile = infile;  
       old_lineno = location.first_line;  
     }  
   
164    fflush (stdout);    fflush (stdout);
165    LOCATION_PRINT (stderr, location);    LOCATION_PRINT (stderr, location);
166    fputs (": ", stderr);    fputs (": ", stderr);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26