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
533194a6
Kaydet (Commit)
533194a6
authored
Agu 12, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bErrors was always true
Change-Id: I193029e1fb2434161679498fa0ba7e1c7c0ab3ba
üst
1817cf60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
scanner.cxx
basic/source/comp/scanner.cxx
+3
-5
scanner.hxx
basic/source/inc/scanner.hxx
+0
-1
No files found.
basic/source/comp/scanner.cxx
Dosyayı görüntüle @
533194a6
...
@@ -46,8 +46,7 @@ SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf
...
@@ -46,8 +46,7 @@ SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf
bVBASupportOn
=
bVBASupportOn
=
bInStatement
=
bInStatement
=
bPrevLineExtentsComment
=
false
;
bPrevLineExtentsComment
=
false
;
bHash
=
bHash
=
true
;
bErrors
=
true
;
}
}
SbiScanner
::~
SbiScanner
()
SbiScanner
::~
SbiScanner
()
...
@@ -72,7 +71,7 @@ void SbiScanner::GenError( SbError code )
...
@@ -72,7 +71,7 @@ void SbiScanner::GenError( SbError code )
bAbort
=
true
;
bAbort
=
true
;
return
;
return
;
}
}
if
(
!
bError
&&
bErrors
)
if
(
!
bError
)
{
{
bool
bRes
=
true
;
bool
bRes
=
true
;
// report only one error per statement
// report only one error per statement
...
@@ -96,8 +95,7 @@ void SbiScanner::GenError( SbError code )
...
@@ -96,8 +95,7 @@ void SbiScanner::GenError( SbError code )
}
}
bAbort
=
bAbort
||
!
bRes
||
(
code
==
SbERR_NO_MEMORY
||
code
==
SbERR_PROG_TOO_LARGE
);
bAbort
=
bAbort
||
!
bRes
||
(
code
==
SbERR_NO_MEMORY
||
code
==
SbERR_PROG_TOO_LARGE
);
}
}
if
(
bErrors
)
nErrors
++
;
nErrors
++
;
}
}
...
...
basic/source/inc/scanner.hxx
Dosyayı görüntüle @
533194a6
...
@@ -56,7 +56,6 @@ protected:
...
@@ -56,7 +56,6 @@ protected:
bool
bSymbol
;
// true: symbol scanned
bool
bSymbol
;
// true: symbol scanned
bool
bNumber
;
// true: number scanned
bool
bNumber
;
// true: number scanned
bool
bSpaces
;
// true: whitespace before token
bool
bSpaces
;
// true: whitespace before token
bool
bErrors
;
// true: generate errors
bool
bAbort
;
bool
bAbort
;
bool
bHash
;
// true: # has been read in
bool
bHash
;
// true: # has been read in
bool
bError
;
// true: generate error
bool
bError
;
// true: generate error
...
...
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