From 93622a347fd66d6128a0985fc525ffdd720eca22 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 30 Nov 2002 00:37:39 +0000 Subject: [PATCH] Clarified comments (I hope) [SVN r16460] --- new/feature.jam | 11 +++++++++-- v2/build/feature.jam | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/new/feature.jam b/new/feature.jam index 2c43bdf5a..f33c16dcf 100644 --- a/new/feature.jam +++ b/new/feature.jam @@ -312,13 +312,20 @@ local rule validate-value-string ( feature value-string ) } # Extends the given subfeature with the subvalues. If the optional -# value-string is provided, the subvalues are specific to the given +# value-string is provided, the subvalues are only valid for the given # value of the feature. Thus, you could say that # mingw is specifc to gcc-2.95.2 as follows: # # extend-subfeature toolset gcc-2.95.2 : target-platform : mingw ; # -rule extend-subfeature ( feature value-string ? : subfeature : subvalues * ) +rule extend-subfeature ( + feature # The feature whose subfeature is being extended + + value-string ? # If supplied, specifies a specific value of the + # main feature for which the subfeature values are valid + : subfeature # The name of the subfeature + : subvalues * # The additional values of the subfeature being defined. +) { feature = [ grist $(feature) ] ; validate-feature $(feature) ; diff --git a/v2/build/feature.jam b/v2/build/feature.jam index 2c43bdf5a..f33c16dcf 100644 --- a/v2/build/feature.jam +++ b/v2/build/feature.jam @@ -312,13 +312,20 @@ local rule validate-value-string ( feature value-string ) } # Extends the given subfeature with the subvalues. If the optional -# value-string is provided, the subvalues are specific to the given +# value-string is provided, the subvalues are only valid for the given # value of the feature. Thus, you could say that # mingw is specifc to gcc-2.95.2 as follows: # # extend-subfeature toolset gcc-2.95.2 : target-platform : mingw ; # -rule extend-subfeature ( feature value-string ? : subfeature : subvalues * ) +rule extend-subfeature ( + feature # The feature whose subfeature is being extended + + value-string ? # If supplied, specifies a specific value of the + # main feature for which the subfeature values are valid + : subfeature # The name of the subfeature + : subvalues * # The additional values of the subfeature being defined. +) { feature = [ grist $(feature) ] ; validate-feature $(feature) ;