From adbc6ee084567a2fe6a696b7f67c80000e517ff8 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Tue, 15 Jun 2004 06:33:57 +0000 Subject: - Added isOpen() method to OutputUtil. - Removed calls to strerror(errno) in slice2cpp and slice2cs because the std::fstream operations do not set errno when something goes wrong, so any error messages always showed "no error" at the end. - Added support for --impl option to slice2cs. - Found two places in slice2java where exceptions where exception handlers were not ordered into derived-to-base order. --- cpp/src/slice2cpp/Gen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index fbd80cdcb22..f0cc77865be 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -69,14 +69,14 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte implH.open(fileImplH.c_str()); if(!implH) { - cerr << name << ": can't open `" << fileImplH << "' for writing: " << strerror(errno) << endl; + cerr << name << ": can't open `" << fileImplH << "' for writing" << endl; return; } implC.open(fileImplC.c_str()); if(!implC) { - cerr << name << ": can't open `" << fileImplC << "' for writing: " << strerror(errno) << endl; + cerr << name << ": can't open `" << fileImplC << "' for writing" << endl; return; } @@ -102,14 +102,14 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte H.open(fileH.c_str()); if(!H) { - cerr << name << ": can't open `" << fileH << "' for writing: " << strerror(errno) << endl; + cerr << name << ": can't open `" << fileH << "' for writing" << endl; return; } C.open(fileC.c_str()); if(!C) { - cerr << name << ": can't open `" << fileC << "' for writing: " << strerror(errno) << endl; + cerr << name << ": can't open `" << fileC << "' for writing" << endl; return; } -- cgit v1.2.3