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
c7074386
Kaydet (Commit)
c7074386
authored
Haz 12, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some Py_ssize_t issues
üst
09a29fae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
_elementtree.c
Modules/_elementtree.c
+6
-5
No files found.
Modules/_elementtree.c
Dosyayı görüntüle @
c7074386
...
@@ -717,7 +717,8 @@ element_deepcopy(ElementObject* self, PyObject* args)
...
@@ -717,7 +717,8 @@ element_deepcopy(ElementObject* self, PyObject* args)
LOCAL
(
int
)
LOCAL
(
int
)
checkpath
(
PyObject
*
tag
)
checkpath
(
PyObject
*
tag
)
{
{
int
i
,
check
=
1
;
Py_ssize_t
i
;
int
check
=
1
;
/* check if a tag contains an xpath character */
/* check if a tag contains an xpath character */
...
@@ -1180,7 +1181,7 @@ static int
...
@@ -1180,7 +1181,7 @@ static int
element_setslice
(
PyObject
*
self_
,
Py_ssize_t
start
,
Py_ssize_t
end
,
PyObject
*
item
)
element_setslice
(
PyObject
*
self_
,
Py_ssize_t
start
,
Py_ssize_t
end
,
PyObject
*
item
)
{
{
ElementObject
*
self
=
(
ElementObject
*
)
self_
;
ElementObject
*
self
=
(
ElementObject
*
)
self_
;
in
t
i
,
new
,
old
;
Py_ssize_
t
i
,
new
,
old
;
PyObject
*
recycle
=
NULL
;
PyObject
*
recycle
=
NULL
;
if
(
!
self
->
extra
)
if
(
!
self
->
extra
)
...
@@ -1426,7 +1427,7 @@ typedef struct {
...
@@ -1426,7 +1427,7 @@ typedef struct {
PyObject
*
data
;
/* data collector (string or list), or NULL */
PyObject
*
data
;
/* data collector (string or list), or NULL */
PyObject
*
stack
;
/* element stack */
PyObject
*
stack
;
/* element stack */
in
t
index
;
/* current stack size (0=empty) */
Py_ssize_
t
index
;
/* current stack size (0=empty) */
/* element tracing */
/* element tracing */
PyObject
*
events
;
/* list of events, or NULL if not collecting */
PyObject
*
events
;
/* list of events, or NULL if not collecting */
...
@@ -1606,7 +1607,7 @@ treebuilder_handle_data(TreeBuilderObject* self, PyObject* data)
...
@@ -1606,7 +1607,7 @@ treebuilder_handle_data(TreeBuilderObject* self, PyObject* data)
PyString_CheckExact
(
data
)
&&
PyString_GET_SIZE
(
data
)
==
1
)
{
PyString_CheckExact
(
data
)
&&
PyString_GET_SIZE
(
data
)
==
1
)
{
/* expat often generates single character data sections; handle
/* expat often generates single character data sections; handle
the most common case by resizing the existing string... */
the most common case by resizing the existing string... */
in
t
size
=
PyString_GET_SIZE
(
self
->
data
);
Py_ssize_
t
size
=
PyString_GET_SIZE
(
self
->
data
);
if
(
_PyString_Resize
(
&
self
->
data
,
size
+
1
)
<
0
)
if
(
_PyString_Resize
(
&
self
->
data
,
size
+
1
)
<
0
)
return
NULL
;
return
NULL
;
PyString_AS_STRING
(
self
->
data
)[
size
]
=
PyString_AS_STRING
(
data
)[
0
];
PyString_AS_STRING
(
self
->
data
)[
size
]
=
PyString_AS_STRING
(
data
)[
0
];
...
@@ -2456,7 +2457,7 @@ xmlparser_setevents(XMLParserObject* self, PyObject* args)
...
@@ -2456,7 +2457,7 @@ xmlparser_setevents(XMLParserObject* self, PyObject* args)
{
{
/* activate element event reporting */
/* activate element event reporting */
in
t
i
;
Py_ssize_
t
i
;
TreeBuilderObject
*
target
;
TreeBuilderObject
*
target
;
PyObject
*
events
;
/* event collector */
PyObject
*
events
;
/* event collector */
...
...
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