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/utility.hxx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libbuild2/utility.hxx') diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 8cd33cf..23ad19b 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -88,18 +88,10 @@ namespace build2 using butl::eof; - // Open a file or, if the file name is `-`, stdin/stdout. + // // - // Note that ofdstream::close() should be called explicitly if not stdout - // (but harmless to call even if it is). Also note that our overload of - // operator<<(path) always translats `-` to `` so care must be taken - // when issuing diagnostics. - // - istream& - open_file_or_stdin (const path&, ifdstream&); - - ostream& - open_file_or_stdout (const path&, ofdstream&); + using butl::open_file_or_stdin; + using butl::open_file_or_stdout; // Diagnostics state (verbosity level, etc; see ). // -- cgit v1.1