mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-131238: Core header refactor (GH-131250)
* Moves most structs in pycore_ header files into pycore_structs.h and pycore_runtime_structs.h * Removes many cross-header dependencies
This commit is contained in:
parent
3ae67ba97e
commit
a1aeec61c4
57 changed files with 1481 additions and 1356 deletions
|
@ -4,9 +4,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Define this to get precise tracking of stackrefs.
|
||||
// #define Py_STACKREF_DEBUG 1
|
||||
|
||||
// Define this to get precise tracking of closed stackrefs.
|
||||
// This will use unbounded memory, as it can only grow.
|
||||
// Use this to track double closes in short-lived programs
|
||||
|
@ -60,10 +57,6 @@ extern "C" {
|
|||
|
||||
#if !defined(Py_GIL_DISABLED) && defined(Py_STACKREF_DEBUG)
|
||||
|
||||
typedef union _PyStackRef {
|
||||
uint64_t index;
|
||||
} _PyStackRef;
|
||||
|
||||
#define Py_TAG_BITS 0
|
||||
|
||||
PyAPI_FUNC(PyObject *) _Py_stackref_get_object(_PyStackRef ref);
|
||||
|
@ -203,10 +196,6 @@ PyStackRef_IsHeapSafe(_PyStackRef ref)
|
|||
|
||||
#else
|
||||
|
||||
typedef union _PyStackRef {
|
||||
uintptr_t bits;
|
||||
} _PyStackRef;
|
||||
|
||||
|
||||
#ifdef Py_GIL_DISABLED
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue