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
1b190b46
Kaydet (Commit)
1b190b46
authored
Tem 09, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ANSI-fication of the sources.
üst
1f0968c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
+10
-27
frameobject.c
Objects/frameobject.c
+10
-27
No files found.
Objects/frameobject.c
Dosyayı görüntüle @
1b190b46
...
...
@@ -36,9 +36,7 @@ static struct memberlist frame_memberlist[] = {
};
static
PyObject
*
frame_getattr
(
f
,
name
)
PyFrameObject
*
f
;
char
*
name
;
frame_getattr
(
PyFrameObject
*
f
,
char
*
name
)
{
if
(
strcmp
(
name
,
"f_locals"
)
==
0
)
PyFrame_FastToLocals
(
f
);
...
...
@@ -46,10 +44,7 @@ frame_getattr(f, name)
}
static
int
frame_setattr
(
f
,
name
,
value
)
PyFrameObject
*
f
;
char
*
name
;
PyObject
*
value
;
frame_setattr
(
PyFrameObject
*
f
,
char
*
name
,
PyObject
*
value
)
{
return
PyMember_Set
((
char
*
)
f
,
frame_memberlist
,
name
,
value
);
}
...
...
@@ -76,8 +71,7 @@ frame_setattr(f, name, value)
static
PyFrameObject
*
free_list
=
NULL
;
static
void
frame_dealloc
(
f
)
PyFrameObject
*
f
;
frame_dealloc
(
PyFrameObject
*
f
)
{
int
i
;
PyObject
**
fastlocals
;
...
...
@@ -121,11 +115,8 @@ PyTypeObject PyFrame_Type = {
};
PyFrameObject
*
PyFrame_New
(
tstate
,
code
,
globals
,
locals
)
PyThreadState
*
tstate
;
PyCodeObject
*
code
;
PyObject
*
globals
;
PyObject
*
locals
;
PyFrame_New
(
PyThreadState
*
tstate
,
PyCodeObject
*
code
,
PyObject
*
globals
,
PyObject
*
locals
)
{
PyFrameObject
*
back
=
tstate
->
frame
;
static
PyObject
*
builtin_object
;
...
...
@@ -238,11 +229,7 @@ PyFrame_New(tstate, code, globals, locals)
/* Block management */
void
PyFrame_BlockSetup
(
f
,
type
,
handler
,
level
)
PyFrameObject
*
f
;
int
type
;
int
handler
;
int
level
;
PyFrame_BlockSetup
(
PyFrameObject
*
f
,
int
type
,
int
handler
,
int
level
)
{
PyTryBlock
*
b
;
if
(
f
->
f_iblock
>=
CO_MAXBLOCKS
)
...
...
@@ -254,8 +241,7 @@ PyFrame_BlockSetup(f, type, handler, level)
}
PyTryBlock
*
PyFrame_BlockPop
(
f
)
PyFrameObject
*
f
;
PyFrame_BlockPop
(
PyFrameObject
*
f
)
{
PyTryBlock
*
b
;
if
(
f
->
f_iblock
<=
0
)
...
...
@@ -267,8 +253,7 @@ PyFrame_BlockPop(f)
/* Convert between "fast" version of locals and dictionary version */
void
PyFrame_FastToLocals
(
f
)
PyFrameObject
*
f
;
PyFrame_FastToLocals
(
PyFrameObject
*
f
)
{
/* Merge fast locals into f->f_locals */
PyObject
*
locals
,
*
map
;
...
...
@@ -312,9 +297,7 @@ PyFrame_FastToLocals(f)
}
void
PyFrame_LocalsToFast
(
f
,
clear
)
PyFrameObject
*
f
;
int
clear
;
PyFrame_LocalsToFast
(
PyFrameObject
*
f
,
int
clear
)
{
/* Merge f->f_locals into fast locals */
PyObject
*
locals
,
*
map
;
...
...
@@ -349,7 +332,7 @@ PyFrame_LocalsToFast(f, clear)
/* Clear out the free list */
void
PyFrame_Fini
()
PyFrame_Fini
(
void
)
{
while
(
free_list
!=
NULL
)
{
PyFrameObject
*
f
=
free_list
;
...
...
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