diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-01-29 22:23:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-01-29 22:23:11 +0000 |
commit | 86cd533ac58398837895c92042102f4ffdeeaafe (patch) | |
tree | 96db9fa0407ac8932ac7595c9d8d7e1cbccab68b /usr.bin/make/compat.c | |
parent | c53044596d693602d2e0fe7be428bfa014289fe8 (diff) |
A few changes:
- expand commands earlier, so that we can eventually scan them to take
smarter decisions.
- clean up the select() mask code and rename variables to sensible things.
- quite a few minor renames for readability
- erecalloc
- clean up wait status handling, do not try to rebuild wait status, but
instead parse it early and deal with the parsed code.
tested by lots of people, thanks guys!
Diffstat (limited to 'usr.bin/make/compat.c')
-rw-r--r-- | usr.bin/make/compat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index 92d34b1a313..614cba7c566 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: compat.c,v 1.68 2007/11/10 13:59:48 espie Exp $ */ +/* $OpenBSD: compat.c,v 1.69 2008/01/29 22:23:10 espie Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* @@ -127,7 +127,7 @@ CompatMake(void *gnp, /* The node to make */ /* Our commands are ok, but we still have to worry * about the -t flag... */ if (!touchFlag) - run_gnode(gn, 0); + run_gnode(gn); else Job_Touch(gn); } else @@ -216,7 +216,7 @@ Compat_Run(Lst targs) /* List of target nodes to re-create */ /* If the user has defined a .BEGIN target, execute the commands * attached to it. */ if (!queryFlag) { - if (run_gnode(begin_node, 0) == ERROR) { + if (run_gnode(begin_node) == ERROR) { printf("\n\nStop.\n"); exit(1); } @@ -247,5 +247,5 @@ Compat_Run(Lst targs) /* List of target nodes to re-create */ /* If the user has defined a .END target, run its commands. */ if (errors == 0) - run_gnode(end_node, 0); + run_gnode(end_node); } |