X7ROOT File Manager
Current Path:
/opt/alt/python313/include/python3.13/internal
opt
/
alt
/
python313
/
include
/
python3.13
/
internal
/
ðŸ“
..
ðŸ“
mimalloc
📄
pycore_abstract.h
(1.87 KB)
📄
pycore_asdl.h
(2.96 KB)
📄
pycore_ast.h
(30.78 KB)
📄
pycore_ast_state.h
(6.62 KB)
📄
pycore_atexit.h
(1.4 KB)
📄
pycore_backoff.h
(3.81 KB)
📄
pycore_bitutils.h
(5.88 KB)
📄
pycore_blocks_output_buffer.h
(8.57 KB)
📄
pycore_brc.h
(2.05 KB)
📄
pycore_bytes_methods.h
(3.84 KB)
📄
pycore_bytesobject.h
(4.75 KB)
📄
pycore_call.h
(5.99 KB)
📄
pycore_capsule.h
(397 B)
📄
pycore_cell.h
(1.03 KB)
📄
pycore_ceval.h
(10.9 KB)
📄
pycore_ceval_state.h
(3.83 KB)
📄
pycore_code.h
(19.4 KB)
📄
pycore_codecs.h
(2.41 KB)
📄
pycore_compile.h
(3.66 KB)
📄
pycore_complexobject.h
(588 B)
📄
pycore_condvar.h
(2.64 KB)
📄
pycore_context.h
(1.15 KB)
📄
pycore_critical_section.h
(7.78 KB)
📄
pycore_crossinterp.h
(11.84 KB)
📄
pycore_descrobject.h
(543 B)
📄
pycore_dict.h
(11.98 KB)
📄
pycore_dict_state.h
(732 B)
📄
pycore_dtoa.h
(1.69 KB)
📄
pycore_emscripten_signal.h
(685 B)
📄
pycore_emscripten_trampoline.h
(3.11 KB)
📄
pycore_exceptions.h
(900 B)
📄
pycore_faulthandler.h
(2.19 KB)
📄
pycore_fileutils.h
(9.25 KB)
📄
pycore_fileutils_windows.h
(2.65 KB)
📄
pycore_floatobject.h
(1.46 KB)
📄
pycore_flowgraph.h
(1.45 KB)
📄
pycore_format.h
(480 B)
📄
pycore_frame.h
(10.62 KB)
📄
pycore_freelist.h
(4.7 KB)
📄
pycore_function.h
(1.5 KB)
📄
pycore_gc.h
(12.66 KB)
📄
pycore_genobject.h
(859 B)
📄
pycore_getopt.h
(490 B)
📄
pycore_gil.h
(2.14 KB)
📄
pycore_global_objects.h
(3.02 KB)
📄
pycore_global_objects_fini_generated.h
(115.04 KB)
📄
pycore_global_strings.h
(26.08 KB)
📄
pycore_hamt.h
(3.65 KB)
📄
pycore_hashtable.h
(4.26 KB)
📄
pycore_identifier.h
(515 B)
📄
pycore_import.h
(7.55 KB)
📄
pycore_importdl.h
(3.96 KB)
📄
pycore_initconfig.h
(6.23 KB)
📄
pycore_instruction_sequence.h
(2.11 KB)
📄
pycore_instruments.h
(2.28 KB)
📄
pycore_interp.h
(14.71 KB)
📄
pycore_intrinsics.h
(1.71 KB)
📄
pycore_jit.h
(527 B)
📄
pycore_list.h
(1.82 KB)
📄
pycore_llist.h
(2.36 KB)
📄
pycore_lock.h
(8.34 KB)
📄
pycore_long.h
(9.73 KB)
📄
pycore_memoryobject.h
(427 B)
📄
pycore_mimalloc.h
(1.6 KB)
📄
pycore_modsupport.h
(3.27 KB)
📄
pycore_moduleobject.h
(1.54 KB)
📄
pycore_namespace.h
(435 B)
📄
pycore_object.h
(26.64 KB)
📄
pycore_object_alloc.h
(2.13 KB)
📄
pycore_object_stack.h
(2.33 KB)
📄
pycore_object_state.h
(942 B)
📄
pycore_obmalloc.h
(26.78 KB)
📄
pycore_obmalloc_init.h
(1.89 KB)
📄
pycore_opcode_metadata.h
(82.74 KB)
📄
pycore_opcode_utils.h
(2.07 KB)
📄
pycore_optimizer.h
(8.11 KB)
📄
pycore_parking_lot.h
(3.27 KB)
📄
pycore_parser.h
(2.04 KB)
📄
pycore_pathconfig.h
(658 B)
📄
pycore_pyarena.h
(2.79 KB)
📄
pycore_pyatomic_ft_wrappers.h
(7.87 KB)
📄
pycore_pybuffer.h
(510 B)
📄
pycore_pyerrors.h
(4.84 KB)
📄
pycore_pyhash.h
(2.75 KB)
📄
pycore_pylifecycle.h
(4.36 KB)
📄
pycore_pymath.h
(8.4 KB)
📄
pycore_pymem.h
(4.37 KB)
📄
pycore_pymem_init.h
(3.44 KB)
📄
pycore_pystate.h
(9.73 KB)
📄
pycore_pystats.h
(420 B)
📄
pycore_pythonrun.h
(758 B)
📄
pycore_pythread.h
(5.3 KB)
📄
pycore_qsbr.h
(4.81 KB)
📄
pycore_range.h
(346 B)
📄
pycore_runtime.h
(12.84 KB)
📄
pycore_runtime_init.h
(12.74 KB)
📄
pycore_runtime_init_generated.h
(45.72 KB)
📄
pycore_semaphore.h
(1.69 KB)
📄
pycore_setobject.h
(951 B)
📄
pycore_signal.h
(2.86 KB)
📄
pycore_sliceobject.h
(369 B)
📄
pycore_stackref.h
(5.06 KB)
📄
pycore_strhex.h
(1013 B)
📄
pycore_structseq.h
(963 B)
📄
pycore_symtable.h
(8.47 KB)
📄
pycore_sysmodule.h
(1.15 KB)
📄
pycore_time.h
(11.52 KB)
📄
pycore_token.h
(2.93 KB)
📄
pycore_traceback.h
(3.54 KB)
📄
pycore_tracemalloc.h
(4.43 KB)
📄
pycore_tstate.h
(1.32 KB)
📄
pycore_tuple.h
(820 B)
📄
pycore_typeobject.h
(8.67 KB)
📄
pycore_typevarobject.h
(924 B)
📄
pycore_ucnhash.h
(958 B)
📄
pycore_unicodeobject.h
(12.15 KB)
📄
pycore_unicodeobject_generated.h
(129.04 KB)
📄
pycore_unionobject.h
(742 B)
📄
pycore_uop_ids.h
(10.03 KB)
📄
pycore_uop_metadata.h
(38.54 KB)
📄
pycore_warnings.h
(840 B)
📄
pycore_weakref.h
(3.25 KB)
Editing: pycore_ceval.h
#ifndef Py_INTERNAL_CEVAL_H #define Py_INTERNAL_CEVAL_H #ifdef __cplusplus extern "C" { #endif #ifndef Py_BUILD_CORE # error "this header requires Py_BUILD_CORE define" #endif #include "dynamic_annotations.h" // _Py_ANNOTATE_RWLOCK_CREATE #include "pycore_interp.h" // PyInterpreterState.eval_frame #include "pycore_pystate.h" // _PyThreadState_GET() /* Forward declarations */ struct pyruntimestate; struct _ceval_runtime_state; // Export for '_lsprof' shared extension PyAPI_FUNC(int) _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); extern int _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg); extern int _PyEval_SetOpcodeTrace(PyFrameObject *f, bool enable); // Helper to look up a builtin object // Export for 'array' shared extension PyAPI_FUNC(PyObject*) _PyEval_GetBuiltin(PyObject *); extern PyObject* _PyEval_GetBuiltinId(_Py_Identifier *); extern void _PyEval_SetSwitchInterval(unsigned long microseconds); extern unsigned long _PyEval_GetSwitchInterval(void); // Export for '_queue' shared extension PyAPI_FUNC(int) _PyEval_MakePendingCalls(PyThreadState *); #ifndef Py_DEFAULT_RECURSION_LIMIT # define Py_DEFAULT_RECURSION_LIMIT 1000 #endif extern void _Py_FinishPendingCalls(PyThreadState *tstate); extern void _PyEval_InitState(PyInterpreterState *); extern void _PyEval_SignalReceived(void); // bitwise flags: #define _Py_PENDING_MAINTHREADONLY 1 #define _Py_PENDING_RAWFREE 2 typedef int _Py_add_pending_call_result; #define _Py_ADD_PENDING_SUCCESS 0 #define _Py_ADD_PENDING_FULL -1 // Export for '_testinternalcapi' shared extension PyAPI_FUNC(_Py_add_pending_call_result) _PyEval_AddPendingCall( PyInterpreterState *interp, _Py_pending_call_func func, void *arg, int flags); #ifdef HAVE_FORK extern PyStatus _PyEval_ReInitThreads(PyThreadState *tstate); #endif // Used by sys.call_tracing() extern PyObject* _PyEval_CallTracing(PyObject *func, PyObject *args); // Used by sys.get_asyncgen_hooks() extern PyObject* _PyEval_GetAsyncGenFirstiter(void); extern PyObject* _PyEval_GetAsyncGenFinalizer(void); // Used by sys.set_asyncgen_hooks() extern int _PyEval_SetAsyncGenFirstiter(PyObject *); extern int _PyEval_SetAsyncGenFinalizer(PyObject *); // Used by sys.get_coroutine_origin_tracking_depth() // and sys.set_coroutine_origin_tracking_depth() extern int _PyEval_GetCoroutineOriginTrackingDepth(void); extern int _PyEval_SetCoroutineOriginTrackingDepth(int depth); extern void _PyEval_Fini(void); extern PyObject* _PyEval_GetBuiltins(PyThreadState *tstate); extern PyObject* _PyEval_BuiltinsFromGlobals( PyThreadState *tstate, PyObject *globals); // Trampoline API typedef struct { // Callback to initialize the trampoline state void* (*init_state)(void); // Callback to register every trampoline being created void (*write_state)(void* state, const void *code_addr, unsigned int code_size, PyCodeObject* code); // Callback to free the trampoline state int (*free_state)(void* state); } _PyPerf_Callbacks; extern int _PyPerfTrampoline_SetCallbacks(_PyPerf_Callbacks *); extern void _PyPerfTrampoline_GetCallbacks(_PyPerf_Callbacks *); extern int _PyPerfTrampoline_Init(int activate); extern int _PyPerfTrampoline_Fini(void); extern void _PyPerfTrampoline_FreeArenas(void); extern int _PyIsPerfTrampolineActive(void); extern PyStatus _PyPerfTrampoline_AfterFork_Child(void); #ifdef PY_HAVE_PERF_TRAMPOLINE extern _PyPerf_Callbacks _Py_perfmap_callbacks; extern _PyPerf_Callbacks _Py_perfmap_jit_callbacks; #endif static inline PyObject* _PyEval_EvalFrame(PyThreadState *tstate, struct _PyInterpreterFrame *frame, int throwflag) { EVAL_CALL_STAT_INC(EVAL_CALL_TOTAL); if (tstate->interp->eval_frame == NULL) { return _PyEval_EvalFrameDefault(tstate, frame, throwflag); } return tstate->interp->eval_frame(tstate, frame, throwflag); } extern PyObject* _PyEval_Vector(PyThreadState *tstate, PyFunctionObject *func, PyObject *locals, PyObject* const* args, size_t argcount, PyObject *kwnames); extern int _PyEval_ThreadsInitialized(void); extern void _PyEval_InitGIL(PyThreadState *tstate, int own_gil); extern void _PyEval_FiniGIL(PyInterpreterState *interp); extern void _PyEval_AcquireLock(PyThreadState *tstate); extern void _PyEval_ReleaseLock(PyInterpreterState *, PyThreadState *, int final_release); #ifdef Py_GIL_DISABLED // Returns 0 or 1 if the GIL for the given thread's interpreter is disabled or // enabled, respectively. // // The enabled state of the GIL will not change while one or more threads are // attached. static inline int _PyEval_IsGILEnabled(PyThreadState *tstate) { struct _gil_runtime_state *gil = tstate->interp->ceval.gil; return _Py_atomic_load_int_relaxed(&gil->enabled) != 0; } // Enable or disable the GIL used by the interpreter that owns tstate, which // must be the current thread. This may affect other interpreters, if the GIL // is shared. All three functions will be no-ops (and return 0) if the // interpreter's `enable_gil' config is not _PyConfig_GIL_DEFAULT. // // Every call to _PyEval_EnableGILTransient() must be paired with exactly one // call to either _PyEval_EnableGILPermanent() or // _PyEval_DisableGIL(). _PyEval_EnableGILPermanent() and _PyEval_DisableGIL() // must only be called while the GIL is enabled from a call to // _PyEval_EnableGILTransient(). // // _PyEval_EnableGILTransient() returns 1 if it enabled the GIL, or 0 if the // GIL was already enabled, whether transiently or permanently. The caller will // hold the GIL upon return. // // _PyEval_EnableGILPermanent() returns 1 if it permanently enabled the GIL // (which must already be enabled), or 0 if it was already permanently // enabled. Once _PyEval_EnableGILPermanent() has been called once, all // subsequent calls to any of the three functions will be no-ops. // // _PyEval_DisableGIL() returns 1 if it disabled the GIL, or 0 if the GIL was // kept enabled because of another request, whether transient or permanent. // // All three functions must be called by an attached thread (this implies that // if the GIL is enabled, the current thread must hold it). extern int _PyEval_EnableGILTransient(PyThreadState *tstate); extern int _PyEval_EnableGILPermanent(PyThreadState *tstate); extern int _PyEval_DisableGIL(PyThreadState *state); #endif extern void _PyEval_DeactivateOpCache(void); /* --- _Py_EnterRecursiveCall() ----------------------------------------- */ #ifdef USE_STACKCHECK /* With USE_STACKCHECK macro defined, trigger stack checks in _Py_CheckRecursiveCall() on every 64th call to _Py_EnterRecursiveCall. */ static inline int _Py_MakeRecCheck(PyThreadState *tstate) { return (tstate->c_recursion_remaining-- < 0 || (tstate->c_recursion_remaining & 63) == 0); } #else static inline int _Py_MakeRecCheck(PyThreadState *tstate) { return tstate->c_recursion_remaining-- < 0; } #endif // Export for '_json' shared extension, used via _Py_EnterRecursiveCall() // static inline function. PyAPI_FUNC(int) _Py_CheckRecursiveCall( PyThreadState *tstate, const char *where); int _Py_CheckRecursiveCallPy( PyThreadState *tstate); static inline int _Py_EnterRecursiveCallTstate(PyThreadState *tstate, const char *where) { return (_Py_MakeRecCheck(tstate) && _Py_CheckRecursiveCall(tstate, where)); } static inline void _Py_EnterRecursiveCallTstateUnchecked(PyThreadState *tstate) { assert(tstate->c_recursion_remaining > 0); tstate->c_recursion_remaining--; } static inline int _Py_EnterRecursiveCall(const char *where) { PyThreadState *tstate = _PyThreadState_GET(); return _Py_EnterRecursiveCallTstate(tstate, where); } static inline void _Py_LeaveRecursiveCallTstate(PyThreadState *tstate) { tstate->c_recursion_remaining++; } static inline void _Py_LeaveRecursiveCall(void) { PyThreadState *tstate = _PyThreadState_GET(); _Py_LeaveRecursiveCallTstate(tstate); } extern struct _PyInterpreterFrame* _PyEval_GetFrame(void); PyAPI_FUNC(PyObject *)_Py_MakeCoro(PyFunctionObject *func); /* Handle signals, pending calls, GIL drop request and asynchronous exception */ PyAPI_FUNC(int) _Py_HandlePending(PyThreadState *tstate); extern PyObject * _PyEval_GetFrameLocals(void); typedef PyObject *(*conversion_func)(PyObject *); PyAPI_DATA(const binaryfunc) _PyEval_BinaryOps[]; PyAPI_DATA(const conversion_func) _PyEval_ConversionFuncs[]; PyAPI_FUNC(int) _PyEval_CheckExceptStarTypeValid(PyThreadState *tstate, PyObject* right); PyAPI_FUNC(int) _PyEval_CheckExceptTypeValid(PyThreadState *tstate, PyObject* right); PyAPI_FUNC(int) _PyEval_ExceptionGroupMatch(PyObject* exc_value, PyObject *match_type, PyObject **match, PyObject **rest); PyAPI_FUNC(void) _PyEval_FormatAwaitableError(PyThreadState *tstate, PyTypeObject *type, int oparg); PyAPI_FUNC(void) _PyEval_FormatExcCheckArg(PyThreadState *tstate, PyObject *exc, const char *format_str, PyObject *obj); PyAPI_FUNC(void) _PyEval_FormatExcUnbound(PyThreadState *tstate, PyCodeObject *co, int oparg); PyAPI_FUNC(void) _PyEval_FormatKwargsError(PyThreadState *tstate, PyObject *func, PyObject *kwargs); PyAPI_FUNC(PyObject *)_PyEval_MatchClass(PyThreadState *tstate, PyObject *subject, PyObject *type, Py_ssize_t nargs, PyObject *kwargs); PyAPI_FUNC(PyObject *)_PyEval_MatchKeys(PyThreadState *tstate, PyObject *map, PyObject *keys); PyAPI_FUNC(int) _PyEval_UnpackIterable(PyThreadState *tstate, PyObject *v, int argcnt, int argcntafter, PyObject **sp); PyAPI_FUNC(void) _PyEval_MonitorRaise(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *instr); PyAPI_FUNC(void) _PyEval_FrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame *frame); /* Bits that can be set in PyThreadState.eval_breaker */ #define _PY_GIL_DROP_REQUEST_BIT (1U << 0) #define _PY_SIGNALS_PENDING_BIT (1U << 1) #define _PY_CALLS_TO_DO_BIT (1U << 2) #define _PY_ASYNC_EXCEPTION_BIT (1U << 3) #define _PY_GC_SCHEDULED_BIT (1U << 4) #define _PY_EVAL_PLEASE_STOP_BIT (1U << 5) #define _PY_EVAL_EXPLICIT_MERGE_BIT (1U << 6) /* Reserve a few bits for future use */ #define _PY_EVAL_EVENTS_BITS 8 #define _PY_EVAL_EVENTS_MASK ((1 << _PY_EVAL_EVENTS_BITS)-1) static inline void _Py_set_eval_breaker_bit(PyThreadState *tstate, uintptr_t bit) { _Py_atomic_or_uintptr(&tstate->eval_breaker, bit); } static inline void _Py_unset_eval_breaker_bit(PyThreadState *tstate, uintptr_t bit) { _Py_atomic_and_uintptr(&tstate->eval_breaker, ~bit); } static inline int _Py_eval_breaker_bit_is_set(PyThreadState *tstate, uintptr_t bit) { uintptr_t b = _Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker); return (b & bit) != 0; } // Free-threaded builds use these functions to set or unset a bit on all // threads in the given interpreter. void _Py_set_eval_breaker_bit_all(PyInterpreterState *interp, uintptr_t bit); void _Py_unset_eval_breaker_bit_all(PyInterpreterState *interp, uintptr_t bit); #ifdef __cplusplus } #endif #endif /* !Py_INTERNAL_CEVAL_H */
Upload File
Create Folder