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
f07c9a1e
Kaydet (Commit)
f07c9a1e
authored
Tem 03, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
this is expressed better as a for loop
üst
9bfd0dee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
genobject.c
Objects/genobject.c
+2
-4
No files found.
Objects/genobject.c
Dosyayı görüntüle @
f07c9a1e
...
@@ -395,15 +395,13 @@ PyGen_NeedsFinalizing(PyGenObject *gen)
...
@@ -395,15 +395,13 @@ PyGen_NeedsFinalizing(PyGenObject *gen)
int
i
;
int
i
;
PyFrameObject
*
f
=
gen
->
gi_frame
;
PyFrameObject
*
f
=
gen
->
gi_frame
;
if
(
f
==
NULL
||
f
->
f_stacktop
==
NULL
||
f
->
f_iblock
<=
0
)
if
(
f
==
NULL
||
f
->
f_stacktop
==
NULL
)
return
0
;
/* no frame or empty blockstack == no finalization */
return
0
;
/* no frame or empty blockstack == no finalization */
/* Any block type besides a loop requires cleanup. */
/* Any block type besides a loop requires cleanup. */
i
=
f
->
f_iblock
;
for
(
i
=
0
;
i
<
f
->
f_iblock
;
i
++
)
while
(
--
i
>=
0
)
{
if
(
f
->
f_blockstack
[
i
].
b_type
!=
SETUP_LOOP
)
if
(
f
->
f_blockstack
[
i
].
b_type
!=
SETUP_LOOP
)
return
1
;
return
1
;
}
/* No blocks except loops, it's safe to skip finalization. */
/* No blocks except loops, it's safe to skip finalization. */
return
0
;
return
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