From 6e551adf212df2a47f1e834515927c32cf899512 Mon Sep 17 00:00:00 2001 From: eck Date: Fri, 3 Nov 1989 10:36:56 +0000 Subject: [PATCH] fixed some more bugs --- lang/cem/cpp.ansi/LLmessage.c | 1 - lang/cem/cpp.ansi/ch3bin.c | 2 +- lang/cem/cpp.ansi/error.c | 1 + lang/cem/cpp.ansi/init.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/cem/cpp.ansi/LLmessage.c b/lang/cem/cpp.ansi/LLmessage.c index 34b0a265d..c5b80e929 100644 --- a/lang/cem/cpp.ansi/LLmessage.c +++ b/lang/cem/cpp.ansi/LLmessage.c @@ -12,7 +12,6 @@ extern char *symbol2str(); LLmessage(tk) { - err_occurred = 1; if (tk < 0) error("garbage at end of line"); else if (tk) { diff --git a/lang/cem/cpp.ansi/ch3bin.c b/lang/cem/cpp.ansi/ch3bin.c index 7c1d6d127..d23e98fed 100644 --- a/lang/cem/cpp.ansi/ch3bin.c +++ b/lang/cem/cpp.ansi/ch3bin.c @@ -15,7 +15,7 @@ ch3bin(pval, oper, val) switch (oper) { case '%': if (val == 0) - error("% by 0"); + error("%% by 0"); else *pval = *pval % val; break; diff --git a/lang/cem/cpp.ansi/error.c b/lang/cem/cpp.ansi/error.c index 50d1cc98f..f970d60dc 100644 --- a/lang/cem/cpp.ansi/error.c +++ b/lang/cem/cpp.ansi/error.c @@ -35,6 +35,7 @@ error(va_alist) char *fmt; va_list ap; + err_occurred = 1; err_hdr(""); va_start(ap); fmt = va_arg(ap, char *); diff --git a/lang/cem/cpp.ansi/init.c b/lang/cem/cpp.ansi/init.c index 1b066f076..dcd4b27f2 100644 --- a/lang/cem/cpp.ansi/init.c +++ b/lang/cem/cpp.ansi/init.c @@ -53,7 +53,7 @@ init_pp() register struct mkey *mk = &mkey[0]; while (mk->mk_reserved) { - register struct idf *idf = str2idf(mk->mk_reserved); + register struct idf *idf = str2idf(mk->mk_reserved, 0); if (idf->id_resmac) fatal("maximum identifier length insufficient"); -- 2.34.1