1 |
/* Declaration for error-reporting function for Bison. |
/* Declaration for error-reporting function for Bison. |
2 |
Copyright 2000 Free Software Foundation, Inc. |
Copyright 2000, 2001 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify it |
This program is free software; you can redistribute it and/or modify it |
5 |
under the terms of the GNU General Public License as published by the |
under the terms of the GNU General Public License as published by the |
40 |
extern void fatal (const char *format, ...) |
extern void fatal (const char *format, ...) |
41 |
__attribute__ ((__format__ (__printf__, 1, 2))); |
__attribute__ ((__format__ (__printf__, 1, 2))); |
42 |
|
|
|
/* Print a message with `fprintf (stderr, FORMAT, ...)'; |
|
|
if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). |
|
|
If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ |
|
|
|
|
|
extern void error (int status, int errnum, |
|
|
const char *format, ...) |
|
|
__attribute__ ((__format__ (__printf__, 3, 4))); |
|
|
|
|
43 |
#else |
#else |
44 |
void warn (); |
void warn (); |
45 |
void complain (); |
void complain (); |
46 |
void error (); |
void fatal (); |
47 |
#endif |
#endif |
48 |
|
|
49 |
/* Position in the current input file. */ |
/* Position in the current input file. */ |