diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-26 01:31:40 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-26 01:31:40 +0000 |
commit | 8c9e744005959dfd447d532bdfdb8c2fb100ddc3 (patch) | |
tree | e7ae7ec88f0c5611343cef3f5bf2caf8aa2d8c8d /cpp/src | |
parent | fixes for windows (diff) | |
download | ice-8c9e744005959dfd447d532bdfdb8c2fb100ddc3.tar.bz2 ice-8c9e744005959dfd447d532bdfdb8c2fb100ddc3.tar.xz ice-8c9e744005959dfd447d532bdfdb8c2fb100ddc3.zip |
fixes for windows
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Incoming.cpp | 2 | ||||
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 2 | ||||
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 34 | ||||
-rw-r--r-- | cpp/src/slice2freeze/slice2freeze.dsp | 12 |
4 files changed, 32 insertions, 18 deletions
diff --git a/cpp/src/Ice/Incoming.cpp b/cpp/src/Ice/Incoming.cpp index 64209f0b867..d5a142ef40d 100644 --- a/cpp/src/Ice/Incoming.cpp +++ b/cpp/src/Ice/Incoming.cpp @@ -81,7 +81,7 @@ IceInternal::Incoming::invoke(Stream& is) _os.write(p._prx); return; } - catch(const LocalException& ex) + catch(const LocalException&) { if (locator && servant) { diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 618cfab0c71..a2f63a4e788 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1241,7 +1241,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) } H << sp; - H << nl << "class " << exp1 << name << "PtrE : "; + H << nl << "class " << _dllExport << name << "PtrE : "; H.useCurrentPosAsIndent(); if (bases.empty()) { diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 5e5d9d51a17..7b0e0b57bac 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -483,11 +483,13 @@ main(int argc, char* argv[]) unit->mergeModules(); unit->sort(); - for (vector<string>::iterator p = includePaths.begin(); p != includePaths.end(); ++p) { - if (p->length() && (*p)[p->length() - 1] != '/') + for (vector<string>::iterator p = includePaths.begin(); p != includePaths.end(); ++p) { - *p += '/'; + if (p->length() && (*p)[p->length() - 1] != '/') + { + *p += '/'; + } } } @@ -520,9 +522,11 @@ main(int argc, char* argv[]) H << "\n#include <Ice/Stream.h>"; H << "\n#include <Freeze/DB.h>"; - for (StringList::const_iterator q = includes.begin(); q != includes.end(); ++q) { - H << "\n#include <" << changeInclude(*q, includePaths) << '>'; + for (StringList::const_iterator p = includes.begin(); p != includes.end(); ++p) + { + H << "\n#include <" << changeInclude(*p, includePaths) << '>'; + } } H << sp; @@ -565,22 +569,24 @@ main(int argc, char* argv[]) C << "\n# endif"; C << "\n#endif"; - for (vector<Dict>::const_iterator p = dicts.begin(); p != dicts.end(); ++p) { - try + for (vector<Dict>::const_iterator p = dicts.begin(); p != dicts.end(); ++p) { - if (!writeDict(argv[0], unit, *p, H, C, dllExport)) + try { + if (!writeDict(argv[0], unit, *p, H, C, dllExport)) + { + unit->destroy(); + return EXIT_FAILURE; + } + } + catch(...) + { + cerr << argv[0] << ": unknown exception" << endl; unit->destroy(); return EXIT_FAILURE; } } - catch(...) - { - cerr << argv[0] << ": unknown exception" << endl; - unit->destroy(); - return EXIT_FAILURE; - } } H << "\n\n#endif\n"; diff --git a/cpp/src/slice2freeze/slice2freeze.dsp b/cpp/src/slice2freeze/slice2freeze.dsp index bcf1bb7f55f..121436a9f2e 100644 --- a/cpp/src/slice2freeze/slice2freeze.dsp +++ b/cpp/src/slice2freeze/slice2freeze.dsp @@ -42,7 +42,7 @@ RSC=rc.exe # PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /Ze /W3 /GR /GX /O2 /I "." /I "../../include" /I "../parser" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I "." /I "../../include" /I "../parser" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /YX /FD /c
# SUBTRACT CPP /Fr
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
@@ -67,7 +67,7 @@ LINK32=link.exe # PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /Ze /W3 /Gm /GR /GX /Zi /Od /I "." /I "../../include" /I "../parser" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /I "." /I "../../include" /I "../parser" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /FD /GZ /c
# SUBTRACT CPP /Fr
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
@@ -89,12 +89,20 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
+SOURCE=.\GenUtil.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\Main.cpp
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\GenUtil.h
+# End Source File
# End Group
# Begin Group "Resource Files"
|