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/slice2cpp | |
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/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 2907108ef58..0edf14755d7 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -96,25 +96,25 @@ 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; 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"); @@ -153,7 +153,7 @@ main(int argc, char* argv[]) if(depend) { Preprocessor icecpp(argv[0], *i, cppArgs); - icecpp.printMakefileDependencies(Preprocessor::CPlusPlus); + icecpp.printMakefileDependencies(Preprocessor::CPlusPlus, includePaths); } else { @@ -183,7 +183,7 @@ main(int argc, char* argv[]) else { UnitPtr u = Unit::createUnit(false, false, ice, caseSensitive); - int parseStatus = u->parse(cppHandle, debug); + int parseStatus = u->parse(*i, cppHandle, debug); if(!icecpp.close()) { |