diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-01-09 10:46:08 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-01-09 10:46:08 -0330 |
commit | f24e7084d5ebce8689e02d5f322d175d4108cf00 (patch) | |
tree | c484017689764bed48fa846be070d168ff469d64 /cpp/src/slice2cppe/Main.cpp | |
parent | Finished fixes for bug 2132 (diff) | |
download | ice-f24e7084d5ebce8689e02d5f322d175d4108cf00.tar.bz2 ice-f24e7084d5ebce8689e02d5f322d175d4108cf00.tar.xz ice-f24e7084d5ebce8689e02d5f322d175d4108cf00.zip |
Use mcpp instead of icecpp
Diffstat (limited to 'cpp/src/slice2cppe/Main.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cppe/Main.cpp b/cpp/src/slice2cppe/Main.cpp index cfc26feca6d..12f630139ac 100644 --- a/cpp/src/slice2cppe/Main.cpp +++ b/cpp/src/slice2cppe/Main.cpp @@ -92,24 +92,24 @@ main(int argc, char* argv[]) vector<string>extraHeaders = opts.argVec("add-header"); - string cppArgs; + vector<string> cppArgs; vector<string> optargs = opts.argVec("D"); vector<string>::const_iterator i; for(i = optargs.begin(); i != optargs.end(); ++i) { - cppArgs += " -D" + Preprocessor::addQuotes(*i); + cppArgs.push_back("-D" + *i); } optargs = opts.argVec("U"); for(i = optargs.begin(); i != optargs.end(); ++i) { - cppArgs += " -U" + Preprocessor::addQuotes(*i); + cppArgs.push_back("-U" + *i); } vector<string> includePaths = opts.argVec("I"); for(i = includePaths.begin(); i != includePaths.end(); ++i) { - cppArgs += " -I" + Preprocessor::normalizeIncludePath(*i); + cppArgs.push_back("-I" + Preprocessor::normalizeIncludePath(*i)); } bool preprocess = opts.isSet("E"); @@ -144,7 +144,7 @@ main(int argc, char* argv[]) if(depend) { Preprocessor icecpp(argv[0], *i, cppArgs); - icecpp.printMakefileDependencies(Preprocessor::CPlusPlus); + icecpp.printMakefileDependencies(Preprocessor::CPlusPlus, includePaths); } else { @@ -173,7 +173,7 @@ main(int argc, char* argv[]) else { UnitPtr u = Unit::createUnit(false, false, ice, caseSensitive); - int parseStatus = u->parse(cppHandle, debug, Slice::IceE); + int parseStatus = u->parse(*i, cppHandle, debug, Slice::IceE); if(!icecpp.close()) { |