1 Jun 2011 17:43
make: sysV subst with variables
Simon J. Gerraty <sjg <at> crufty.net>
2011-06-01 15:43:34 GMT
2011-06-01 15:43:34 GMT
A colleague came accross this.
While make handles variables on the rhs of a sysV style substituion,
our handling of recursive modifiers prevented handling variables
on the lhs.
For the test case below, we'd get:
fun
make: Unknown modifier '/'
{S}fun=fun}
make: Unknown modifier '/'
{S}%=%}
In the Sun
Index: var.c
===================================================================
RCS file: /cvsroot/src/usr.bin/make/var.c,v
retrieving revision 1.166
diff -u -p -r1.166 var.c
--- var.c 21 May 2011 07:30:42 -0000 1.166
+++ var.c 1 Jun 2011 15:42:24 -0000
<at> <at> -2498,14 +2498,51 <at> <at> ApplyModifiers(char *nstr, const char *t
if (*tstr == '$') {
/*
- * We have some complex modifiers in a variable.
+ * We may have some complex modifiers in a variable.
*/
void *freeIt;
(Continue reading)
RSS Feed