Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
cfde943f
Kaydet (Commit)
cfde943f
authored
Tem 03, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused functions
Change-Id: Ib615ff7eb12232b0b83664af134744d96754ffd8
üst
cade2b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
128 deletions
+1
-128
reflread.cxx
registry/source/reflread.cxx
+1
-106
reflread.hxx
registry/source/reflread.hxx
+0
-22
No files found.
registry/source/reflread.cxx
Dosyayı görüntüle @
cfde943f
...
...
@@ -288,7 +288,6 @@ public:
double
readDoubleConstant
(
sal_uInt16
index
);
const
sal_Unicode
*
readStringConstant
(
sal_uInt16
index
);
// throws std::bad_alloc
void
readUIK
(
sal_uInt16
index
,
RTUik
*
uik
);
};
ConstantPool
::~
ConstantPool
()
...
...
@@ -582,29 +581,6 @@ const sal_Unicode* ConstantPool::readStringConstant(sal_uInt16 index)
return
aString
;
}
void
ConstantPool
::
readUIK
(
sal_uInt16
index
,
RTUik
*
uik
)
{
if
(
index
==
0
)
{
uik
->
m_Data1
=
0
;
uik
->
m_Data2
=
0
;
uik
->
m_Data3
=
0
;
uik
->
m_Data4
=
0
;
uik
->
m_Data5
=
0
;
}
else
if
(
m_pIndex
&&
(
index
<=
m_numOfEntries
))
{
if
(
readUINT16
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_TAG
)
==
CP_TAG_UIK
)
{
uik
->
m_Data1
=
readUINT32
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_UIK1
);
uik
->
m_Data2
=
readUINT16
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_UIK2
);
uik
->
m_Data3
=
readUINT16
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_UIK3
);
uik
->
m_Data4
=
readUINT32
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_UIK4
);
uik
->
m_Data5
=
readUINT32
(
m_pIndex
[
index
-
1
]
+
CP_OFFSET_ENTRY_UIK5
);
}
}
}
/**************************************************************************
class FieldList
...
...
@@ -1325,32 +1301,6 @@ typereg_Version TYPEREG_CALLTYPE typereg_reader_getVersion(void * handle) {
return
TYPEREG_VERSION_0
;
}
static
sal_uInt16
TYPEREG_CALLTYPE
getMinorVersion
(
TypeReaderImpl
hEntry
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
if
(
pEntry
!=
nullptr
)
{
try
{
return
pEntry
->
readUINT16
(
OFFSET_MINOR_VERSION
);
}
catch
(
BlopObject
::
BoundsError
&
)
{
SAL_WARN
(
"registry"
,
"bad data"
);
}
}
return
0
;
}
static
sal_uInt16
TYPEREG_CALLTYPE
getMajorVersion
(
TypeReaderImpl
hEntry
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
if
(
pEntry
!=
nullptr
)
{
try
{
return
pEntry
->
readUINT16
(
OFFSET_MAJOR_VERSION
);
}
catch
(
BlopObject
::
BoundsError
&
)
{
SAL_WARN
(
"registry"
,
"bad data"
);
}
}
return
0
;
}
RTTypeClass
TYPEREG_CALLTYPE
typereg_reader_getTypeClass
(
void
*
hEntry
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1413,20 +1363,6 @@ static void TYPEREG_CALLTYPE getSuperTypeName(TypeReaderImpl hEntry, rtl_uString
rtl_uString_new
(
pSuperTypeName
);
}
static
void
TYPEREG_CALLTYPE
getUik
(
TypeReaderImpl
hEntry
,
RTUik
*
uik
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
if
(
pEntry
!=
NULL
)
{
try
{
pEntry
->
m_pCP
->
readUIK
(
pEntry
->
readUINT16
(
OFFSET_UIK
),
uik
);
}
catch
(
BlopObject
::
BoundsError
&
)
{
SAL_WARN
(
"registry"
,
"bad data"
);
}
}
}
void
TYPEREG_CALLTYPE
typereg_reader_getDocumentation
(
void
*
hEntry
,
rtl_uString
**
pDoku
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1584,11 +1520,6 @@ sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodCount(void * hEntry)
return
pEntry
->
m_pMethods
->
m_numOfEntries
;
}
static
sal_uInt32
TYPEREG_CALLTYPE
getMethodCount
(
TypeReaderImpl
hEntry
)
{
return
typereg_reader_getMethodCount
(
hEntry
);
}
void
TYPEREG_CALLTYPE
typereg_reader_getMethodName
(
void
*
hEntry
,
rtl_uString
**
pMethodName
,
sal_uInt16
index
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1615,11 +1546,6 @@ sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodParameterCount(
return
pEntry
->
m_pMethods
->
getMethodParamCount
(
index
);
}
static
sal_uInt32
TYPEREG_CALLTYPE
getMethodParamCount
(
TypeReaderImpl
hEntry
,
sal_uInt16
index
)
{
return
typereg_reader_getMethodParameterCount
(
hEntry
,
index
);
}
void
TYPEREG_CALLTYPE
typereg_reader_getMethodParameterTypeName
(
void
*
hEntry
,
rtl_uString
**
pMethodParamType
,
sal_uInt16
index
,
sal_uInt16
paramIndex
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1671,11 +1597,6 @@ sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getMethodExceptionCount(
return
pEntry
->
m_pMethods
->
getMethodExcCount
(
index
);
}
static
sal_uInt32
TYPEREG_CALLTYPE
getMethodExcCount
(
TypeReaderImpl
hEntry
,
sal_uInt16
index
)
{
return
typereg_reader_getMethodExceptionCount
(
hEntry
,
index
);
}
void
TYPEREG_CALLTYPE
typereg_reader_getMethodExceptionTypeName
(
void
*
hEntry
,
rtl_uString
**
pMethodExcpType
,
sal_uInt16
index
,
sal_uInt16
excIndex
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1742,11 +1663,6 @@ sal_uInt16 TYPEREG_CALLTYPE typereg_reader_getReferenceCount(void * hEntry)
return
pEntry
->
m_pReferences
->
m_numOfEntries
;
}
static
sal_uInt32
TYPEREG_CALLTYPE
getReferenceCount
(
TypeReaderImpl
hEntry
)
{
return
typereg_reader_getReferenceCount
(
hEntry
);
}
void
TYPEREG_CALLTYPE
typereg_reader_getReferenceTypeName
(
void
*
hEntry
,
rtl_uString
**
pReferenceName
,
sal_uInt16
index
)
{
TypeRegistryEntry
*
pEntry
=
static_cast
<
TypeRegistryEntry
*>
(
hEntry
);
...
...
@@ -1827,20 +1743,15 @@ void TYPEREG_CALLTYPE typereg_reader_getSuperTypeName(
RegistryTypeReader_Api
*
TYPEREG_CALLTYPE
initRegistryTypeReader_Api
()
{
static
RegistryTypeReader_Api
aApi
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
RegistryTypeReader_Api
aApi
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
if
(
!
aApi
.
acquire
)
{
aApi
.
createEntry
=
&
createEntry
;
aApi
.
acquire
=
&
typereg_reader_acquire
;
aApi
.
release
=
&
typereg_reader_release
;
aApi
.
getMinorVersion
=
&
getMinorVersion
;
aApi
.
getMajorVersion
=
&
getMajorVersion
;
aApi
.
getTypeClass
=
&
typereg_reader_getTypeClass
;
aApi
.
getTypeName
=
&
typereg_reader_getTypeName
;
aApi
.
getSuperTypeName
=
&
getSuperTypeName
;
aApi
.
getUik
=
&
getUik
;
aApi
.
getDoku
=
&
typereg_reader_getDocumentation
;
aApi
.
getFileName
=
&
typereg_reader_getFileName
;
aApi
.
getFieldCount
=
&
getFieldCount
;
aApi
.
getFieldName
=
&
typereg_reader_getFieldName
;
aApi
.
getFieldType
=
&
typereg_reader_getFieldTypeName
;
...
...
@@ -1848,22 +1759,6 @@ RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api()
aApi
.
getFieldConstValue
=
&
getFieldConstValue
;
aApi
.
getFieldDoku
=
&
typereg_reader_getFieldDocumentation
;
aApi
.
getFieldFileName
=
&
typereg_reader_getFieldFileName
;
aApi
.
getMethodCount
=
&
getMethodCount
;
aApi
.
getMethodName
=
&
typereg_reader_getMethodName
;
aApi
.
getMethodParamCount
=
&
getMethodParamCount
;
aApi
.
getMethodParamType
=
&
typereg_reader_getMethodParameterTypeName
;
aApi
.
getMethodParamName
=
&
typereg_reader_getMethodParameterName
;
aApi
.
getMethodParamMode
=
&
typereg_reader_getMethodParameterFlags
;
aApi
.
getMethodExcCount
=
&
getMethodExcCount
;
aApi
.
getMethodExcType
=
&
typereg_reader_getMethodExceptionTypeName
;
aApi
.
getMethodReturnType
=
&
typereg_reader_getMethodReturnTypeName
;
aApi
.
getMethodMode
=
&
typereg_reader_getMethodFlags
;
aApi
.
getMethodDoku
=
&
typereg_reader_getMethodDocumentation
;
aApi
.
getReferenceCount
=
&
getReferenceCount
;
aApi
.
getReferenceName
=
&
typereg_reader_getReferenceTypeName
;
aApi
.
getReferenceType
=
&
typereg_reader_getReferenceSort
;
aApi
.
getReferenceDoku
=
&
typereg_reader_getReferenceDocumentation
;
aApi
.
getReferenceAccess
=
&
typereg_reader_getReferenceFlags
;
return
(
&
aApi
);
}
...
...
registry/source/reflread.hxx
Dosyayı görüntüle @
cfde943f
...
...
@@ -46,12 +46,7 @@ struct RegistryTypeReader_Api
TypeReaderImpl
(
TYPEREG_CALLTYPE
*
createEntry
)
(
const
sal_uInt8
*
,
sal_uInt32
,
bool
);
void
(
TYPEREG_CALLTYPE
*
acquire
)
(
TypeReaderImpl
);
void
(
TYPEREG_CALLTYPE
*
release
)
(
TypeReaderImpl
);
sal_uInt16
(
TYPEREG_CALLTYPE
*
getMinorVersion
)
(
TypeReaderImpl
);
sal_uInt16
(
TYPEREG_CALLTYPE
*
getMajorVersion
)
(
TypeReaderImpl
);
RTTypeClass
(
TYPEREG_CALLTYPE
*
getTypeClass
)
(
TypeReaderImpl
);
void
(
TYPEREG_CALLTYPE
*
getUik
)
(
TypeReaderImpl
,
RTUik
*
);
void
(
TYPEREG_CALLTYPE
*
getDoku
)
(
TypeReaderImpl
,
rtl_uString
**
);
void
(
TYPEREG_CALLTYPE
*
getFileName
)
(
TypeReaderImpl
,
rtl_uString
**
);
void
(
TYPEREG_CALLTYPE
*
getTypeName
)
(
TypeReaderImpl
,
rtl_uString
**
);
void
(
TYPEREG_CALLTYPE
*
getSuperTypeName
)
(
TypeReaderImpl
,
rtl_uString
**
);
sal_uInt32
(
TYPEREG_CALLTYPE
*
getFieldCount
)
(
TypeReaderImpl
);
...
...
@@ -61,23 +56,6 @@ struct RegistryTypeReader_Api
RTValueType
(
TYPEREG_CALLTYPE
*
getFieldConstValue
)
(
TypeReaderImpl
,
sal_uInt16
,
RTConstValueUnion
*
);
void
(
TYPEREG_CALLTYPE
*
getFieldDoku
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getFieldFileName
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
sal_uInt32
(
TYPEREG_CALLTYPE
*
getMethodCount
)
(
TypeReaderImpl
);
void
(
TYPEREG_CALLTYPE
*
getMethodName
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
sal_uInt32
(
TYPEREG_CALLTYPE
*
getMethodParamCount
)
(
TypeReaderImpl
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getMethodParamType
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getMethodParamName
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
,
sal_uInt16
);
RTParamMode
(
TYPEREG_CALLTYPE
*
getMethodParamMode
)
(
TypeReaderImpl
,
sal_uInt16
,
sal_uInt16
);
sal_uInt32
(
TYPEREG_CALLTYPE
*
getMethodExcCount
)
(
TypeReaderImpl
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getMethodExcType
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getMethodReturnType
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
RTMethodMode
(
TYPEREG_CALLTYPE
*
getMethodMode
)
(
TypeReaderImpl
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getMethodDoku
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
sal_uInt32
(
TYPEREG_CALLTYPE
*
getReferenceCount
)
(
TypeReaderImpl
);
void
(
TYPEREG_CALLTYPE
*
getReferenceName
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
RTReferenceType
(
TYPEREG_CALLTYPE
*
getReferenceType
)
(
TypeReaderImpl
,
sal_uInt16
);
void
(
TYPEREG_CALLTYPE
*
getReferenceDoku
)
(
TypeReaderImpl
,
rtl_uString
**
,
sal_uInt16
);
RTFieldAccess
(
TYPEREG_CALLTYPE
*
getReferenceAccess
)
(
TypeReaderImpl
,
sal_uInt16
);
};
/** the API initialization function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment