Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
ciksemel
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ç
SulinOS
ciksemel
Commits
cb49cf72
Kaydet (Commit)
cb49cf72
authored
Tem 03, 2019
tarafından
Your Name
Kaydeden (comit)
Suleyman Poyraz
Eyl 07, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
if-elseif-else yapılarına el atıldı
üst
a529c74d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
20 deletions
+10
-20
setup.py
setup.py
+1
-2
iksemel.c
src/iksemel.c
+9
-18
No files found.
setup.py
Dosyayı görüntüle @
cb49cf72
...
...
@@ -63,8 +63,7 @@ elif 'test' in sys.argv:
class
Install
(
install
):
def
finalize_options
(
self
):
# NOTE: for Pardus distribution
if
os
.
path
.
exists
(
"/etc/pardus-release"
):
if
os
.
path
.
exists
(
"/etc/sulin-release"
):
self
.
install_platlib
=
'$base/lib/sulin'
self
.
install_purelib
=
'$base/lib/sulin'
install
.
finalize_options
(
self
)
...
...
src/iksemel.c
Dosyayı görüntüle @
cb49cf72
...
...
@@ -660,8 +660,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs
->
context
=
C_ENTITY
;
prs
->
entpos
=
0
;
break
;
}
if
(
'<'
==
c
)
{
}
else
if
(
'<'
==
c
)
{
if
(
old
<
pos
&&
prs
->
cdataHook
)
{
err
=
prs
->
cdataHook
(
prs
->
user_data
,
&
buf
[
old
],
pos
-
old
);
if
(
IKS_OK
!=
err
)
return
err
;
...
...
@@ -678,12 +677,10 @@ sax_core (iksparser *prs, char *buf, int len)
if
(
'/'
==
c
)
{
prs
->
tagtype
=
IKS_CLOSE
;
break
;
}
if
(
'?'
==
c
)
{
}
else
if
(
'?'
==
c
)
{
prs
->
context
=
C_PI
;
break
;
}
if
(
'!'
==
c
)
{
}
else
if
(
'!'
==
c
)
{
prs
->
context
=
C_MARKUP
;
break
;
}
...
...
@@ -702,8 +699,7 @@ sax_core (iksparser *prs, char *buf, int len)
stack_old
=
-
1
;
STACK_PUSH_END
;
break
;
}
if
(
'/'
==
c
)
{
}
else
if
(
'/'
==
c
)
{
if
(
IKS_CLOSE
==
prs
->
tagtype
)
return
IKS_BADXML
;
prs
->
tagtype
=
IKS_SINGLE
;
prs
->
context
=
C_TAG_END
;
...
...
@@ -711,8 +707,7 @@ sax_core (iksparser *prs, char *buf, int len)
stack_old
=
-
1
;
STACK_PUSH_END
;
break
;
}
if
(
'>'
==
c
)
{
}
else
if
(
'>'
==
c
)
{
prs
->
context
=
C_TAG_END
;
if
(
stack_old
!=
-
1
)
STACK_PUSH
(
buf
+
stack_old
,
pos
-
stack_old
);
stack_old
=
-
1
;
...
...
@@ -744,8 +739,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs
->
tagtype
=
IKS_SINGLE
;
prs
->
context
=
C_TAG_END
;
break
;
}
if
(
'>'
==
c
)
{
}
else
if
(
'>'
==
c
)
{
prs
->
context
=
C_TAG_END
;
re
=
1
;
break
;
...
...
@@ -791,8 +785,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs
->
atts
[
prs
->
attcur
]
=
NULL
;
prs
->
context
=
C_TAG_END
;
break
;
}
if
(
'>'
==
c
)
{
}
else
if
(
'>'
==
c
)
{
prs
->
atts
[
prs
->
attcur
]
=
NULL
;
prs
->
context
=
C_TAG_END
;
re
=
1
;
...
...
@@ -807,8 +800,7 @@ sax_core (iksparser *prs, char *buf, int len)
if
(
'\''
==
c
)
{
prs
->
context
=
C_VALUE_APOS
;
break
;
}
if
(
'"'
==
c
)
{
}
else
if
(
'"'
==
c
)
{
prs
->
context
=
C_VALUE_QUOT
;
break
;
}
...
...
@@ -899,8 +891,7 @@ sax_core (iksparser *prs, char *buf, int len)
if
(
'['
==
c
)
{
prs
->
context
=
C_SECT
;
break
;
}
if
(
'-'
==
c
)
{
}
else
if
(
'-'
==
c
)
{
prs
->
context
=
C_COMMENT
;
break
;
}
...
...
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