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

Diff of /bison/src/complain.h

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

revision 1.5 by akim, Wed Dec 12 15:22:46 2001 UTC revision 1.6 by akim, Tue Jun 11 20:16:05 2002 UTC
# Line 27  extern "C" { Line 27  extern "C" {
27    
28  /* Informative messages, but we proceed. */  /* Informative messages, but we proceed. */
29    
30  extern void warn (const char *format, ...)  void warn (const char *format, ...)
31       __attribute__ ((__format__ (__printf__, 1, 2)));    __attribute__ ((__format__ (__printf__, 1, 2)));
32    
33    void warn_at (int location, const char *format, ...)
34      __attribute__ ((__format__ (__printf__, 2, 3)));
35    
36  /* Something bad happen, but let's continue and die later. */  /* Something bad happen, but let's continue and die later. */
37    
38  extern void complain (const char *format, ...)  void complain (const char *format, ...)
39       __attribute__ ((__format__ (__printf__, 1, 2)));    __attribute__ ((__format__ (__printf__, 1, 2)));
40    
41    void complain_at (int location, const char *format, ...)
42      __attribute__ ((__format__ (__printf__, 2, 3)));
43    
44  /* Something bad happen and we die now. */  /* Something bad happen and we die now. */
45    
46  extern void fatal (const char *format, ...)  void fatal (const char *format, ...)
47       __attribute__ ((__format__ (__printf__, 1, 2)));    __attribute__ ((__format__ (__printf__, 1, 2)));
48    
49    void fatal_at (int location, const char *format, ...)
50      __attribute__ ((__format__ (__printf__, 2, 3)));
51    
52  #else  #else
53  void warn ();  void warn ();
54    void warn_at ();
55  void complain ();  void complain ();
56    void complain_at ();
57  void fatal ();  void fatal ();
58    void fatal_at ();
59  #endif  #endif
60    
61  /* Position in the current input file. */  /* Position in the current input file. */

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

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