X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a0f6b076110ea79f25e13701d7f0ee4b38630d4d..897668ee8d0702bf22f3659b639570d6ef0d1516:/src/complain.h diff --git a/src/complain.h b/src/complain.h index 81f4e6cc..2911a4dc 100644 --- a/src/complain.h +++ b/src/complain.h @@ -1,5 +1,5 @@ /* Declaration for error-reporting function for Bison. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright 2000, 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -23,7 +23,7 @@ extern "C" { #endif -#if defined (__STDC__) && __STDC__ +#ifdef __STDC__ /* Informative messages, but we proceed. */ @@ -40,18 +40,10 @@ extern void complain (const char *format, ...) extern void fatal (const char *format, ...) __attribute__ ((__format__ (__printf__, 1, 2))); -/* 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))); - #else void warn (); void complain (); -void error (); +void fatal (); #endif /* Position in the current input file. */ @@ -64,10 +56,6 @@ extern unsigned int warn_message_count; /* This variable is incremented each time `complain' is called. */ extern unsigned int complain_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; - #ifdef __cplusplus } #endif