diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:47:44 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 15:47:44 +0000 |
commit | 81b2ca26823dca1b490ac0cbf23e6f2b4a9482f4 (patch) | |
tree | 4d5712255738c7e036fb54132af28b195de4ab9a /idlc/source/idlcproduce.cxx | |
parent | 17bac315a4112304e287a1e9302a38725fe3697e (diff) |
INTEGRATION: CWS sb14 (1.8.48); FILE MERGED
2004/03/15 09:53:57 sb 1.8.48.2: #i21150# Adapted to new extensible type writer interface; added support for bound interface attributes.
2004/03/01 12:59:26 sb 1.8.48.1: #i21150# Added optional interface inheritance; added -stdin switch; do not warn about bad member names of com.sun.star.uno.Uik; some general clean up and added const qualifiers.
Diffstat (limited to 'idlc/source/idlcproduce.cxx')
-rw-r--r-- | idlc/source/idlcproduce.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index 78da9d03a74a..9b31e5f484f0 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -2,9 +2,9 @@ * * $RCSfile: idlcproduce.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2003-03-26 12:11:08 $ + * last change: $Author: rt $ $Date: 2004-03-30 16:47:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -194,12 +194,12 @@ static sal_Bool cleanPath() return sal_True; } -void SAL_CALL removeIfExists(const OString& fileName) +void removeIfExists(const OString& pathname) { - unlink(fileName.getStr()); + unlink(pathname.getStr()); } -sal_Int32 SAL_CALL produceFile(const OString& fileName) +sal_Int32 produceFile(const OString& filenameBase) { Options* pOptions = idlc()->getOptions(); @@ -213,17 +213,17 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName) regFileName += OString::valueOf(SEPARATOR); } - OString strippedFileName(fileName.copy(fileName.lastIndexOf(SEPARATOR) + 1)); - OString tempName(strippedFileName.copy(0, strippedFileName.indexOf('.'))); + OString tempName(filenameBase); tempName += "_"; - tempName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_"); + tempName += filenameBase; + tempName += "._idlc_"; OString regTmpName( makeTempName(tempName, "._idlc_")); - regFileName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "urd"); + regFileName += filenameBase; + regFileName += ".urd"; RegistryLoader regLoader; - RegistryTypeWriterLoader writerLoader; - if ( !regLoader.isLoaded() || !writerLoader.isLoaded() ) + if ( !regLoader.isLoaded() ) { fprintf(stderr, "%s: could not load registry dll.\n", pOptions->getProgramName().getStr()); @@ -258,7 +258,7 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName) } // produce registry file - if ( !idlc()->getRoot()->dump(rootKey, &writerLoader) ) + if ( !idlc()->getRoot()->dump(rootKey) ) { rootKey.closeKey(); regFile.close(); @@ -296,7 +296,7 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName) return 1; } - if ( !copyFile(regTmpName, regFileName) ) + if ( !copyFile(®TmpName, regFileName) ) { fprintf(stderr, "%s: cannot copy temporary registry '%s' to '%s'\n", idlc()->getOptions()->getProgramName().getStr(), |