diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-12-16 17:27:19 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-12-16 17:27:19 +0000 |
commit | e9bb57f13b18dbbb09d5354c662aeb3471885f12 (patch) | |
tree | 1cc14b0f3d389bd48bdcb03e405d933651889a8e /usr.bin/make/main.c | |
parent | 26e78184c6440181321bd87115ed17bc5f66811a (diff) |
Var_Subst is actually two distinct functions folded into one:
split the function specific to for.c out, and give them more sensible
arguments at the same time.
This makes .for loop handling more efficient, as we have some heuristic
to evaluate the size of the buffer needed...
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r-- | usr.bin/make/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index a9da5cc828d..2453d71e9a4 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.22 1999/12/16 17:02:45 espie Exp $ */ +/* $OpenBSD: main.c,v 1.23 1999/12/16 17:27:18 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.22 1999/12/16 17:02:45 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.23 1999/12/16 17:27:18 espie Exp $"; #endif #endif /* not lint */ @@ -755,7 +755,7 @@ main(argc, argv) */ static char VPATH[] = "${VPATH}"; - vpath = Var_Subst(NULL, VPATH, VAR_CMD, FALSE); + vpath = Var_Subst(VPATH, VAR_CMD, FALSE); path = vpath; do { /* skip to end of directory */ |