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
746b39e4
Kaydet (Commit)
746b39e4
authored
Ock 15, 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
1074c1ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
scanner.cxx
basic/source/comp/scanner.cxx
+6
-5
No files found.
basic/source/comp/scanner.cxx
Dosyayı görüntüle @
746b39e4
...
@@ -398,7 +398,7 @@ bool SbiScanner::NextSym()
...
@@ -398,7 +398,7 @@ bool SbiScanner::NextSym()
}
}
// Hex/octal number? Read in and convert:
// Hex/octal number? Read in and convert:
else
if
(
*
pLine
==
'&'
)
else
if
(
nCol
<
aLine
.
getLength
()
&&
aLine
[
nCol
]
==
'&'
)
{
{
++
pLine
;
++
nCol
;
++
pLine
;
++
nCol
;
sal_Unicode
cmp1
[]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
0
};
sal_Unicode
cmp1
[]
=
{
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
0
};
...
@@ -406,7 +406,8 @@ bool SbiScanner::NextSym()
...
@@ -406,7 +406,8 @@ bool SbiScanner::NextSym()
sal_Unicode
*
cmp
=
cmp1
;
sal_Unicode
*
cmp
=
cmp1
;
sal_Unicode
base
=
16
;
sal_Unicode
base
=
16
;
sal_Unicode
ndig
=
8
;
sal_Unicode
ndig
=
8
;
sal_Unicode
xch
=
*
pLine
++
&
0xFF
;
++
nCol
;
sal_Unicode
xch
=
aLine
[
nCol
]
&
0xFF
;
++
pLine
;
++
nCol
;
switch
(
toupper
(
xch
)
)
switch
(
toupper
(
xch
)
)
{
{
case
'O'
:
case
'O'
:
...
@@ -423,10 +424,10 @@ bool SbiScanner::NextSym()
...
@@ -423,10 +424,10 @@ bool SbiScanner::NextSym()
long
l
=
0
;
long
l
=
0
;
int
i
;
int
i
;
bool
bBufOverflow
=
false
;
bool
bBufOverflow
=
false
;
while
(
theBasicCharClass
::
get
().
isAlphaNumeric
(
*
pLine
&
0xFF
,
bCompatible
)
)
while
(
nCol
<
aLine
.
getLength
()
&&
theBasicCharClass
::
get
().
isAlphaNumeric
(
aLine
[
nCol
]
&
0xFF
,
bCompatible
)
)
{
{
sal_Unicode
ch
=
sal
::
static_int_cast
<
sal_Unicode
>
(
sal_Unicode
ch
=
sal
::
static_int_cast
<
sal_Unicode
>
(
toupper
(
*
pLine
&
0xFF
)
);
toupper
(
aLine
[
nCol
]
&
0xFF
)
);
++
pLine
;
++
nCol
;
++
pLine
;
++
nCol
;
// from 4.1.1996: buffer full, go on scanning empty
// from 4.1.1996: buffer full, go on scanning empty
if
(
(
p
-
buf
)
==
(
BUF_SIZE
-
1
)
)
if
(
(
p
-
buf
)
==
(
BUF_SIZE
-
1
)
)
...
@@ -451,7 +452,7 @@ bool SbiScanner::NextSym()
...
@@ -451,7 +452,7 @@ bool SbiScanner::NextSym()
GenError
(
SbERR_MATH_OVERFLOW
);
break
;
GenError
(
SbERR_MATH_OVERFLOW
);
break
;
}
}
}
}
if
(
*
pLine
==
'&'
)
++
pLine
,
++
nCol
;
if
(
nCol
<
aLine
.
getLength
()
&&
aLine
[
nCol
]
==
'&'
)
++
pLine
,
++
nCol
;
nVal
=
(
double
)
l
;
nVal
=
(
double
)
l
;
eScanType
=
(
l
>=
SbxMININT
&&
l
<=
SbxMAXINT
)
?
SbxINTEGER
:
SbxLONG
;
eScanType
=
(
l
>=
SbxMININT
&&
l
<=
SbxMAXINT
)
?
SbxINTEGER
:
SbxLONG
;
if
(
bBufOverflow
)
if
(
bBufOverflow
)
...
...
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