Kaydet (Commit) 415465cc authored tarafından Juergen Schmidt's avatar Juergen Schmidt

remove vos dependencies

üst e7bb2a78
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: dependency.hxx,v $ * $RCSfile: dependency.hxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:13 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -122,11 +122,11 @@ struct LessTypeUsing ...@@ -122,11 +122,11 @@ struct LessTypeUsing
} }
}; };
typedef NAMESPACE_STD(set) <TypeUsing, LessTypeUsing> TypeUsingSet; typedef ::std::set< TypeUsing, LessTypeUsing > TypeUsingSet;
#if (defined( _MSC_VER ) && ( _MSC_VER < 1200 )) #if (defined( _MSC_VER ) && ( _MSC_VER < 1200 ))
typedef NAMESPACE_STD(__hash_map__) typedef ::std::__hash_map__
< <
::rtl::OString, ::rtl::OString,
TypeUsingSet, TypeUsingSet,
...@@ -135,7 +135,7 @@ typedef NAMESPACE_STD(__hash_map__) ...@@ -135,7 +135,7 @@ typedef NAMESPACE_STD(__hash_map__)
NewAlloc NewAlloc
> DependencyMap; > DependencyMap;
typedef NAMESPACE_STD(__hash_map__) typedef ::std::__hash_map__
< <
::rtl::OString, ::rtl::OString,
sal_uInt16, sal_uInt16,
...@@ -144,7 +144,7 @@ typedef NAMESPACE_STD(__hash_map__) ...@@ -144,7 +144,7 @@ typedef NAMESPACE_STD(__hash_map__)
NewAlloc NewAlloc
> GenerationMap; > GenerationMap;
#else #else
typedef NAMESPACE_STD(hash_map) typedef ::std::hash_map
< <
::rtl::OString, ::rtl::OString,
TypeUsingSet, TypeUsingSet,
...@@ -152,7 +152,7 @@ typedef NAMESPACE_STD(hash_map) ...@@ -152,7 +152,7 @@ typedef NAMESPACE_STD(hash_map)
EqualString EqualString
> DependencyMap; > DependencyMap;
typedef NAMESPACE_STD(hash_map) typedef ::std::hash_map
< <
::rtl::OString, ::rtl::OString,
sal_uInt16, sal_uInt16,
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: global.hxx,v $ * $RCSfile: global.hxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,21 +62,16 @@ ...@@ -62,21 +62,16 @@
#ifndef _CODEMAKER_GLOBAL_HXX_ #ifndef _CODEMAKER_GLOBAL_HXX_
#define _CODEMAKER_GLOBAL_HXX_ #define _CODEMAKER_GLOBAL_HXX_
#include <list> #include <list>
#include <vector> #include <vector>
#include <set> #include <set>
#include <fstream.h> #include <fstream.h>
#ifndef _RTL_USTRING_HXX_ #ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#endif #endif
#ifndef _VOS_MACROS_HXX_
#include <vos/macros.hxx>
#endif
struct EqualString struct EqualString
{ {
sal_Bool operator()(const ::rtl::OString& str1, const ::rtl::OString& str2) const sal_Bool operator()(const ::rtl::OString& str1, const ::rtl::OString& str2) const
...@@ -102,13 +97,13 @@ struct LessString ...@@ -102,13 +97,13 @@ struct LessString
}; };
#if defined(_MSC_VER) && _MSC_VER < 1200 #if defined(_MSC_VER) && _MSC_VER < 1200
typedef NAMESPACE_STD(new_alloc) NewAlloc; typedef ::std::new_alloc NewAlloc;
#endif #endif
typedef NAMESPACE_STD(list) < ::rtl::OString > StringList; typedef ::std::list< ::rtl::OString > StringList;
typedef NAMESPACE_STD(vector)< ::rtl::OString > StringVector; typedef ::std::vector< ::rtl::OString > StringVector;
typedef NAMESPACE_STD(set) < ::rtl::OString, LessString > StringSet; typedef ::std::set< ::rtl::OString, LessString > StringSet;
::rtl::OString makeTempName(sal_Char* prefix); ::rtl::OString makeTempName(sal_Char* prefix);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: options.hxx,v $ * $RCSfile: options.hxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
#endif #endif
#if defined( _MSC_VER ) && ( _MSC_VER < 1200 ) #if defined( _MSC_VER ) && ( _MSC_VER < 1200 )
typedef NAMESPACE_STD(__hash_map__) typedef ::std::__hash_map__
< <
::rtl::OString, ::rtl::OString,
::rtl::OString, ::rtl::OString,
...@@ -78,7 +78,7 @@ typedef NAMESPACE_STD(__hash_map__) ...@@ -78,7 +78,7 @@ typedef NAMESPACE_STD(__hash_map__)
NewAlloc NewAlloc
> OptionMap; > OptionMap;
#else #else
typedef NAMESPACE_STD(hash_map) typedef ::std::hash_map
< <
::rtl::OString, ::rtl::OString,
::rtl::OString, ::rtl::OString,
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: typemanager.hxx,v $ * $RCSfile: typemanager.hxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
RegistryTypeReaderLoader & getRegistryTypeReaderLoader(); RegistryTypeReaderLoader & getRegistryTypeReaderLoader();
typedef NAMESPACE_STD(list) <Registry*> RegistryList; typedef ::std::list< Registry* > RegistryList;
#if defined( _MSC_VER ) && ( _MSC_VER < 1200 ) #if defined( _MSC_VER ) && ( _MSC_VER < 1200 )
typedef NAMESPACE_STD(__hash_map__) typedef ::std::__hash_map__
< <
::rtl::OString, // Typename ::rtl::OString, // Typename
RTTypeClass, // TypeClass RTTypeClass, // TypeClass
...@@ -83,7 +83,7 @@ typedef NAMESPACE_STD(__hash_map__) ...@@ -83,7 +83,7 @@ typedef NAMESPACE_STD(__hash_map__)
NewAlloc NewAlloc
> T2TypeClassMap; > T2TypeClassMap;
#else #else
typedef NAMESPACE_STD(hash_map) typedef ::std::hash_map
< <
::rtl::OString, // Typename ::rtl::OString, // Typename
RTTypeClass, // TypeClass RTTypeClass, // TypeClass
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: global.cxx,v $ * $RCSfile: global.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: hr $ $Date: 2000-11-06 17:46:57 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:14 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -58,14 +58,14 @@ ...@@ -58,14 +58,14 @@
* *
* *
************************************************************************/ ************************************************************************/
#ifndef _VOS_PROCESS_HXX_ #ifndef _OSL_PROCESS_H_
#include <vos/process.hxx> #include <osl/process.h>
#endif #endif
#ifndef _RTL_OSTRINGBUFFER_HXX_ #ifndef _RTL_OSTRINGBUFFER_HXX_
#include <rtl/strbuf.hxx> #include <rtl/strbuf.hxx>
#endif #endif
#ifndef _RTL_USTRING_HXX_ #ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
#include <codemaker/global.hxx> #include <codemaker/global.hxx>
#endif #endif
using namespace vos;
using namespace rtl; using namespace rtl;
OString makeTempName(sal_Char* prefix) OString makeTempName(sal_Char* prefix)
...@@ -103,13 +102,11 @@ OString makeTempName(sal_Char* prefix) ...@@ -103,13 +102,11 @@ OString makeTempName(sal_Char* prefix)
if (prefix) if (prefix)
pPrefix = prefix; pPrefix = prefix;
OStartupInfo StartupInfo; if ( osl_getEnvironment(uTMP.pData, &uPattern.pData) != osl_Process_E_None )
if (StartupInfo.getEnvironment(uTMP, uPattern) != OStartupInfo::E_None)
{ {
if (StartupInfo.getEnvironment(uTEMP, uPattern) != OStartupInfo::E_None) if ( osl_getEnvironment(uTEMP.pData, &uPattern.pData) != osl_Process_E_None )
{ {
#if defined(WIN32) || defined(WNT) || defined(OS2) #if defined(SAL_W32) || defined(SAL_OS2)
strcpy(tmpPattern, "."); strcpy(tmpPattern, ".");
#else #else
strcpy(tmpPattern, "/tmp"); strcpy(tmpPattern, "/tmp");
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
# #
# $RCSfile: makefile.mk,v $ # $RCSfile: makefile.mk,v $
# #
# $Revision: 1.8 $ # $Revision: 1.9 $
# #
# last change: $Author: pluby $ $Date: 2001-03-02 07:16:21 $ # last change: $Author: jsc $ $Date: 2001-03-13 12:45:16 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
...@@ -110,7 +110,7 @@ APP1OBJS= $(OBJ)$/rdbmaker.obj \ ...@@ -110,7 +110,7 @@ APP1OBJS= $(OBJ)$/rdbmaker.obj \
APP1STDLIBS=\ APP1STDLIBS=\
$(SALLIB) \ $(SALLIB) \
$(VOSLIB) \ $(SALHELPERLIB) \
$(REGLIB) \ $(REGLIB) \
$(CPPULIB) \ $(CPPULIB) \
$(CPPUHELPERLIB) \ $(CPPUHELPERLIB) \
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: rdbmaker.cxx,v $ * $RCSfile: rdbmaker.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:16 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -64,10 +64,9 @@ ...@@ -64,10 +64,9 @@
#ifndef _OSL_FILE_HXX_ #ifndef _OSL_FILE_HXX_
#include <osl/file.hxx> #include <osl/file.hxx>
#endif #endif
#ifndef _VOS_PROCESS_HXX_ #ifndef _OSL_PROCESS_H_
#include <vos/process.hxx> #include <osl/process.h>
#endif #endif
#ifndef _CODEMAKER_TYPEMANAGER_HXX_ #ifndef _CODEMAKER_TYPEMANAGER_HXX_
#include <codemaker/typemanager.hxx> #include <codemaker/typemanager.hxx>
#endif #endif
...@@ -75,8 +74,8 @@ ...@@ -75,8 +74,8 @@
#include <codemaker/dependency.hxx> #include <codemaker/dependency.hxx>
#endif #endif
#ifndef _RTL_OSTRINGBUFFER_HXX_ #ifndef _RTL_OSTRINGBUFFER_HXX_
#include <rtl/strbuf.hxx> #include <rtl/strbuf.hxx>
#endif #endif
#if defined(SAL_W32) || defined(SAL_OS2) #if defined(SAL_W32) || defined(SAL_OS2)
...@@ -100,7 +99,6 @@ ...@@ -100,7 +99,6 @@
using namespace rtl; using namespace rtl;
using namespace osl; using namespace osl;
using namespace vos;
FileStream listFile; FileStream listFile;
RegistryKey rootKey; RegistryKey rootKey;
...@@ -115,7 +113,7 @@ OString getFullNameOfApplicatRdb() ...@@ -115,7 +113,7 @@ OString getFullNameOfApplicatRdb()
{ {
OUString bootReg; OUString bootReg;
OUString uTmpStr; OUString uTmpStr;
if( OStartupInfo::E_None == OStartupInfo().getExecutableFile(uTmpStr) ) if( osl_getExecutableFile(&uTmpStr.pData) == osl_Process_E_None )
{ {
sal_uInt32 lastIndex = uTmpStr.lastIndexOf(PATH_DELEMITTER); sal_uInt32 lastIndex = uTmpStr.lastIndexOf(PATH_DELEMITTER);
OUString tmpReg; OUString tmpReg;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: typeblop.cxx,v $ * $RCSfile: typeblop.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 15:29:08 $ * last change: $Author: jsc $ $Date: 2001-03-13 12:45:16 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -245,16 +245,16 @@ void writeMethodData( RegistryTypeWriter& rWriter, sal_uInt32 inheritedMmeberCou ...@@ -245,16 +245,16 @@ void writeMethodData( RegistryTypeWriter& rWriter, sal_uInt32 inheritedMmeberCou
Sequence< Reference< XMethodParameter > > parameters( xMethod->getParameters() ); Sequence< Reference< XMethodParameter > > parameters( xMethod->getParameters() );
Sequence< Reference< XTypeDescription > > exceptions( xMethod->getExceptions() ); Sequence< Reference< XTypeDescription > > exceptions( xMethod->getExceptions() );
sal_uInt32 methodIndex = xMember->getPosition() - inheritedMmeberCount; sal_uInt16 methodIndex = (sal_uInt16)(xMember->getPosition() - inheritedMmeberCount);
sal_uInt32 paramCount = parameters.getLength(); sal_uInt16 paramCount = (sal_uInt16)parameters.getLength();
sal_uInt32 exceptionCount = exceptions.getLength(); sal_uInt16 exceptionCount = (sal_uInt16)exceptions.getLength();
rWriter.setMethodData(methodIndex, xMember->getMemberName(), rWriter.setMethodData(methodIndex, xMember->getMemberName(),
xMethod->getReturnType()->getName().replace('.', '/'), xMethod->getReturnType()->getName().replace('.', '/'),
methodMode, paramCount, exceptionCount, OUString()); methodMode, paramCount, exceptionCount, OUString());
RTParamMode paramMode = RT_PARAM_IN; RTParamMode paramMode = RT_PARAM_IN;
for (sal_Int32 i=0; i < paramCount; i++) for (sal_uInt16 i=0; i < paramCount; i++)
{ {
Reference< XMethodParameter > xParam = parameters[i]; Reference< XMethodParameter > xParam = parameters[i];
if ( xParam->isIn() && xParam->isOut()) if ( xParam->isIn() && xParam->isOut())
...@@ -270,7 +270,7 @@ void writeMethodData( RegistryTypeWriter& rWriter, sal_uInt32 inheritedMmeberCou ...@@ -270,7 +270,7 @@ void writeMethodData( RegistryTypeWriter& rWriter, sal_uInt32 inheritedMmeberCou
paramMode = RT_PARAM_OUT; paramMode = RT_PARAM_OUT;
} }
rWriter.setParamData(methodIndex, xParam->getPosition(), xParam->getType()->getName().replace('.', '/'), rWriter.setParamData(methodIndex, (sal_uInt16)xParam->getPosition(), xParam->getType()->getName().replace('.', '/'),
xParam->getName(), paramMode); xParam->getName(), paramMode);
} }
...@@ -358,9 +358,9 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) ...@@ -358,9 +358,9 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
Reference< XInterfaceAttributeTypeDescription > xAttr; Reference< XInterfaceAttributeTypeDescription > xAttr;
Reference< XInterfaceMethodTypeDescription > xMethod; Reference< XInterfaceMethodTypeDescription > xMethod;
Sequence< Reference< XInterfaceMemberTypeDescription > > memberTypes( xIFace->getMembers()); Sequence< Reference< XInterfaceMemberTypeDescription > > memberTypes( xIFace->getMembers());
sal_uInt32 memberCount = memberTypes.getLength(); sal_uInt16 memberCount = (sal_uInt16)memberTypes.getLength();
sal_uInt32 attrCount = 0; sal_uInt16 attrCount = 0;
sal_uInt32 inheritedMemberCount = 0; sal_uInt16 inheritedMemberCount = 0;
for (sal_Int32 i=0; i < memberCount; i++) for (sal_Int32 i=0; i < memberCount; i++)
{ {
...@@ -376,7 +376,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) ...@@ -376,7 +376,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
if ( xSuperType.is() ) if ( xSuperType.is() )
{ {
uSuperType = xSuperType->getName().replace('.','/'); uSuperType = xSuperType->getName().replace('.','/');
inheritedMemberCount = getInheritedMemberCount( xSuperType ); inheritedMemberCount = (sal_uInt16)getInheritedMemberCount( xSuperType );
} }
RegistryTypeWriter writer(rtwLoader, RT_TYPE_INTERFACE, uTypeName.replace('.', '/'), RegistryTypeWriter writer(rtwLoader, RT_TYPE_INTERFACE, uTypeName.replace('.', '/'),
...@@ -434,7 +434,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) ...@@ -434,7 +434,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
Sequence< OUString > memberNames( xComp->getMemberNames()); Sequence< OUString > memberNames( xComp->getMemberNames());
Sequence< Reference< XTypeDescription > > memberTypes( xComp->getMemberTypes()); Sequence< Reference< XTypeDescription > > memberTypes( xComp->getMemberTypes());
sal_uInt32 memberCount = memberNames.getLength(); sal_uInt16 memberCount = (sal_uInt16)memberNames.getLength();
OUString uSuperType; OUString uSuperType;
Reference< XTypeDescription > xSuperType = xComp->getBaseType(); Reference< XTypeDescription > xSuperType = xComp->getBaseType();
...@@ -446,7 +446,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) ...@@ -446,7 +446,7 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
RegistryTypeWriter writer(rtwLoader, rtTypeClass, uTypeName.replace('.', '/'), RegistryTypeWriter writer(rtwLoader, rtTypeClass, uTypeName.replace('.', '/'),
uSuperType, memberCount, 0, 0); uSuperType, memberCount, 0, 0);
for (sal_Int32 i=0; i < memberCount; i++) for (sal_Int16 i=0; i < memberCount; i++)
{ {
writer.setFieldData(i , memberNames[i], memberTypes[i]->getName().replace('.', '/'), writer.setFieldData(i , memberNames[i], memberTypes[i]->getName().replace('.', '/'),
OUString(), OUString(), RT_ACCESS_READWRITE); OUString(), OUString(), RT_ACCESS_READWRITE);
...@@ -466,13 +466,13 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop) ...@@ -466,13 +466,13 @@ sal_uInt32 SAL_CALL getTypeBlop(const sal_Char* pTypeName, sal_uInt8** pBlop)
Sequence< OUString > enumNames( xEnum->getEnumNames()); Sequence< OUString > enumNames( xEnum->getEnumNames());
Sequence< sal_Int32 > enumValues( xEnum->getEnumValues()); Sequence< sal_Int32 > enumValues( xEnum->getEnumValues());
sal_uInt32 enumCount = enumNames.getLength(); sal_uInt16 enumCount = (sal_uInt16)enumNames.getLength();
RegistryTypeWriter writer(rtwLoader, RT_TYPE_ENUM, uTypeName.replace('.', '/'), RegistryTypeWriter writer(rtwLoader, RT_TYPE_ENUM, uTypeName.replace('.', '/'),
OUString(), enumCount, 0, 0); OUString(), enumCount, 0, 0);
RTConstValue constValue; RTConstValue constValue;
for (sal_Int32 i=0; i < enumCount; i++) for (sal_Int16 i=0; i < enumCount; i++)
{ {
constValue.m_type = RT_TYPE_INT32; constValue.m_type = RT_TYPE_INT32;
constValue.m_value.aLong = enumValues[i]; constValue.m_value.aLong = enumValues[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment