From 7a7b8ba432977282a90567c77822a72645d2a5c8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 9 Apr 2016 07:48:02 +0200 Subject: Add abs_dir_path type, auto-complete if initialized from names --- build2/parser.cxx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 3d21cac..6926ce3 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1335,16 +1335,17 @@ namespace build2 map_type (const string& n) { return - n == "bool" ? &value_traits::value_type : - n == "uint64" ? &value_traits::value_type : - n == "string" ? &value_traits::value_type : - n == "path" ? &value_traits::value_type : - n == "dir_path" ? &value_traits::value_type : - n == "name" ? &value_traits::value_type : - n == "strings" ? &value_traits::value_type : - n == "paths" ? &value_traits::value_type : - n == "dir_paths" ? &value_traits::value_type : - n == "names" ? &value_traits::value_type : + n == "bool" ? &value_traits::value_type : + n == "uint64" ? &value_traits::value_type : + n == "string" ? &value_traits::value_type : + n == "path" ? &value_traits::value_type : + n == "dir_path" ? &value_traits::value_type : + n == "abs_dir_path" ? &value_traits::value_type : + n == "name" ? &value_traits::value_type : + n == "strings" ? &value_traits::value_type : + n == "paths" ? &value_traits::value_type : + n == "dir_paths" ? &value_traits::value_type : + n == "names" ? &value_traits::value_type : nullptr; } -- cgit v1.1