Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
bb66a200
Kaydet (Commit)
bb66a200
authored
Mar 01, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Wrap some long lines, use only C89 /* */ comments, and add spaces around
some operators (style guide conformance).
üst
4a2261ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
pyexpat.c
Modules/pyexpat.c
+15
-14
No files found.
Modules/pyexpat.c
Dosyayı görüntüle @
bb66a200
...
...
@@ -1072,16 +1072,16 @@ static struct PyMethodDef xmlparse_methods[] = {
*/
static
char
template_buffer
[
257
];
PyObject
*
template_string
=
NULL
;
PyObject
*
template_string
=
NULL
;
static
void
init_template_buffer
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
template_buffer
[
i
]
=
i
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
template_buffer
[
i
]
=
i
;
}
template_buffer
[
256
]
=
0
;
template_buffer
[
256
]
=
0
;
}
int
...
...
@@ -1089,23 +1089,24 @@ PyUnknownEncodingHandler(void *encodingHandlerData,
const
XML_Char
*
name
,
XML_Encoding
*
info
)
{
PyUnicodeObject
*
_u_string
=
NULL
;
int
result
=
0
;
PyUnicodeObject
*
_u_string
=
NULL
;
int
result
=
0
;
int
i
;
_u_string
=
(
PyUnicodeObject
*
)
PyUnicode_Decode
(
template_buffer
,
256
,
name
,
"replace"
);
// Yes, supports only 8bit encodings
/* Yes, supports only 8bit encodings */
_u_string
=
(
PyUnicodeObject
*
)
PyUnicode_Decode
(
template_buffer
,
256
,
name
,
"replace"
);
if
(
_u_string
==
NULL
)
{
if
(
_u_string
==
NULL
)
return
result
;
}
for
(
i
=
0
;
i
<
256
;
i
++
)
{
Py_UNICODE
c
=
_u_string
->
str
[
i
]
;
// Stupid to access directly, but fast
if
(
c
==
Py_UNICODE_REPLACEMENT_CHARACTER
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
{
/* Stupid to access directly, but fast */
Py_UNICODE
c
=
_u_string
->
str
[
i
];
if
(
c
==
Py_UNICODE_REPLACEMENT_CHARACTER
)
info
->
map
[
i
]
=
-
1
;
}
else
{
else
info
->
map
[
i
]
=
c
;
}
}
info
->
data
=
NULL
;
...
...
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