summaryrefslogtreecommitdiff
path: root/usr.bin/make/var.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-05-13 10:47:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-05-13 10:47:55 +0000
commite593cce383313f22164de5d39d8b35cb5b548e02 (patch)
tree81c225c043963f65f1daf1335adb98eb632c6555 /usr.bin/make/var.c
parenta99b03f3e2a8fbddb3f70c106f0f1ed17c0613e8 (diff)
fix loopvar debug prints. Issue reported by naddy@
Diffstat (limited to 'usr.bin/make/var.c')
-rw-r--r--usr.bin/make/var.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index 4e29d9ecfdb..15b297dc47d 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: var.c,v 1.84 2008/11/09 12:34:47 tobias Exp $ */
+/* $OpenBSD: var.c,v 1.85 2009/05/13 10:47:54 espie Exp $ */
/* $NetBSD: var.c,v 1.18 1997/03/18 19:24:46 christos Exp $ */
/*
@@ -1093,6 +1093,12 @@ Var_NewLoopVar(const char *name, const char *ename)
return l;
}
+char *
+Var_LoopVarName(struct LoopVar *v)
+{
+ return v->me->name;
+}
+
void
Var_DeleteLoopVar(struct LoopVar *l)
{