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/arch.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/arch.c')
-rw-r--r-- | usr.bin/make/arch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 7504147f54e..21fa1851635 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arch.c,v 1.17 1999/12/06 22:28:43 espie Exp $ */ +/* $OpenBSD: arch.c,v 1.18 1999/12/16 17:27:18 espie Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: arch.c,v 1.17 1999/12/06 22:28:43 espie Exp $"; +static char rcsid[] = "$OpenBSD: arch.c,v 1.18 1999/12/16 17:27:18 espie Exp $"; #endif #endif /* not lint */ @@ -241,7 +241,7 @@ Arch_ParseArchive (linePtr, nodeLst, ctxt) *cp++ = '\0'; if (subLibName) { - libName = Var_Subst(NULL, libName, ctxt, TRUE); + libName = Var_Subst(libName, ctxt, TRUE); } @@ -320,7 +320,7 @@ Arch_ParseArchive (linePtr, nodeLst, ctxt) char *sacrifice; char *oldMemName = memName; - memName = Var_Subst(NULL, memName, ctxt, TRUE); + memName = Var_Subst(memName, ctxt, TRUE); /* * Now form an archive spec and recurse to deal with nested |