summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/var.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2012-05-30 22:23:08 +0000
committerobrien <obrien@FreeBSD.org>2012-05-30 22:23:08 +0000
commit71a59e133691abcd6f586cd98889df75d6c7ef32 (patch)
tree4b421920429bb41cfa14b0713f37dec96f9c092b /usr.bin/make/var.c
parent928a481c653a909ac1f7811c68a12a3f7360a679 (diff)
downloadFreeBSD-src-71a59e133691abcd6f586cd98889df75d6c7ef32.zip
FreeBSD-src-71a59e133691abcd6f586cd98889df75d6c7ef32.tar.gz
Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case)
modifiers for ":tu" and ":tl" from OSF's ODE, which made its way into NetBSD's make, which is the source for the Portable Berkeley Make. Submitted by: Simon Gerraty <sjg@juniper.net>
Diffstat (limited to 'usr.bin/make/var.c')
-rw-r--r--usr.bin/make/var.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index a7babaf..341ee79 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -1746,6 +1746,19 @@ ParseModifier(VarParser *vp, char startc, Var *v, Boolean *freeResult)
case 'C':
newStr = modifier_C(vp, value, v);
break;
+ case 't':
+ /* :tl :tu for OSF ODE & NetBSD make compatibility */
+ switch (vp->ptr[1]) {
+ case 'l':
+ vp->ptr++;
+ goto mod_lower;
+ break;
+ case 'u':
+ vp->ptr++;
+ goto mod_upper;
+ break;
+ }
+ /* FALLTHROUGH */
default:
if (vp->ptr[1] != endc && vp->ptr[1] != ':') {
#ifdef SUNSHCMD
@@ -1774,6 +1787,7 @@ ParseModifier(VarParser *vp, char startc, Var *v, Boolean *freeResult)
switch (vp->ptr[0]) {
case 'L':
+ mod_lower:
{
const char *cp;
Buffer *buf;
@@ -1799,6 +1813,7 @@ ParseModifier(VarParser *vp, char startc, Var *v, Boolean *freeResult)
vp->ptr++;
break;
case 'U':
+ mod_upper:
{
const char *cp;
Buffer *buf;
OpenPOWER on IntegriCloud