diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-10-17 12:20:38 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-10-17 12:20:38 +0000 |
commit | b8245aaa3b46c5baf4b5de55240c68869f13309e (patch) | |
tree | 5ff03685e0e8286719ab09a0922f3ff152b0ca48 | |
parent | fd2fdef2d4dfe4b836eb971caf453a96a487a303 (diff) |
INTEGRATION: CWS jscpp1 (1.16.8); FILE MERGED
2005/08/09 11:47:09 jsc 1.16.8.1: #i52596# improve reading command line option
-rw-r--r-- | idlc/source/idlccompile.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 4d08dce99a83..f426709ab56d 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -4,9 +4,9 @@ * * $RCSfile: idlccompile.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: rt $ $Date: 2005-09-07 18:11:33 $ + * last change: $Author: rt $ $Date: 2005-10-17 13:20:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -271,8 +271,9 @@ sal_Int32 compileFile(const OString * pathname) if ( filePath.getLength() ) { - cppArgs.append(" -I"); + cppArgs.append(" -I\""); cppArgs.append(filePath); + cppArgs.append("\""); } } @@ -287,10 +288,11 @@ sal_Int32 compileFile(const OString * pathname) cppArgs.append(pOptions->getOption("-I")); } - cppArgs.append(" "); + cppArgs.append(" \""); cppArgs.append(tmpFile); - cppArgs.append(" "); + cppArgs.append("\" \""); cppArgs.append(preprocFile); + cppArgs.append("\""); OString cmdFileName = makeTempName(OString("idlc_"), OString()); FILE* pCmdFile = fopen(cmdFileName, "w"); |