2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

simplification; should cut down on the number of immortal strings created

[SVN r14309]
This commit is contained in:
Dave Abrahams
2002-07-05 15:43:53 +00:00
parent 0bfc1049ee
commit 6ee8eb2877
2 changed files with 6 additions and 36 deletions

View File

@@ -1750,25 +1750,10 @@ rule FGristSourceFiles
# join values... : [separator]
#
# Pastes values together into a single list element, separated by an optional separator.
rule join
rule join ( values * : sep ? )
{
# Puts the variables together, removing spaces.
local _t _r ;
_r = $(<[1]) ;
local sep = $(>) ;
if ! $(sep)
{
sep = "" ;
}
for _t in $(<[2-])
{
_r = $(_r)$(sep)$(_t) ;
}
return $(_r) ;
sep ?= "" ;
return $(values:J=$(sep)) ;
}
# Given $(<), the tokens comprising a relative path from D1 to a subdirectory

View File

@@ -1750,25 +1750,10 @@ rule FGristSourceFiles
# join values... : [separator]
#
# Pastes values together into a single list element, separated by an optional separator.
rule join
rule join ( values * : sep ? )
{
# Puts the variables together, removing spaces.
local _t _r ;
_r = $(<[1]) ;
local sep = $(>) ;
if ! $(sep)
{
sep = "" ;
}
for _t in $(<[2-])
{
_r = $(_r)$(sep)$(_t) ;
}
return $(_r) ;
sep ?= "" ;
return $(values:J=$(sep)) ;
}
# Given $(<), the tokens comprising a relative path from D1 to a subdirectory