diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-14 08:03:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-14 08:03:32 +0200 |
commit | 218a739b33325c5dd6baa5cf6291dad849ad2441 (patch) | |
tree | 754661d712d80d87c1c113cb7bfd6ec542e5858b /libbuild2/parser.cxx | |
parent | 6d892e32a83908406a6f2fc6d47dd4a8b131fc60 (diff) |
Handle NULL values in $string() and $concat() functions
This is relied upon by the parser to provide conversion/concatenation
semantics consistent with untyped values. Note that we handle NULL values
only for types that have empty representation.
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index dd2944d..812f201 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -7719,7 +7719,8 @@ namespace build2 // then it should not be overloaded for a type). In a quoted // context we use $string() which returns a "canonical // representation" (e.g., a directory path without a trailing - // slash). + // slash). Note: looks like we use typed $concat() now in the + // unquoted context. // if (result->type != nullptr && quoted) { |