diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-14 19:49:18 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-14 19:49:18 -0700 |
commit | 4fcec92f1aa84346b73133b03984ebe33d138c9b (patch) | |
tree | fd9cb6d3fc0087163086d8964d852a239811ea40 /cpp/src | |
parent | bug 4728 - slice2freezej fix (diff) | |
download | ice-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.cpp | 9 | ||||
-rw-r--r-- | cpp/src/slice2cs/Main.cpp | 9 | ||||
-rwxr-xr-x | cpp/src/slice2java/Main.cpp | 9 | ||||
-rw-r--r-- | cpp/src/slice2php/Main.cpp | 9 | ||||
-rw-r--r-- | cpp/src/slice2py/Main.cpp | 9 | ||||
-rw-r--r-- | cpp/src/slice2rb/Main.cpp | 9 |
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); |