/[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.4 by akim, Fri Aug 3 09:38:03 2001 UTC revision 1.5 by akim, Thu Oct 4 14:55:20 2001 UTC
# Line 19  Line 19 
19  /* Based on error.c and error.h,  /* Based on error.c and error.h,
20     written by David MacKenzie <djm@gnu.ai.mit.edu>.  */     written by David MacKenzie <djm@gnu.ai.mit.edu>.  */
21    
22  #ifdef HAVE_CONFIG_H  #include "system.h"
 # include <config.h>  
 #endif  
   
 #include <stdio.h>  
23    
24  #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC  #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
25  # if __STDC__  # ifdef __STDC__
26  #  include <stdarg.h>  #  include <stdarg.h>
27  #  define VA_START(args, lastarg) va_start(args, lastarg)  #  define VA_START(args, lastarg) va_start(args, lastarg)
28  # else  # else
# Line 119  int error_one_per_line; Line 115  int error_one_per_line;
115  `--------------------------------*/  `--------------------------------*/
116    
117  void  void
118  #if defined VA_START && __STDC__  #if defined VA_START && defined __STDC__
119  warn (const char *message, ...)  warn (const char *message, ...)
120  #else  #else
121  warn (message, va_alist)  warn (message, va_alist)
# Line 171  warn (message, va_alist) Line 167  warn (message, va_alist)
167  `-----------------------------------------------------------*/  `-----------------------------------------------------------*/
168    
169  void  void
170  #if defined VA_START && __STDC__  #if defined VA_START && defined __STDC__
171  complain (const char *message, ...)  complain (const char *message, ...)
172  #else  #else
173  complain (message, va_alist)  complain (message, va_alist)
# Line 221  complain (message, va_alist) Line 217  complain (message, va_alist)
217  `-------------------------------------------------*/  `-------------------------------------------------*/
218    
219  void  void
220  #if defined VA_START && __STDC__  #if defined VA_START && defined __STDC__
221  fatal (const char *message, ...)  fatal (const char *message, ...)
222  #else  #else
223  fatal (message, va_alist)  fatal (message, va_alist)
# Line 259  fatal (message, va_alist) Line 255  fatal (message, va_alist)
255  `------------------------------------------------------------------*/  `------------------------------------------------------------------*/
256    
257  void  void
258  #if defined VA_START && __STDC__  #if defined VA_START && defined __STDC__
259  error (int status, int errnum,  error (int status, int errnum,
260         const char *message, ...)         const char *message, ...)
261  #else  #else

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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