diff options
Diffstat (limited to 'misc/error.h')
-rw-r--r-- | misc/error.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/error.h b/misc/error.h index 749dce429d..95ceb1aa82 100644 --- a/misc/error.h +++ b/misc/error.h @@ -44,6 +44,10 @@ Cambridge, MA 02139, USA. */ 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))); + /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ @@ -51,10 +55,15 @@ extern void (*error_print_progname) (void); #else void error (); +void error_at_line (); extern void (*error_print_progname) (); #endif /* This variable is incremented each time `error' is called. */ extern unsigned int error_message_count; +/* Sometimes we want to have at most one error per line. This + variable controls whether this mode is selected or not. */ +extern int error_one_per_line; + #endif /* _error_h_ */ |