aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
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>).
//