From e9563995b01162a8ec4aa24b5342dcdc2eeba154 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Mar 2016 10:20:25 +0200 Subject: Add few notes, comment cleanups --- build2/config/utility.cxx | 2 ++ build2/file.cxx | 2 ++ build2/variable | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'build2') diff --git a/build2/config/utility.cxx b/build2/config/utility.cxx index c617690..d27e1ff 100644 --- a/build2/config/utility.cxx +++ b/build2/config/utility.cxx @@ -37,6 +37,8 @@ namespace build2 // a warning issued by the config module about global/root scope // value mismatch. // + // @@ CMDVAR + // value& v (const_cast (*l)); if (v && !v.empty ()) diff --git a/build2/file.cxx b/build2/file.cxx index a49926b..fb4f31f 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -837,6 +837,8 @@ namespace build2 // a warning issued by the config module about global/root scope // value mismatch. Not very clean. // + // @@ CMDVAR + // dir_path& d (as (const_cast (*l))); if (d != out_root) d = out_root; diff --git a/build2/variable b/build2/variable index 579339e..15df6d6 100644 --- a/build2/variable +++ b/build2/variable @@ -214,8 +214,8 @@ namespace build2 template typename value_traits::type as (value&); template typename value_traits::const_type as (const value&); - // "Assign" simple value type to the value stored in name. Return false - // if the value is not valid for this type. + // Try to "assign" a simple value type to the value stored in name. Return + // false if the value is not valid for this type. // template bool assign (name&); @@ -301,7 +301,7 @@ namespace build2 static const build2::value_type value_type; }; - extern const value_type* string_type; + extern const value_type* string_type; //@@ Get rid (and others). // dir_path // -- cgit v1.1