From: Akim Demaille Date: Wed, 12 Dec 2001 15:22:46 +0000 (+0000) Subject: * src/complain.h, src/complain.c: Remove error_one_per_line, rely X-Git-Tag: before-m4-back-end~147 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/9b53a24f310acc04e9b7d12eaf667ca6fb5c2b22 * 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 2513cb67..7b8fd7d3 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