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
e1fee5ae
Kaydet (Commit)
e1fee5ae
authored
Mar 13, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
TableRef: scan whatever (translated) item name up to the next ']' closer
Change-Id: Ifd18e4dd369a0fbe98da7a7b972c012f5269af3e
üst
040cf119
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
compiler.cxx
sc/source/core/tool/compiler.cxx
+25
-1
No files found.
sc/source/core/tool/compiler.cxx
Dosyayı görüntüle @
e1fee5ae
...
@@ -89,6 +89,7 @@ enum ScanState
...
@@ -89,6 +89,7 @@ enum ScanState
ssGetReference
,
ssGetReference
,
ssSkipReference
,
ssSkipReference
,
ssGetErrorConstant
,
ssGetErrorConstant
,
ssGetTableRefItem
,
ssStop
ssStop
};
};
...
@@ -1985,7 +1986,10 @@ Label_MaskStateMachine:
...
@@ -1985,7 +1986,10 @@ Label_MaskStateMachine:
else
if
(
nMask
&
SC_COMPILER_C_CHAR_ERRCONST
)
else
if
(
nMask
&
SC_COMPILER_C_CHAR_ERRCONST
)
{
{
*
pSym
++
=
c
;
*
pSym
++
=
c
;
eState
=
ssGetErrorConstant
;
if
(
!
maTableRefs
.
empty
()
&&
maTableRefs
.
back
().
mnLevel
)
eState
=
ssGetTableRefItem
;
else
eState
=
ssGetErrorConstant
;
}
}
else
if
(
nMask
&
SC_COMPILER_C_CHAR_DONTCARE
)
else
if
(
nMask
&
SC_COMPILER_C_CHAR_DONTCARE
)
{
{
...
@@ -2188,6 +2192,26 @@ Label_MaskStateMachine:
...
@@ -2188,6 +2192,26 @@ Label_MaskStateMachine:
}
}
}
}
break
;
break
;
case
ssGetTableRefItem
:
{
// Scan whatever up to the next ']' closer.
if
(
c
!=
']'
)
{
if
(
pSym
==
&
cSymbol
[
MAXSTRLEN
-
1
]
)
{
SetError
(
errStringOverflow
);
eState
=
ssStop
;
}
else
*
pSym
++
=
c
;
}
else
{
--
pSrc
;
eState
=
ssStop
;
}
}
break
;
case
ssGetReference
:
case
ssGetReference
:
if
(
pSym
==
&
cSymbol
[
MAXSTRLEN
-
1
]
)
if
(
pSym
==
&
cSymbol
[
MAXSTRLEN
-
1
]
)
{
{
...
...
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