From: Akim Demaille Date: Wed, 12 Dec 2001 15:21:59 +0000 (+0000) Subject: * src/complain.h, src/complain.c: Remove error_one_per_line, rely X-Git-Tag: BISON-1_30g~7 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/69dc1147ba13136824ad85eec2dfd1edf0bdc0d1?ds=inline * src/complain.h, src/complain.c: Remove error_one_per_line, rely on that of lib/error.c. --- diff --git a/ChangeLog b/ChangeLog index b6cb5baf..0f39a678 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-12 Akim Demaille + + * src/complain.h, src/complain.c: Remove error_one_per_line, rely + on that of lib/error.c. + 2001-12-12 Akim Demaille Some hosts don't like `/' in includes. diff --git a/src/complain.c b/src/complain.c index 44dd3933..fd14d946 100644 --- a/src/complain.c +++ b/src/complain.c @@ -41,6 +41,9 @@ void exit (); #endif +/* To get error_one_per_line. */ +#include "error.h" + #include "complain.h" #ifndef HAVE_DECL_STRERROR_R @@ -106,9 +109,6 @@ unsigned int warn_message_count; /* This variable is incremented each time `complain' is called. */ 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. */ -int error_one_per_line; /*--------------------------------. | Report a warning, and proceed. | diff --git a/src/complain.h b/src/complain.h index 29d9f869..2911a4dc 100644 --- a/src/complain.h +++ b/src/complain.h @@ -56,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