From ec5cff92d8140a9737600073a02b1d8e2f9c719f Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 9 Sep 1988 11:25:43 +0000 Subject: [PATCH] fix error count on error --- util/ceg/EM_parser/as_EM_pars/error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/ceg/EM_parser/as_EM_pars/error.c b/util/ceg/EM_parser/as_EM_pars/error.c index e6c97e9c9..e0ade1c5b 100644 --- a/util/ceg/EM_parser/as_EM_pars/error.c +++ b/util/ceg/EM_parser/as_EM_pars/error.c @@ -1,5 +1,7 @@ #include +extern int nerrors; + error( fmt, argv) char *fmt; int argv; @@ -7,4 +9,5 @@ int argv; fprint( STDERR, "!! ERROR : "); doprnt( STDERR, fmt, &argv); fprint( STDERR, " !!\n"); + nerrors++; }