/[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.14 by eggert, Mon Oct 21 05:28:16 2002 UTC revision 1.15 by eggert, Tue Oct 22 04:53:49 2002 UTC
# Line 83  private_strerror (int errnum) Line 83  private_strerror (int errnum)
83  # endif /* HAVE_STRERROR */  # endif /* HAVE_STRERROR */
84  #endif  /* not _LIBC */  #endif  /* not _LIBC */
85    
86  /* This variable is incremented each time `warn' is called.  */  /* This variable is set each time `warn' is called.  */
87  unsigned int warn_message_count;  bool warning_issued;
88    
89  /* This variable is incremented each time `complain' is called.  */  /* This variable is set each time `complain' is called.  */
90  unsigned int complain_message_count;  bool complaint_issued;
91    
92    
93  /*--------------------------------.  /*--------------------------------.
# Line 108  warn_at (location_t location, const char Line 108  warn_at (location_t location, const char
108    vfprintf (stderr, message, args);    vfprintf (stderr, message, args);
109    va_end (args);    va_end (args);
110    
111    ++warn_message_count;    warning_issued = true;
112    putc ('\n', stderr);    putc ('\n', stderr);
113    fflush (stderr);    fflush (stderr);
114  }  }
# Line 125  warn (const char *message, ...) Line 125  warn (const char *message, ...)
125    vfprintf (stderr, message, args);    vfprintf (stderr, message, args);
126    va_end (args);    va_end (args);
127    
128    ++warn_message_count;    warning_issued = true;
129    putc ('\n', stderr);    putc ('\n', stderr);
130    fflush (stderr);    fflush (stderr);
131  }  }
# Line 147  complain_at (location_t location, const Line 147  complain_at (location_t location, const
147    vfprintf (stderr, message, args);    vfprintf (stderr, message, args);
148    va_end (args);    va_end (args);
149    
150    ++complain_message_count;    complaint_issued = true;
151    putc ('\n', stderr);    putc ('\n', stderr);
152    fflush (stderr);    fflush (stderr);
153  }  }
# Line 164  complain (const char *message, ...) Line 164  complain (const char *message, ...)
164    vfprintf (stderr, message, args);    vfprintf (stderr, message, args);
165    va_end (args);    va_end (args);
166    
167    ++complain_message_count;    complaint_issued = true;
168    putc ('\n', stderr);    putc ('\n', stderr);
169    fflush (stderr);    fflush (stderr);
170  }  }
# Line 188  fatal_at (location_t location, const cha Line 188  fatal_at (location_t location, const cha
188    va_end (args);    va_end (args);
189    putc ('\n', stderr);    putc ('\n', stderr);
190    fflush (stderr);    fflush (stderr);
191    exit (1);    exit (EXIT_FAILURE);
192  }  }
193    
194  void  void
# Line 206  fatal (const char *message, ...) Line 206  fatal (const char *message, ...)
206    va_end (args);    va_end (args);
207    putc ('\n', stderr);    putc ('\n', stderr);
208    fflush (stderr);    fflush (stderr);
209    exit (1);    exit (EXIT_FAILURE);
210  }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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