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++; }