From 9b53a24f310acc04e9b7d12eaf667ca6fb5c2b22 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 12 Dec 2001 15:22:46 +0000 Subject: [PATCH] * src/complain.h, src/complain.c: Remove error_one_per_line, rely on that of lib/error.c. --- ChangeLog | 5 +++++ src/complain.c | 6 +++--- src/complain.h | 4 ---- 3 files changed, 8 insertions(+), 7 deletions(-) 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 -- 2.45.2