From b11aaa16d404ce7dc55de6b7338dccbf053a72bd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Jul 2016 07:17:29 +0200 Subject: Adjust to new path implementation, use to support reversibility --- build2/context | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'build2/context') diff --git a/build2/context b/build2/context index 93cf5ad..e7b8c7d 100644 --- a/build2/context +++ b/build2/context @@ -101,16 +101,12 @@ namespace build2 extern const dir_path* relative_base; // In addition to calling relative(), this function also uses shorter - // notations such as '~/'. + // notations such as '~/'. For directories the result includes the trailing + // slash. If the path is the same as base, returns "./" if current is true + // and empty string otherwise. // string - diag_relative (const path&); - - // As above but also adds trailing '/'. If the path is the same as - // base, returns "./" if current is true and empty string otherwise. - // - string - diag_relative (const dir_path&, bool current = true); + diag_relative (const path&, bool current = true); // Action phrases, e.g., "configure update exe{foo}", "updating exe{foo}", // and "updating exe{foo} is configured". Use like this: -- cgit v1.1