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
f5df46d7
Kaydet (Commit)
f5df46d7
authored
Tem 19, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a low-level API to access interpreters, for David Beazley.
SF patch #436376.
üst
130fb175
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
pystate.h
Include/pystate.h
+7
-0
pystate.c
Python/pystate.c
+25
-0
No files found.
Include/pystate.h
Dosyayı görüntüle @
f5df46d7
...
@@ -100,6 +100,13 @@ extern DL_IMPORT(PyThreadState *) _PyThreadState_Current;
...
@@ -100,6 +100,13 @@ extern DL_IMPORT(PyThreadState *) _PyThreadState_Current;
#define PyThreadState_GET() (_PyThreadState_Current)
#define PyThreadState_GET() (_PyThreadState_Current)
#endif
#endif
/* Routines for advanced debuggers, requested by David Beazley.
Don't use unless you know what you are doing! */
DL_IMPORT
(
PyInterpreterState
*
)
PyInterpreterState_Head
(
void
);
DL_IMPORT
(
PyInterpreterState
*
)
PyInterpreterState_Next
(
PyInterpreterState
*
);
DL_IMPORT
(
PyThreadState
*
)
PyInterpreterState_ThreadHead
(
PyInterpreterState
*
);
DL_IMPORT
(
PyThreadState
*
)
PyThreadState_Next
(
PyThreadState
*
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
Python/pystate.c
Dosyayı görüntüle @
f5df46d7
...
@@ -264,3 +264,28 @@ PyThreadState_GetDict(void)
...
@@ -264,3 +264,28 @@ PyThreadState_GetDict(void)
_PyThreadState_Current
->
dict
=
PyDict_New
();
_PyThreadState_Current
->
dict
=
PyDict_New
();
return
_PyThreadState_Current
->
dict
;
return
_PyThreadState_Current
->
dict
;
}
}
/* Routines for advanced debuggers, requested by David Beazley.
Don't use unless you know what you are doing! */
PyInterpreterState
*
PyInterpreterState_Head
(
void
)
{
return
interp_head
;
}
PyInterpreterState
*
PyInterpreterState_Next
(
PyInterpreterState
*
interp
)
{
return
interp
->
next
;
}
PyThreadState
*
PyInterpreterState_ThreadHead
(
PyInterpreterState
*
interp
)
{
return
interp
->
tstate_head
;
}
PyThreadState
*
PyThreadState_Next
(
PyThreadState
*
tstate
)
{
return
tstate
->
next
;
}
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