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
1ad700f5
Kaydet (Commit)
1ad700f5
authored
May 08, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor improvements to UNOIDL binary format
Change-Id: Ia215b34842ce85bfbd1ad90a286abcbae0884bd5
üst
79774d96
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
8 deletions
+23
-8
config_version.h.in
config_host/config_version.h.in
+4
-4
README
unoidl/README
+8
-1
reg2unoidl.cxx
unoidl/source/reg2unoidl.cxx
+8
-1
unoidlprovider.cxx
unoidl/source/unoidlprovider.cxx
+3
-2
No files found.
config_host/config_version.h.in
Dosyayı görüntüle @
1ad700f5
...
...
@@ -16,10 +16,10 @@ Version settings
#undef LIBO_THIS_YEAR
#define LIBO_VERSION_DOTTED \
(
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MAJOR) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MICRO) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_PATCH)
)
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MAJOR) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_MICRO) "." \
LIBO_VERSION_STRINGIFY(LIBO_VERSION_PATCH
)
#define LIBO_VERSION_ENCODED_IN_32BITS \
((LIBO_VERSION_MAJOR << 24) | (LIBO_VERSION_MINOR << 16) | (LIBO_VERSION_MICRO << 8) | LIBO_VERSION_PATCH)
...
...
unoidl/README
Dosyayı görüntüle @
1ad700f5
...
...
@@ -45,11 +45,18 @@ The file starts with an 8 byte header, followed by information about the root
map (reg2unoidl generates files in a single depth-first pass, so the root map
itself is at the end of the file):
* 8 byte header "UNOIDL\0\xFF"
* 7 byte magic header "UNOIDL\xFF"
* version byte 0
* Offset of root Map
* UInt32 number of entries of root Map
...
Files generated by reg2unoidl follow that by a
"\0** Created by LibreOffice " LIBO_VERSION_DOTTED " reg2unoidl **\0"
banner (cf. config_host/config_version.h.in), as a debugging aid.
Layout of per-entry payload in the root or a module Map:
* kind byte:
...
...
unoidl/source/reg2unoidl.cxx
Dosyayı görüntüle @
1ad700f5
...
...
@@ -17,11 +17,13 @@
#include <utility>
#include <vector>
#include "config_version.h"
#include "osl/endian.h"
#include "osl/file.h"
#include "osl/file.hxx"
#include "osl/process.h"
#include "rtl/process.h"
#include "rtl/string.h"
#include "rtl/string.hxx"
#include "rtl/textenc.h"
#include "rtl/textcvt.h"
...
...
@@ -746,9 +748,14 @@ SAL_IMPLEMENT_MAIN() {
<<
+
e
<<
std
::
endl
;
std
::
exit
(
EXIT_FAILURE
);
}
write
(
f
,
"UNOIDL
\
0\xFF
"
,
8
);
write
(
f
,
"UNOIDL
\
xFF\0
"
,
8
);
write32
(
f
,
0
);
// root map offset
write32
(
f
,
0
);
// root map size
write
(
f
,
RTL_CONSTASCII_STRINGPARAM
(
"
\0
** Created by LibreOffice "
LIBO_VERSION_DOTTED
" reg2unoidl **
\0
"
));
sal_uInt64
off
;
std
::
size_t
size
;
try
{
...
...
unoidl/source/unoidlprovider.cxx
Dosyayı görüntüle @
1ad700f5
...
...
@@ -1058,11 +1058,12 @@ rtl::Reference< Entity > readEntity(
UnoidlProvider
::
UnoidlProvider
(
OUString
const
&
uri
)
:
file_
(
new
detail
::
MappedFile
(
uri
))
{
if
(
file_
->
size
<
8
||
std
::
memcmp
(
file_
->
address
,
"UNOIDL
\
0\xFF
"
,
8
)
!=
0
)
if
(
file_
->
size
<
8
||
std
::
memcmp
(
file_
->
address
,
"UNOIDL
\
xFF\0
"
,
8
)
!=
0
)
{
throw
FileFormatException
(
file_
->
uri
,
"UNOIDL format: does not begin with magic UNOIDL
\\
0
\\
xFF"
);
"UNOIDL format: does not begin with magic UNOIDL
\\
xFF and version"
" 0"
);
}
sal_uInt32
off
=
file_
->
read32
(
8
);
mapSize_
=
file_
->
read32
(
12
);
...
...
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