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
1bf494b0
Kaydet (Commit)
1bf494b0
authored
Eyl 07, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use a the bool type for a boolean variable
üst
5c4de286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
codeobject.c
Objects/codeobject.c
+4
-2
No files found.
Objects/codeobject.c
Dosyayı görüntüle @
1bf494b0
#include <stdbool.h>
#include "Python.h"
#include "code.h"
#include "structmember.h"
...
...
@@ -96,7 +98,7 @@ PyCode_New(int argcount, int kwonlyargcount,
Py_ssize_t
total_args
=
argcount
+
kwonlyargcount
+
((
flags
&
CO_VARARGS
)
!=
0
)
+
((
flags
&
CO_VARKEYWORDS
)
!=
0
);
Py_ssize_t
alloc_size
=
sizeof
(
unsigned
char
)
*
n_cellvars
;
int
used_cell2arg
=
0
;
bool
used_cell2arg
=
false
;
cell2arg
=
PyMem_MALLOC
(
alloc_size
);
if
(
cell2arg
==
NULL
)
return
NULL
;
...
...
@@ -109,7 +111,7 @@ PyCode_New(int argcount, int kwonlyargcount,
PyObject
*
arg
=
PyTuple_GET_ITEM
(
varnames
,
j
);
if
(
!
PyUnicode_Compare
(
cell
,
arg
))
{
cell2arg
[
i
]
=
j
;
used_cell2arg
=
1
;
used_cell2arg
=
true
;
break
;
}
}
...
...
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