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
8f9c63dc
Kaydet (Commit)
8f9c63dc
authored
Ock 14, 2011
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove a debug-only 3-state confusing pseudo-boolean...
üst
16752e0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
30 deletions
+8
-30
filerec.hxx
svl/inc/svl/filerec.hxx
+7
-12
filerec.cxx
svl/source/filerec/filerec.cxx
+1
-18
No files found.
svl/inc/svl/filerec.hxx
Dosyayı görüntüle @
8f9c63dc
...
@@ -40,8 +40,6 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
...
@@ -40,8 +40,6 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
//------------------------------------------------------------------------
//------------------------------------------------------------------------
#define SFX_BOOL_DONTCARE BOOL(2) // Don't-Care-Wert f"ur BOOLs
#define SFX_REC_PRETAG_EXT BYTE(0x00) // Pre-Tag f"ur Extended-Records
#define SFX_REC_PRETAG_EXT BYTE(0x00) // Pre-Tag f"ur Extended-Records
#define SFX_REC_PRETAG_EOR BYTE(0xFF) // Pre-Tag f"ur End-Of-Records
#define SFX_REC_PRETAG_EOR BYTE(0xFF) // Pre-Tag f"ur End-Of-Records
...
@@ -224,10 +222,7 @@ class SVL_DLLPUBLIC SfxMiniRecordWriter
...
@@ -224,10 +222,7 @@ class SVL_DLLPUBLIC SfxMiniRecordWriter
protected
:
protected
:
SvStream
*
_pStream
;
// <SvStream>, in dem der Record liegt
SvStream
*
_pStream
;
// <SvStream>, in dem der Record liegt
UINT32
_nStartPos
;
// Start-Position des Gesamt-Records im Stream
UINT32
_nStartPos
;
// Start-Position des Gesamt-Records im Stream
bool
_bHeaderOk
;
/* TRUE, wenn der Header schon geschrieben ist;
bool
_bHeaderOk
;
/* TRUE, wenn der Header schon geschrieben ist; */
bei DBG_UTIL wird SFX_BOOL_DONTCARE ver-
wendet, um die Gr"o\se von Fix-Sized-Records
zu pr"ufen. */
BYTE
_nPreTag
;
// in den Header zu schreibendes 'Pre-Tag'
BYTE
_nPreTag
;
// in den Header zu schreibendes 'Pre-Tag'
public
:
public
:
...
@@ -709,7 +704,7 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
...
@@ -709,7 +704,7 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
:
_pStream
(
pStream
),
:
_pStream
(
pStream
),
_nStartPos
(
pStream
->
Tell
()
),
_nStartPos
(
pStream
->
Tell
()
),
_bHeaderOk
(
FALSE
),
_bHeaderOk
(
false
),
_nPreTag
(
nTag
)
_nPreTag
(
nTag
)
{
{
DBG_ASSERT
(
_nPreTag
!=
0xFF
,
"invalid Tag"
);
DBG_ASSERT
(
_nPreTag
!=
0xFF
,
"invalid Tag"
);
...
@@ -736,7 +731,7 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
...
@@ -736,7 +731,7 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
:
_pStream
(
pStream
),
:
_pStream
(
pStream
),
// _nTag( uninitialized ),
// _nTag( uninitialized ),
// _nStarPos( uninitialized ),
// _nStarPos( uninitialized ),
_bHeaderOk
(
SFX_BOOL_DONTCARE
)
_bHeaderOk
(
true
)
{
{
DBG_ASSERT
(
nTag
!=
0
&&
nTag
!=
0xFF
,
"invalid Tag"
);
DBG_ASSERT
(
nTag
!=
0
&&
nTag
!=
0xFF
,
"invalid Tag"
);
DBG
(
_nStartPos
=
pStream
->
Tell
());
DBG
(
_nStartPos
=
pStream
->
Tell
());
...
@@ -758,7 +753,7 @@ inline SfxMiniRecordWriter::~SfxMiniRecordWriter()
...
@@ -758,7 +753,7 @@ inline SfxMiniRecordWriter::~SfxMiniRecordWriter()
{
{
// wurde der Header noch nicht geschrieben oder mu\s er gepr"uft werden
// wurde der Header noch nicht geschrieben oder mu\s er gepr"uft werden
if
(
!
_bHeaderOk
DBG
(
||
TRUE
)
)
if
(
!
_bHeaderOk
)
Close
();
Close
();
}
}
...
@@ -782,7 +777,7 @@ inline SvStream& SfxMiniRecordWriter::operator*() const
...
@@ -782,7 +777,7 @@ inline SvStream& SfxMiniRecordWriter::operator*() const
inline
void
SfxMiniRecordWriter
::
Reset
()
inline
void
SfxMiniRecordWriter
::
Reset
()
{
{
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
);
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
);
_bHeaderOk
=
FALSE
;
_bHeaderOk
=
false
;
}
}
//=========================================================================
//=========================================================================
...
@@ -901,7 +896,7 @@ inline void SfxSingleRecordWriter::Reset()
...
@@ -901,7 +896,7 @@ inline void SfxSingleRecordWriter::Reset()
{
{
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
+
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
+
SFX_REC_HEADERSIZE_SINGLE
);
SFX_REC_HEADERSIZE_SINGLE
);
_bHeaderOk
=
FALSE
;
_bHeaderOk
=
false
;
}
}
//=========================================================================
//=========================================================================
...
@@ -1022,7 +1017,7 @@ inline void SfxMultiFixRecordWriter::Reset()
...
@@ -1022,7 +1017,7 @@ inline void SfxMultiFixRecordWriter::Reset()
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
+
_pStream
->
Seek
(
_nStartPos
+
SFX_REC_HEADERSIZE_MINI
+
SFX_REC_HEADERSIZE_SINGLE
+
SFX_REC_HEADERSIZE_SINGLE
+
SFX_REC_HEADERSIZE_MULTI
);
SFX_REC_HEADERSIZE_MULTI
);
_bHeaderOk
=
FALSE
;
_bHeaderOk
=
false
;
}
}
//=========================================================================
//=========================================================================
...
...
svl/source/filerec/filerec.cxx
Dosyayı görüntüle @
8f9c63dc
...
@@ -119,26 +119,9 @@ UINT32 SfxMiniRecordWriter::Close
...
@@ -119,26 +119,9 @@ UINT32 SfxMiniRecordWriter::Close
_pStream
->
Seek
(
nEndPos
);
_pStream
->
Seek
(
nEndPos
);
// Header wurde JETZT geschrieben
// Header wurde JETZT geschrieben
_bHeaderOk
=
TRUE
;
_bHeaderOk
=
true
;
return
nEndPos
;
return
nEndPos
;
}
}
#ifdef DBG_UTIL
// mu\s Fix-Size-Record gepr"uft werden?
else
if
(
SFX_BOOL_DONTCARE
==
_bHeaderOk
)
{
// Header auslesen, um Soll-Gr"o\se zu bestimmen
UINT32
nEndPos
=
_pStream
->
Tell
();
_pStream
->
Seek
(
_nStartPos
);
UINT32
nHeader
;
*
_pStream
>>
nHeader
;
_pStream
->
Seek
(
nEndPos
);
// Soll-Gr"o\se mit Ist-Gr"o\se vergleichen
DBG_ASSERT
(
nEndPos
-
SFX_REC_OFS
(
nHeader
)
==
_nStartPos
+
sizeof
(
UINT32
),
"fixed record size incorrect"
);
DbgOutf
(
"SfxFileRec: written record until %ul"
,
nEndPos
);
}
#endif
// Record war bereits geschlossen
// Record war bereits geschlossen
return
0
;
return
0
;
...
...
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