diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-01-17 13:11:19 -0330 |
commit | a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6 (patch) | |
tree | bbb1b67428ee22ec495456dc1a6bdd46f8e45236 /cpp/src/slice2freezej/Main.cpp | |
parent | Bug 2261 - renaming Ice for C# to Ice for .NET (diff) | |
download | ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.bz2 ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.tar.xz ice-a2e4ce4b60e9fac86c2cf81e3f22845a699efaa6.zip |
Bug 2540 - trap ctrl-C and unlink output files
Diffstat (limited to 'cpp/src/slice2freezej/Main.cpp')
-rw-r--r-- | cpp/src/slice2freezej/Main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp index e430c562a9e..a7a9e9c3625 100644 --- a/cpp/src/slice2freezej/Main.cpp +++ b/cpp/src/slice2freezej/Main.cpp @@ -10,6 +10,7 @@ #include <IceUtil/Options.h> #include <Slice/Preprocessor.h> #include <Slice/JavaUtil.h> +#include <Slice/SignalHandler.h> #ifdef __BCPLUSPLUS__ # include <iterator> @@ -57,6 +58,7 @@ class FreezeGenerator : public JavaGenerator { public: FreezeGenerator(const string&, const string&); + virtual ~FreezeGenerator(); bool generate(UnitPtr&, const Dict&); @@ -75,6 +77,10 @@ FreezeGenerator::FreezeGenerator(const string& prog, const string& dir) { } +FreezeGenerator::~FreezeGenerator() +{ +} + string FreezeGenerator::varToObject(const TypePtr& type, const string& param) { @@ -1407,6 +1413,8 @@ main(int argc, char* argv[]) int status = EXIT_SUCCESS; + SignalHandler sigHandler; + for(vector<string>::size_type idx = 0; idx < args.size(); ++idx) { if(depend) |