From f24e7084d5ebce8689e02d5f322d175d4108cf00 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 9 Jan 2008 10:46:08 -0330 Subject: Use mcpp instead of icecpp --- cpp/src/slice2html/Main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/src/slice2html/Main.cpp') diff --git a/cpp/src/slice2html/Main.cpp b/cpp/src/slice2html/Main.cpp index 08d25c5f403..a74f7d92f90 100644 --- a/cpp/src/slice2html/Main.cpp +++ b/cpp/src/slice2html/Main.cpp @@ -91,24 +91,24 @@ main(int argc, char* argv[]) return EXIT_SUCCESS; } - string cppArgs; + vector cppArgs; vector optargs = opts.argVec("D"); vector::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); } optargs = opts.argVec("I"); for(i = optargs.begin(); i != optargs.end(); ++i) { - cppArgs += " -I" + Preprocessor::normalizeIncludePath(*i); + cppArgs.push_back("-I" + Preprocessor::normalizeIncludePath(*i)); } bool preprocess = opts.isSet("E"); @@ -196,7 +196,7 @@ main(int argc, char* argv[]) } else { - status = p->parse(cppHandle, debug); + status = p->parse(args[idx], cppHandle, debug); } if(!icecpp.close()) -- cgit v1.2.3