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/Slice/Preprocessor.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/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 795adcb7e8b..3291112b253 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -10,7 +10,6 @@ #include <IceUtil/DisableWarnings.h> #include <Slice/Preprocessor.h> #include <Slice/Util.h> -#include <Slice/SignalHandler.h> #include <IceUtil/StringUtil.h> #include <IceUtil/FileUtil.h> #include <IceUtil/UUID.h> @@ -29,19 +28,6 @@ using namespace std; using namespace Slice; // -// Callback for Crtl-C signal handling -// -static Preprocessor* _preprocess = 0; - -static void closeCallback() -{ - if(_preprocess != 0) - { - _preprocess->close(); - } -} - -// // mcpp defines // namespace Slice @@ -64,8 +50,6 @@ Slice::Preprocessor::Preprocessor(const string& path, const string& fileName, co _args(args), _cppHandle(0) { - _preprocess = this; - SignalHandler::setCloseCallback(closeCallback); } Slice::Preprocessor::~Preprocessor() @@ -479,9 +463,6 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin bool Slice::Preprocessor::close() { - _preprocess = 0; - SignalHandler::setCloseCallback(0); - if(_cppHandle != 0) { int status = fclose(_cppHandle); |