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
944140ae
Kaydet (Commit)
944140ae
authored
Ock 14, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove uses of pLine in scanner
üst
e4d6dfae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
scanner.cxx
basic/source/comp/scanner.cxx
+20
-11
No files found.
basic/source/comp/scanner.cxx
Dosyayı görüntüle @
944140ae
...
...
@@ -317,7 +317,7 @@ bool SbiScanner::NextSym()
short
ncdig
=
0
;
eScanType
=
SbxDOUBLE
;
bool
bBufOverflow
=
false
;
while
(
strchr
(
"0123456789.DEde"
,
*
pLine
)
&&
*
pLine
)
while
(
nCol
<
aLine
.
getLength
()
&&
strchr
(
"0123456789.DEde"
,
aLine
[
nCol
])
)
{
// from 4.1.1996: buffer full? -> go on scanning empty
if
(
(
p
-
buf
)
==
(
BUF_SIZE
-
1
)
)
...
...
@@ -327,31 +327,40 @@ bool SbiScanner::NextSym()
continue
;
}
// point or exponent?
if
(
*
pLine
==
'.'
)
if
(
aLine
[
nCol
]
==
'.'
)
{
if
(
++
comma
>
1
)
{
++
pLine
;
++
nCol
;
continue
;
}
else
*
p
++
=
*
pLine
++
,
++
nCol
;
else
{
*
p
=
'.'
;
++
p
,
++
pLine
,
++
nCol
;
}
}
else
if
(
strchr
(
"DdEe"
,
*
pLine
)
)
else
if
(
strchr
(
"DdEe"
,
aLine
[
nCol
])
)
{
if
(
++
exp
>
1
)
{
++
pLine
;
++
nCol
;
continue
;
}
*
p
++
=
'E'
;
++
pLine
;
++
nCol
;
if
(
*
pLine
==
'+'
)
*
p
=
'E'
;
++
p
,
++
pLine
,
++
nCol
;
if
(
aLine
[
nCol
]
==
'+'
)
++
pLine
,
++
nCol
;
else
if
(
*
pLine
==
'-'
)
*
p
++
=
*
pLine
++
,
++
nCol
;
else
if
(
aLine
[
nCol
]
==
'-'
)
{
*
p
=
'-'
;
++
p
,
++
pLine
,
++
nCol
;
}
}
else
{
*
p
++
=
*
pLine
++
,
++
nCol
;
*
p
=
aLine
[
nCol
];
++
p
,
++
pLine
,
++
nCol
;
if
(
comma
&&
!
exp
)
++
ncdig
;
}
if
(
!
exp
)
++
ndig
;
...
...
@@ -379,7 +388,7 @@ bool SbiScanner::NextSym()
GenError
(
SbERR_MATH_OVERFLOW
);
// type recognition?
SbxDataType
t
=
GetSuffixType
(
*
pLine
);
SbxDataType
t
(
GetSuffixType
(
aLine
[
nCol
])
);
if
(
t
!=
SbxVARIANT
)
{
eScanType
=
t
;
...
...
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