aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
commit882583f64e517ab232edb6bbb7433631c655c9da (patch)
tree3d0e8e16c20b1346cb34961c7f908b07427e9632 /libbuild2/utility.hxx
parentcf18da3ac461087ccffd31222dbe4fa2e6428d56 (diff)
Initial work on path_name use for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx14
1 files changed, 3 insertions, 11 deletions
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.
+ // <libbutl/fdstream.mxx>
//
- // 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 `<stdin>` 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 <libbuild2/diagnostics.hxx>).
//