Download include/python3.9/internal/pycore_ceval.h from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 3.4 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/include/python3.9/internal/pycore_ceval.h
- Command line
-
hf download hf://camenduru/slahmr-test/include/python3.9/internal/pycore_ceval.h
-
curl -L -o pycore_ceval.h https://huggingface.co/camenduru/slahmr-test/resolve/main/include/python3.9/internal/pycore_ceval.h
3.4 kB
| extern "C" { | |
| /* Forward declarations */ | |
| struct pyruntimestate; | |
| struct _ceval_runtime_state; | |
| extern void _Py_FinishPendingCalls(PyThreadState *tstate); | |
| extern void _PyEval_InitRuntimeState(struct _ceval_runtime_state *); | |
| extern int _PyEval_InitState(struct _ceval_state *ceval); | |
| extern void _PyEval_FiniState(struct _ceval_state *ceval); | |
| PyAPI_FUNC(void) _PyEval_SignalReceived(PyInterpreterState *interp); | |
| PyAPI_FUNC(int) _PyEval_AddPendingCall( | |
| PyInterpreterState *interp, | |
| int (*func)(void *), | |
| void *arg); | |
| PyAPI_FUNC(void) _PyEval_SignalAsyncExc(PyThreadState *tstate); | |
| extern void _PyEval_ReInitThreads(struct pyruntimestate *runtime); | |
| PyAPI_FUNC(void) _PyEval_SetCoroutineOriginTrackingDepth( | |
| PyThreadState *tstate, | |
| int new_depth); | |
| /* Private function */ | |
| void _PyEval_Fini(void); | |
| static inline PyObject* | |
| _PyEval_EvalFrame(PyThreadState *tstate, PyFrameObject *f, int throwflag) | |
| { | |
| return tstate->interp->eval_frame(tstate, f, throwflag); | |
| } | |
| extern PyObject *_PyEval_EvalCode( | |
| PyThreadState *tstate, | |
| PyObject *_co, PyObject *globals, PyObject *locals, | |
| PyObject *const *args, Py_ssize_t argcount, | |
| PyObject *const *kwnames, PyObject *const *kwargs, | |
| Py_ssize_t kwcount, int kwstep, | |
| PyObject *const *defs, Py_ssize_t defcount, | |
| PyObject *kwdefs, PyObject *closure, | |
| PyObject *name, PyObject *qualname); | |
| extern int _PyEval_ThreadsInitialized(struct pyruntimestate *runtime); | |
| extern PyStatus _PyEval_InitGIL(PyThreadState *tstate); | |
| extern void _PyEval_FiniGIL(PyThreadState *tstate); | |
| extern void _PyEval_ReleaseLock(PyThreadState *tstate); | |
| /* --- _Py_EnterRecursiveCall() ----------------------------------------- */ | |
| PyAPI_DATA(int) _Py_CheckRecursionLimit; | |
| /* 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->recursion_depth > tstate->interp->ceval.recursion_limit | |
| || ++tstate->stackcheck_counter > 64); | |
| } | |
| static inline int _Py_MakeRecCheck(PyThreadState *tstate) { | |
| return (++tstate->recursion_depth > tstate->interp->ceval.recursion_limit); | |
| } | |
| PyAPI_FUNC(int) _Py_CheckRecursiveCall( | |
| PyThreadState *tstate, | |
| const char *where); | |
| static inline int _Py_EnterRecursiveCall(PyThreadState *tstate, | |
| const char *where) { | |
| return (_Py_MakeRecCheck(tstate) && _Py_CheckRecursiveCall(tstate, where)); | |
| } | |
| static inline int _Py_EnterRecursiveCall_inline(const char *where) { | |
| PyThreadState *tstate = PyThreadState_GET(); | |
| return _Py_EnterRecursiveCall(tstate, where); | |
| } | |
| static inline void _Py_LeaveRecursiveCall(PyThreadState *tstate) { | |
| tstate->recursion_depth--; | |
| } | |
| static inline void _Py_LeaveRecursiveCall_inline(void) { | |
| PyThreadState *tstate = PyThreadState_GET(); | |
| _Py_LeaveRecursiveCall(tstate); | |
| } | |
| } | |