summaryrefslogtreecommitdiff
path: root/usr.bin/make/targ.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-07-19 19:30:39 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-07-19 19:30:39 +0000
commit3661251b0f9f72be80b78d24aa2882ab8bd6a728 (patch)
treec4178fde909ed0bc9626ea733b6b4be77d16b4bf /usr.bin/make/targ.c
parent7973fa7ae6ab4c14e686d2fe6091b16ef382b3af (diff)
two small changes:
- allow variables in SysV modifiers, as requested by matthieu@ (since recursive variables are an extension, this just extends the extension) - variation on :Q called :QL (quote list), which does quote every character EXCEPT for whitespace. e.g., toto: @for i in ${VAR:QL} ...
Diffstat (limited to 'usr.bin/make/targ.c')
-rw-r--r--usr.bin/make/targ.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index c6522b3ade5..1e0740e7a8a 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: targ.c,v 1.60 2010/04/25 13:59:53 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.61 2010/07/19 19:30:37 espie Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
@@ -462,3 +462,9 @@ targets_hash()
{
return &targets;
}
+
+GNode *
+Targ_FindNodeh(const char *name, size_t n, uint32_t hv, int flags)
+{
+ return Targ_FindNodeih(name, name + n - 1, hv, flags);
+}