diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-11-20 10:22:31 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-11-20 10:22:31 -0330 |
commit | aa4f3340e17e227a26659a75a8f60d24c2dd5323 (patch) | |
tree | c118d1d651d48f236c911d25f8a3f3b34320783f /cpp/src/slice2cs/Gen.cpp | |
parent | Bug 3550 - slice compiler not able to open tmp file on Vista (diff) | |
download | ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.tar.bz2 ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.tar.xz ice-aa4f3340e17e227a26659a75a8f60d24c2dd5323.zip |
Refactored CtrlCHandler usage in slice compilers
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index ac5f55098d0..44be51b65ae 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -21,7 +21,6 @@ #include <IceUtil/UUID.h> #include <Slice/Checksum.h> #include <Slice/DotNetNames.h> -#include <Slice/SignalHandler.h> using namespace std; using namespace Slice; @@ -39,19 +38,6 @@ using IceUtilInternal::eb; using IceUtilInternal::spar; using IceUtilInternal::epar; -// -// Callback for Crtl-C signal handling -// -static Gen* _gen = 0; - -static void closeCallback() -{ - if(_gen != 0) - { - _gen->closeOutput(); - } -} - static string // Should be an anonymous namespace, but VC++ 6 can't handle that. sliceModeToIceMode(Operation::Mode opMode) { @@ -1072,9 +1058,6 @@ Slice::Gen::Gen(const string& name, const string& base, const vector<string>& in : _includePaths(includePaths), _stream(stream) { - _gen = this; - SignalHandler::setCloseCallback(closeCallback); - string fileBase = base; string::size_type pos = base.find_last_of("/\\"); if(pos != string::npos) @@ -1090,7 +1073,6 @@ Slice::Gen::Gen(const string& name, const string& base, const vector<string>& in fileImpl = dir + '/' + fileImpl; } - SignalHandler::addFileForCleanup(file); _out.open(file.c_str()); if(!_out) { @@ -1127,7 +1109,6 @@ Slice::Gen::Gen(const string& name, const string& base, const vector<string>& in return; } - SignalHandler::addFileForCleanup(fileImpl); _impl.open(fileImpl.c_str()); if(!_impl) { @@ -1147,8 +1128,6 @@ Slice::Gen::~Gen() { _impl << '\n'; } - - SignalHandler::setCloseCallback(0); } bool |