12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #ifndef _ERROR_H
- #define _ERROR_H 1
- #ifndef __attribute__
- # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
- # define __attribute__(Spec)
- # endif
- # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
- # define __format__ format
- # define __printf__ printf
- # endif
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined (__STDC__) && __STDC__
- extern void error (int status, int errnum, const char *format, ...)
- __attribute__ ((__format__ (__printf__, 3, 4)));
- extern void error_at_line (int status, int errnum, const char *fname,
- unsigned int lineno, const char *format, ...)
- __attribute__ ((__format__ (__printf__, 5, 6)));
- extern void (*error_print_progname) (void);
- #else
- void error ();
- void error_at_line ();
- extern void (*error_print_progname) ();
- #endif
- extern unsigned int error_message_count;
- extern int error_one_per_line;
- #ifdef __cplusplus
- }
- #endif
- #endif
|