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
b2706fcf
Kaydet (Commit)
b2706fcf
authored
Nis 11, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid reserved identifier
Change-Id: I0ed8754bb06328b61a41079a4f446d8dd2b61bb7
üst
d29c6822
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sbxform.cxx
basic/source/sbx/sbxform.cxx
+5
-5
No files found.
basic/source/sbx/sbxform.cxx
Dosyayı görüntüle @
b2706fcf
...
@@ -40,7 +40,7 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
...
@@ -40,7 +40,7 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
#include <float.h>
#include <float.h>
#include <math.h>
#include <math.h>
#define
_NO_DIGIT
-1
#define
NO_DIGIT_
-1
#define MAX_NO_OF_DIGITS DBL_DIG
#define MAX_NO_OF_DIGITS DBL_DIG
#define MAX_DOUBLE_BUFFER_LENGTH MAX_NO_OF_DIGITS + 9
#define MAX_DOUBLE_BUFFER_LENGTH MAX_NO_OF_DIGITS + 9
...
@@ -260,7 +260,7 @@ short SbxBasicFormater::GetDigitAtPosScan( short nPos, bool& bFoundFirstDigit )
...
@@ -260,7 +260,7 @@ short SbxBasicFormater::GetDigitAtPosScan( short nPos, bool& bFoundFirstDigit )
// number's dissolution (double)
// number's dissolution (double)
if
(
nPos
>
nNumExp
||
abs
(
nNumExp
-
nPos
)
>
MAX_NO_OF_DIGITS
)
if
(
nPos
>
nNumExp
||
abs
(
nNumExp
-
nPos
)
>
MAX_NO_OF_DIGITS
)
{
{
return
_NO_DIGIT
;
return
NO_DIGIT_
;
}
}
// determine the index of the position in the number-string:
// determine the index of the position in the number-string:
// skip the leading sign
// skip the leading sign
...
@@ -334,7 +334,7 @@ short SbxBasicFormater::GetDigitAtPos( double dNumber, short nPos,
...
@@ -334,7 +334,7 @@ short SbxBasicFormater::GetDigitAtPos( double dNumber, short nPos,
// error only at numbers > 0, i. e. for digits before
// error only at numbers > 0, i. e. for digits before
// the decimal point
// the decimal point
if
(
nMaxDigit
<
nPos
&&
!
bFoundFirstDigit
&&
nPos
>=
0
)
if
(
nMaxDigit
<
nPos
&&
!
bFoundFirstDigit
&&
nPos
>=
0
)
return
_NO_DIGIT
;
return
NO_DIGIT_
;
bFoundFirstDigit
=
true
;
bFoundFirstDigit
=
true
;
for
(
short
i
=
nMaxDigit
;
i
>=
nPos
;
i
--
)
for
(
short
i
=
nMaxDigit
;
i
>=
nPos
;
i
--
)
...
@@ -702,7 +702,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber,
...
@@ -702,7 +702,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber,
#else
#else
AppendDigit
(
sReturnStrg
,
nTempDigit
=
GetDigitAtPos
(
dNumber
,
j
,
dNumber
,
bFoundFirstDigit
)
);
AppendDigit
(
sReturnStrg
,
nTempDigit
=
GetDigitAtPos
(
dNumber
,
j
,
dNumber
,
bFoundFirstDigit
)
);
#endif
#endif
if
(
nTempDigit
!=
_NO_DIGIT
)
if
(
nTempDigit
!=
NO_DIGIT_
)
{
{
bFirstDigit
=
false
;
bFirstDigit
=
false
;
}
}
...
@@ -736,7 +736,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber,
...
@@ -736,7 +736,7 @@ void SbxBasicFormater::ScanFormatString( double dNumber,
AppendDigit
(
sReturnStrg
,
nTempDigit
=
GetDigitAtPos
(
dNumber
,
nDigitPos
,
dNumber
,
bFoundFirstDigit
)
);
AppendDigit
(
sReturnStrg
,
nTempDigit
=
GetDigitAtPos
(
dNumber
,
nDigitPos
,
dNumber
,
bFoundFirstDigit
)
);
#endif
#endif
if
(
nTempDigit
!=
_NO_DIGIT
)
if
(
nTempDigit
!=
NO_DIGIT_
)
{
{
bFirstDigit
=
false
;
bFirstDigit
=
false
;
}
}
...
...
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