mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
e982d8b64f
Replace "_PyRuntimeState" with "struct pyruntimestate" to avoid a warning on typedef re-definition.
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
#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
|
|
|
|
/* Forward declarations */
|
|
struct pyruntimestate;
|
|
struct _ceval_runtime_state;
|
|
|
|
PyAPI_FUNC(void) _Py_FinishPendingCalls(struct pyruntimestate *runtime);
|
|
PyAPI_FUNC(void) _PyEval_Initialize(struct _ceval_runtime_state *);
|
|
PyAPI_FUNC(void) _PyEval_FiniThreads(
|
|
struct _ceval_runtime_state *ceval);
|
|
PyAPI_FUNC(void) _PyEval_SignalReceived(
|
|
struct _ceval_runtime_state *ceval);
|
|
PyAPI_FUNC(int) _PyEval_AddPendingCall(
|
|
PyThreadState *tstate,
|
|
struct _ceval_runtime_state *ceval,
|
|
int (*func)(void *),
|
|
void *arg);
|
|
PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
|
|
struct _ceval_runtime_state *ceval);
|
|
PyAPI_FUNC(void) _PyEval_ReInitThreads(
|
|
struct pyruntimestate *runtime);
|
|
PyAPI_FUNC(void) _PyEval_SetCoroutineOriginTrackingDepth(
|
|
PyThreadState *tstate,
|
|
int new_depth);
|
|
|
|
/* Private function */
|
|
void _PyEval_Fini(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_CEVAL_H */
|