summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2010-05-14 19:49:18 -0700
committerMark Spruiell <mes@zeroc.com>2010-05-14 19:49:18 -0700
commit4fcec92f1aa84346b73133b03984ebe33d138c9b (patch)
treefd9cb6d3fc0087163086d8964d852a239811ea40 /cpp/src
parentbug 4728 - slice2freezej fix (diff)
downloadice-4fcec92f1aa84346b73133b03984ebe33d138c9b.tar.bz2
ice-4fcec92f1aa84346b73133b03984ebe33d138c9b.tar.xz
ice-4fcec92f1aa84346b73133b03984ebe33d138c9b.zip
bug 4749 - duplicate Slice files cause slice2java to fail
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2cpp/Main.cpp9
-rw-r--r--cpp/src/slice2cs/Main.cpp9
-rwxr-xr-xcpp/src/slice2java/Main.cpp9
-rw-r--r--cpp/src/slice2php/Main.cpp9
-rw-r--r--cpp/src/slice2py/Main.cpp9
-rw-r--r--cpp/src/slice2rb/Main.cpp9
6 files changed, 54 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index 03ca1e127f1..5932f164075 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -188,6 +188,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
diff --git a/cpp/src/slice2cs/Main.cpp b/cpp/src/slice2cs/Main.cpp
index 1fc75c374ff..0e132820bac 100644
--- a/cpp/src/slice2cs/Main.cpp
+++ b/cpp/src/slice2cs/Main.cpp
@@ -183,6 +183,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
diff --git a/cpp/src/slice2java/Main.cpp b/cpp/src/slice2java/Main.cpp
index be133161324..ffa4f6890dc 100755
--- a/cpp/src/slice2java/Main.cpp
+++ b/cpp/src/slice2java/Main.cpp
@@ -204,6 +204,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend || dependxml)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
diff --git a/cpp/src/slice2php/Main.cpp b/cpp/src/slice2php/Main.cpp
index 19fbd3d98fa..d66a791af51 100644
--- a/cpp/src/slice2php/Main.cpp
+++ b/cpp/src/slice2php/Main.cpp
@@ -1625,6 +1625,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
diff --git a/cpp/src/slice2py/Main.cpp b/cpp/src/slice2py/Main.cpp
index 2053ebef0c8..58fc3a9f47c 100644
--- a/cpp/src/slice2py/Main.cpp
+++ b/cpp/src/slice2py/Main.cpp
@@ -477,6 +477,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);
diff --git a/cpp/src/slice2rb/Main.cpp b/cpp/src/slice2rb/Main.cpp
index ebe351d75f2..ae41372844b 100644
--- a/cpp/src/slice2rb/Main.cpp
+++ b/cpp/src/slice2rb/Main.cpp
@@ -181,6 +181,15 @@ compile(int argc, char* argv[])
for(i = args.begin(); i != args.end(); ++i)
{
+ //
+ // Ignore duplicates.
+ //
+ vector<string>::iterator p = find(args.begin(), args.end(), *i);
+ if(p != i)
+ {
+ continue;
+ }
+
if(depend)
{
PreprocessorPtr icecpp = Preprocessor::create(argv[0], *i, cppArgs);