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
26fd9607
Kaydet (Commit)
26fd9607
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 problems.
üst
8694a6db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
multibytecodec.c
Modules/cjkcodecs/multibytecodec.c
+1
-1
operator.c
Modules/operator.c
+8
-2
posixmodule.c
Modules/posixmodule.c
+7
-5
No files found.
Modules/cjkcodecs/multibytecodec.c
Dosyayı görüntüle @
26fd9607
...
@@ -831,7 +831,7 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx,
...
@@ -831,7 +831,7 @@ decoder_feed_buffer(MultibyteStatefulDecoderContext *ctx,
{
{
while
(
buf
->
inbuf
<
buf
->
inbuf_end
)
{
while
(
buf
->
inbuf
<
buf
->
inbuf_end
)
{
Py_ssize_t
inleft
,
outleft
;
Py_ssize_t
inleft
,
outleft
;
in
t
r
;
Py_ssize_
t
r
;
inleft
=
(
Py_ssize_t
)(
buf
->
inbuf_end
-
buf
->
inbuf
);
inleft
=
(
Py_ssize_t
)(
buf
->
inbuf_end
-
buf
->
inbuf
);
outleft
=
(
Py_ssize_t
)(
buf
->
outbuf_end
-
buf
->
outbuf
);
outleft
=
(
Py_ssize_t
)(
buf
->
outbuf_end
-
buf
->
outbuf
);
...
...
Modules/operator.c
Dosyayı görüntüle @
26fd9607
...
@@ -48,6 +48,12 @@ used for special class methods; variants without leading and trailing\n\
...
@@ -48,6 +48,12 @@ used for special class methods; variants without leading and trailing\n\
if(-1 == (r=AOP(a1,a2))) return NULL; \
if(-1 == (r=AOP(a1,a2))) return NULL; \
return PyInt_FromLong(r); }
return PyInt_FromLong(r); }
#define spamn2(OP,AOP) static PyObject *OP(PyObject *s, PyObject *a) { \
PyObject *a1, *a2; Py_ssize_t r; \
if(! PyArg_UnpackTuple(a,#OP,2,2,&a1,&a2)) return NULL; \
if(-1 == (r=AOP(a1,a2))) return NULL; \
return PyInt_FromSsize_t(r); }
#define spami2b(OP,AOP) static PyObject *OP(PyObject *s, PyObject *a) { \
#define spami2b(OP,AOP) static PyObject *OP(PyObject *s, PyObject *a) { \
PyObject *a1, *a2; long r; \
PyObject *a1, *a2; long r; \
if(! PyArg_UnpackTuple(a,#OP,2,2,&a1,&a2)) return NULL; \
if(! PyArg_UnpackTuple(a,#OP,2,2,&a1,&a2)) return NULL; \
...
@@ -99,8 +105,8 @@ spam2(op_iconcat , PySequence_InPlaceConcat)
...
@@ -99,8 +105,8 @@ spam2(op_iconcat , PySequence_InPlaceConcat)
spamoi
(
op_irepeat
,
PySequence_InPlaceRepeat
)
spamoi
(
op_irepeat
,
PySequence_InPlaceRepeat
)
spami2b
(
op_contains
,
PySequence_Contains
)
spami2b
(
op_contains
,
PySequence_Contains
)
spami2b
(
sequenceIncludes
,
PySequence_Contains
)
spami2b
(
sequenceIncludes
,
PySequence_Contains
)
spam
i
2
(
indexOf
,
PySequence_Index
)
spam
n
2
(
indexOf
,
PySequence_Index
)
spam
i
2
(
countOf
,
PySequence_Count
)
spam
n
2
(
countOf
,
PySequence_Count
)
spami
(
isMappingType
,
PyMapping_Check
)
spami
(
isMappingType
,
PyMapping_Check
)
spam2
(
op_getitem
,
PyObject_GetItem
)
spam2
(
op_getitem
,
PyObject_GetItem
)
spam2n
(
op_delitem
,
PyObject_DelItem
)
spam2n
(
op_delitem
,
PyObject_DelItem
)
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
26fd9607
...
@@ -2440,7 +2440,7 @@ posix_execve(PyObject *self, PyObject *args)
...
@@ -2440,7 +2440,7 @@ posix_execve(PyObject *self, PyObject *args)
PyObject
*
key
,
*
val
,
*
keys
=
NULL
,
*
vals
=
NULL
;
PyObject
*
key
,
*
val
,
*
keys
=
NULL
,
*
vals
=
NULL
;
Py_ssize_t
i
,
pos
,
argc
,
envc
;
Py_ssize_t
i
,
pos
,
argc
,
envc
;
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
in
t
lastarg
=
0
;
Py_ssize_
t
lastarg
=
0
;
/* execve has three arguments: (path, argv, env), where
/* execve has three arguments: (path, argv, env), where
argv is a list or tuple of strings and env is a dictionary
argv is a list or tuple of strings and env is a dictionary
...
@@ -2581,7 +2581,8 @@ posix_spawnv(PyObject *self, PyObject *args)
...
@@ -2581,7 +2581,8 @@ posix_spawnv(PyObject *self, PyObject *args)
char
*
path
;
char
*
path
;
PyObject
*
argv
;
PyObject
*
argv
;
char
**
argvlist
;
char
**
argvlist
;
int
mode
,
i
,
argc
;
int
mode
,
i
;
Py_ssize_t
argc
;
Py_intptr_t
spawnval
;
Py_intptr_t
spawnval
;
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
...
@@ -2670,10 +2671,11 @@ posix_spawnve(PyObject *self, PyObject *args)
...
@@ -2670,10 +2671,11 @@ posix_spawnve(PyObject *self, PyObject *args)
char
**
argvlist
;
char
**
argvlist
;
char
**
envlist
;
char
**
envlist
;
PyObject
*
key
,
*
val
,
*
keys
=
NULL
,
*
vals
=
NULL
,
*
res
=
NULL
;
PyObject
*
key
,
*
val
,
*
keys
=
NULL
,
*
vals
=
NULL
,
*
res
=
NULL
;
int
mode
,
i
,
pos
,
argc
,
envc
;
int
mode
,
pos
,
envc
;
Py_ssize_t
argc
,
i
;
Py_intptr_t
spawnval
;
Py_intptr_t
spawnval
;
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
PyObject
*
(
*
getitem
)(
PyObject
*
,
Py_ssize_t
);
in
t
lastarg
=
0
;
Py_ssize_
t
lastarg
=
0
;
/* spawnve has four arguments: (mode, path, argv, env), where
/* spawnve has four arguments: (mode, path, argv, env), where
argv is a list or tuple of strings and env is a dictionary
argv is a list or tuple of strings and env is a dictionary
...
@@ -4374,7 +4376,7 @@ _PyPopenCreateProcess(char *cmdstring,
...
@@ -4374,7 +4376,7 @@ _PyPopenCreateProcess(char *cmdstring,
char
modulepath
[
_MAX_PATH
];
char
modulepath
[
_MAX_PATH
];
struct
stat
statinfo
;
struct
stat
statinfo
;
GetModuleFileName
(
NULL
,
modulepath
,
sizeof
(
modulepath
));
GetModuleFileName
(
NULL
,
modulepath
,
sizeof
(
modulepath
));
for
(
i
=
x
=
0
;
modulepath
[
i
];
i
++
)
for
(
x
=
i
=
0
;
modulepath
[
i
];
i
++
)
if
(
modulepath
[
i
]
==
SEP
)
if
(
modulepath
[
i
]
==
SEP
)
x
=
i
+
1
;
x
=
i
+
1
;
modulepath
[
x
]
=
'\0'
;
modulepath
[
x
]
=
'\0'
;
...
...
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