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
7c75bf20
Kaydet (Commit)
7c75bf20
authored
Tem 01, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bring this back into sync with PyXML revision 1.58.
üst
19b74c78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
pyexpat.c
Modules/pyexpat.c
+10
-3
No files found.
Modules/pyexpat.c
Dosyayı görüntüle @
7c75bf20
#include "Python.h"
#include <ctype.h>
#ifdef HAVE_PYMEMCOMPAT_H
#include "pymemcompat.h"
#endif
#include "compile.h"
#include "frameobject.h"
#include "expat.h"
#ifndef PyDoc_STRVAR
#define PyDoc_STR(str) (str)
#define PyDoc_VAR(name) static char name[]
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
#endif
...
...
@@ -1160,14 +1166,15 @@ newxmlparseobject(char *encoding, char *namespace_separator, PyObject *intern)
}
XML_SetUserData
(
self
->
itself
,
(
void
*
)
self
);
#ifdef Py_USING_UNICODE
XML_SetUnknownEncodingHandler
(
self
->
itself
,
(
XML_UnknownEncodingHandler
)
PyUnknownEncodingHandler
,
NULL
);
XML_SetUnknownEncodingHandler
(
self
->
itself
,
(
XML_UnknownEncodingHandler
)
PyUnknownEncodingHandler
,
NULL
);
#endif
for
(
i
=
0
;
handler_info
[
i
].
name
!=
NULL
;
i
++
)
/* do nothing */
;
self
->
handlers
=
malloc
(
sizeof
(
PyObject
*
)
*
i
);
if
(
!
self
->
handlers
){
self
->
handlers
=
malloc
(
sizeof
(
PyObject
*
)
*
i
);
if
(
!
self
->
handlers
)
{
Py_DECREF
(
self
);
return
PyErr_NoMemory
();
}
...
...
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