From 882583f64e517ab232edb6bbb7433631c655c9da Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Nov 2019 11:12:43 +0200 Subject: Initial work on path_name use for `-` to stdin/stdout translation --- libbuild2/file.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libbuild2/file.cxx') diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 974dc2b..2bc9af6 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -188,14 +188,17 @@ namespace build2 static void source (scope& root, scope& base, const path& bf, bool boot) { + path_name fn (bf); try { + // @@ PATH_NAME TODO + // ifdstream ifs; - return source (root, base, open_file_or_stdin (bf, ifs), bf, boot); + return source (root, base, open_file_or_stdin (fn, ifs), bf /* fn */, boot); } catch (const io_error& e) { - fail << "unable to read buildfile " << bf << ": " << e; + fail << "unable to read buildfile " << fn << ": " << e; } } -- cgit v1.1