summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/eval.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-04-15 13:25:51 +0000
committerbapt <bapt@FreeBSD.org>2012-04-15 13:25:51 +0000
commit0b5952ee32209436c9c309856f0db1a4c196b7ff (patch)
tree03aa7c42321406348d7f5e06fd657fdf431b826c /usr.bin/m4/eval.c
parent179e79fd203fd1e5098387dc459f5d26f36b9f7a (diff)
downloadFreeBSD-src-0b5952ee32209436c9c309856f0db1a4c196b7ff.zip
FreeBSD-src-0b5952ee32209436c9c309856f0db1a4c196b7ff.tar.gz
Improve m4 compatibility with GNU m4 extension ** (exponent)
Submitted by: Marc Espie (espie@OpenBSD.org) Approved by: des@ (mentor)
Diffstat (limited to 'usr.bin/m4/eval.c')
-rw-r--r--usr.bin/m4/eval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c
index 7cdad63..729cf18 100644
--- a/usr.bin/m4/eval.c
+++ b/usr.bin/m4/eval.c
@@ -269,10 +269,11 @@ expand_builtin(const char *argv[], int argc, int td)
case INCLTYPE:
if (argc > 2)
if (!doincl(argv[2])) {
- if (mimic_gnu)
+ if (mimic_gnu) {
warn("%s at line %lu: include(%s)",
CURRENT_NAME, CURRENT_LINE, argv[2]);
- else
+ exit_code = 1;
+ } else
err(1, "%s at line %lu: include(%s)",
CURRENT_NAME, CURRENT_LINE, argv[2]);
}
OpenPOWER on IntegriCloud