diff options
author | 2012-04-12 17:00:11 +0000 | |
---|---|---|
committer | 2012-04-12 17:00:11 +0000 | |
commit | a45fdd0c50780ebe2aacc8d5bd8987f9630ff87b (patch) | |
tree | 45d2954f9570cdc34b60ffa85ea1c038784283a3 /usr.bin/m4/main.c | |
parent | regress tests for moe gm4 compat (diff) | |
download | wireguard-openbsd-a45fdd0c50780ebe2aacc8d5bd8987f9630ff87b.tar.xz wireguard-openbsd-a45fdd0c50780ebe2aacc8d5bd8987f9630ff87b.zip |
new m4 -g stuff:
- expr(`4**3')
- include(`hey I am not there') keeps going.
work with Baptiste Daroussin, who had the idea but didn't nail all details
right.
okay otto@, miod@
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r-- | usr.bin/m4/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index 851ff374b89..4c5af0ad0cc 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.80 2011/09/27 07:24:02 espie Exp $ */ +/* $OpenBSD: main.c,v 1.81 2012/04/12 17:00:11 espie Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -165,6 +165,8 @@ static void enlarge_stack(void); int main(int, char *[]); +int exit_code = 0; + int main(int argc, char *argv[]) { @@ -283,7 +285,7 @@ main(int argc, char *argv[]) (void) fclose(outfile[0]); } - return 0; + return exit_code; } /* |