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
6685128b
Kaydet (Commit)
6685128b
authored
Nis 22, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix more ssize_t issues.
üst
26fd9607
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
_codecsmodule.c
Modules/_codecsmodule.c
+3
-3
_hotshot.c
Modules/_hotshot.c
+1
-1
classobject.c
Objects/classobject.c
+5
-5
ast.c
Python/ast.c
+1
-1
ceval.c
Python/ceval.c
+2
-2
codecs.c
Python/codecs.c
+1
-1
No files found.
Modules/_codecsmodule.c
Dosyayı görüntüle @
6685128b
...
@@ -169,7 +169,7 @@ codec_decode(PyObject *self, PyObject *args)
...
@@ -169,7 +169,7 @@ codec_decode(PyObject *self, PyObject *args)
static
static
PyObject
*
codec_tuple
(
PyObject
*
unicode
,
PyObject
*
codec_tuple
(
PyObject
*
unicode
,
in
t
len
)
Py_ssize_
t
len
)
{
{
PyObject
*
v
,
*
w
;
PyObject
*
v
,
*
w
;
...
@@ -181,7 +181,7 @@ PyObject *codec_tuple(PyObject *unicode,
...
@@ -181,7 +181,7 @@ PyObject *codec_tuple(PyObject *unicode,
return
NULL
;
return
NULL
;
}
}
PyTuple_SET_ITEM
(
v
,
0
,
unicode
);
PyTuple_SET_ITEM
(
v
,
0
,
unicode
);
w
=
PyInt_From
Long
(
len
);
w
=
PyInt_From
Ssize_t
(
len
);
if
(
w
==
NULL
)
{
if
(
w
==
NULL
)
{
Py_DECREF
(
v
);
Py_DECREF
(
v
);
return
NULL
;
return
NULL
;
...
@@ -213,7 +213,7 @@ escape_encode(PyObject *self,
...
@@ -213,7 +213,7 @@ escape_encode(PyObject *self,
PyObject
*
str
;
PyObject
*
str
;
const
char
*
errors
=
NULL
;
const
char
*
errors
=
NULL
;
char
*
buf
;
char
*
buf
;
in
t
len
;
Py_ssize_
t
len
;
if
(
!
PyArg_ParseTuple
(
args
,
"O!|z:escape_encode"
,
if
(
!
PyArg_ParseTuple
(
args
,
"O!|z:escape_encode"
,
&
PyString_Type
,
&
str
,
&
errors
))
&
PyString_Type
,
&
str
,
&
errors
))
...
...
Modules/_hotshot.c
Dosyayı görüntüle @
6685128b
...
@@ -1420,7 +1420,7 @@ write_header(ProfilerObject *self)
...
@@ -1420,7 +1420,7 @@ write_header(ProfilerObject *self)
char
*
buffer
;
char
*
buffer
;
char
cwdbuffer
[
PATH_MAX
];
char
cwdbuffer
[
PATH_MAX
];
PyObject
*
temp
;
PyObject
*
temp
;
in
t
i
,
len
;
Py_ssize_
t
i
,
len
;
buffer
=
get_version_string
();
buffer
=
get_version_string
();
if
(
buffer
==
NULL
)
{
if
(
buffer
==
NULL
)
{
...
...
Objects/classobject.c
Dosyayı görüntüle @
6685128b
...
@@ -320,7 +320,7 @@ class_setattr(PyClassObject *op, PyObject *name, PyObject *v)
...
@@ -320,7 +320,7 @@ class_setattr(PyClassObject *op, PyObject *name, PyObject *v)
}
}
sname
=
PyString_AsString
(
name
);
sname
=
PyString_AsString
(
name
);
if
(
sname
[
0
]
==
'_'
&&
sname
[
1
]
==
'_'
)
{
if
(
sname
[
0
]
==
'_'
&&
sname
[
1
]
==
'_'
)
{
in
t
n
=
PyString_Size
(
name
);
Py_ssize_
t
n
=
PyString_Size
(
name
);
if
(
sname
[
n
-
1
]
==
'_'
&&
sname
[
n
-
2
]
==
'_'
)
{
if
(
sname
[
n
-
1
]
==
'_'
&&
sname
[
n
-
2
]
==
'_'
)
{
char
*
err
=
NULL
;
char
*
err
=
NULL
;
if
(
strcmp
(
sname
,
"__dict__"
)
==
0
)
if
(
strcmp
(
sname
,
"__dict__"
)
==
0
)
...
@@ -380,7 +380,7 @@ class_str(PyClassObject *op)
...
@@ -380,7 +380,7 @@ class_str(PyClassObject *op)
PyObject
*
mod
=
PyDict_GetItemString
(
op
->
cl_dict
,
"__module__"
);
PyObject
*
mod
=
PyDict_GetItemString
(
op
->
cl_dict
,
"__module__"
);
PyObject
*
name
=
op
->
cl_name
;
PyObject
*
name
=
op
->
cl_name
;
PyObject
*
res
;
PyObject
*
res
;
in
t
m
,
n
;
Py_ssize_
t
m
,
n
;
if
(
name
==
NULL
||
!
PyString_Check
(
name
))
if
(
name
==
NULL
||
!
PyString_Check
(
name
))
return
class_repr
(
op
);
return
class_repr
(
op
);
...
@@ -638,7 +638,7 @@ instance_dealloc(register PyInstanceObject *inst)
...
@@ -638,7 +638,7 @@ instance_dealloc(register PyInstanceObject *inst)
PyObject_GC_Del
(
inst
);
PyObject_GC_Del
(
inst
);
}
}
else
{
else
{
in
t
refcnt
=
inst
->
ob_refcnt
;
Py_ssize_
t
refcnt
=
inst
->
ob_refcnt
;
/* __del__ resurrected it! Make it look like the original
/* __del__ resurrected it! Make it look like the original
* Py_DECREF never happened.
* Py_DECREF never happened.
*/
*/
...
@@ -778,7 +778,7 @@ instance_setattr(PyInstanceObject *inst, PyObject *name, PyObject *v)
...
@@ -778,7 +778,7 @@ instance_setattr(PyInstanceObject *inst, PyObject *name, PyObject *v)
PyObject
*
func
,
*
args
,
*
res
,
*
tmp
;
PyObject
*
func
,
*
args
,
*
res
,
*
tmp
;
char
*
sname
=
PyString_AsString
(
name
);
char
*
sname
=
PyString_AsString
(
name
);
if
(
sname
[
0
]
==
'_'
&&
sname
[
1
]
==
'_'
)
{
if
(
sname
[
0
]
==
'_'
&&
sname
[
1
]
==
'_'
)
{
in
t
n
=
PyString_Size
(
name
);
Py_ssize_
t
n
=
PyString_Size
(
name
);
if
(
sname
[
n
-
1
]
==
'_'
&&
sname
[
n
-
2
]
==
'_'
)
{
if
(
sname
[
n
-
1
]
==
'_'
&&
sname
[
n
-
2
]
==
'_'
)
{
if
(
strcmp
(
sname
,
"__dict__"
)
==
0
)
{
if
(
strcmp
(
sname
,
"__dict__"
)
==
0
)
{
if
(
PyEval_GetRestricted
())
{
if
(
PyEval_GetRestricted
())
{
...
@@ -1263,7 +1263,7 @@ instance_contains(PyInstanceObject *inst, PyObject *member)
...
@@ -1263,7 +1263,7 @@ instance_contains(PyInstanceObject *inst, PyObject *member)
*/
*/
PyErr_Clear
();
PyErr_Clear
();
return
_PySequence_IterSearch
((
PyObject
*
)
inst
,
member
,
return
_PySequence_IterSearch
((
PyObject
*
)
inst
,
member
,
PY_ITERSEARCH_CONTAINS
);
PY_ITERSEARCH_CONTAINS
)
>
0
;
}
}
else
else
return
-
1
;
return
-
1
;
...
...
Python/ast.c
Dosyayı görüntüle @
6685128b
...
@@ -3034,7 +3034,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
...
@@ -3034,7 +3034,7 @@ decode_unicode(const char *s, size_t len, int rawmode, const char *encoding)
if
(
*
s
&
0x80
)
{
/* XXX inefficient */
if
(
*
s
&
0x80
)
{
/* XXX inefficient */
PyObject
*
w
;
PyObject
*
w
;
char
*
r
;
char
*
r
;
in
t
rn
,
i
;
Py_ssize_
t
rn
,
i
;
w
=
decode_utf8
(
&
s
,
end
,
"utf-16-be"
);
w
=
decode_utf8
(
&
s
,
end
,
"utf-16-be"
);
if
(
w
==
NULL
)
{
if
(
w
==
NULL
)
{
Py_DECREF
(
u
);
Py_DECREF
(
u
);
...
...
Python/ceval.c
Dosyayı görüntüle @
6685128b
...
@@ -1560,7 +1560,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
...
@@ -1560,7 +1560,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
/* XXX move into writeobject() ? */
/* XXX move into writeobject() ? */
if
(
PyString_Check
(
v
))
{
if
(
PyString_Check
(
v
))
{
char
*
s
=
PyString_AS_STRING
(
v
);
char
*
s
=
PyString_AS_STRING
(
v
);
in
t
len
=
PyString_GET_SIZE
(
v
);
Py_ssize_
t
len
=
PyString_GET_SIZE
(
v
);
if
(
len
==
0
||
if
(
len
==
0
||
!
isspace
(
Py_CHARMASK
(
s
[
len
-
1
]))
||
!
isspace
(
Py_CHARMASK
(
s
[
len
-
1
]))
||
s
[
len
-
1
]
==
' '
)
s
[
len
-
1
]
==
' '
)
...
@@ -1569,7 +1569,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
...
@@ -1569,7 +1569,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
#ifdef Py_USING_UNICODE
#ifdef Py_USING_UNICODE
else
if
(
PyUnicode_Check
(
v
))
{
else
if
(
PyUnicode_Check
(
v
))
{
Py_UNICODE
*
s
=
PyUnicode_AS_UNICODE
(
v
);
Py_UNICODE
*
s
=
PyUnicode_AS_UNICODE
(
v
);
in
t
len
=
PyUnicode_GET_SIZE
(
v
);
Py_ssize_
t
len
=
PyUnicode_GET_SIZE
(
v
);
if
(
len
==
0
||
if
(
len
==
0
||
!
Py_UNICODE_ISSPACE
(
s
[
len
-
1
])
||
!
Py_UNICODE_ISSPACE
(
s
[
len
-
1
])
||
s
[
len
-
1
]
==
' '
)
s
[
len
-
1
]
==
' '
)
...
...
Python/codecs.c
Dosyayı görüntüle @
6685128b
...
@@ -95,7 +95,7 @@ PyObject *_PyCodec_Lookup(const char *encoding)
...
@@ -95,7 +95,7 @@ PyObject *_PyCodec_Lookup(const char *encoding)
{
{
PyInterpreterState
*
interp
;
PyInterpreterState
*
interp
;
PyObject
*
result
,
*
args
=
NULL
,
*
v
;
PyObject
*
result
,
*
args
=
NULL
,
*
v
;
in
t
i
,
len
;
Py_ssize_
t
i
,
len
;
if
(
encoding
==
NULL
)
{
if
(
encoding
==
NULL
)
{
PyErr_BadArgument
();
PyErr_BadArgument
();
...
...
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