Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/python3.12/internal/pycore_pylifecycle.h
$ cat -n /usr/include/python3.12/internal/pycore_pylifecycle.h 1 #ifndef Py_INTERNAL_LIFECYCLE_H 2 #define Py_INTERNAL_LIFECYCLE_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #ifndef Py_BUILD_CORE 8 # error "this header requires Py_BUILD_CORE define" 9 #endif 10 11 #include "pycore_runtime.h" // _PyRuntimeState 12 13 /* Forward declarations */ 14 struct _PyArgv; 15 struct pyruntimestate; 16 17 extern int _Py_SetFileSystemEncoding( 18 const char *encoding, 19 const char *errors); 20 extern void _Py_ClearFileSystemEncoding(void); 21 extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate); 22 #ifdef MS_WINDOWS 23 extern int _PyUnicode_EnableLegacyWindowsFSEncoding(void); 24 #endif 25 26 PyAPI_FUNC(void) _Py_ClearStandardStreamEncoding(void); 27 28 PyAPI_FUNC(int) _Py_IsLocaleCoercionTarget(const char *ctype_loc); 29 30 /* Various one-time initializers */ 31 32 extern void _Py_InitVersion(void); 33 extern PyStatus _PyFaulthandler_Init(int enable); 34 extern PyObject * _PyBuiltin_Init(PyInterpreterState *interp); 35 extern PyStatus _PySys_Create( 36 PyThreadState *tstate, 37 PyObject **sysmod_p); 38 extern PyStatus _PySys_ReadPreinitWarnOptions(PyWideStringList *options); 39 extern PyStatus _PySys_ReadPreinitXOptions(PyConfig *config); 40 extern int _PySys_UpdateConfig(PyThreadState *tstate); 41 extern void _PySys_FiniTypes(PyInterpreterState *interp); 42 extern int _PyBuiltins_AddExceptions(PyObject * bltinmod); 43 extern PyStatus _Py_HashRandomization_Init(const PyConfig *); 44 45 extern PyStatus _PyTime_Init(void); 46 extern PyStatus _PyGC_Init(PyInterpreterState *interp); 47 extern PyStatus _PyAtExit_Init(PyInterpreterState *interp); 48 extern int _Py_Deepfreeze_Init(void); 49 50 /* Various internal finalizers */ 51 52 extern int _PySignal_Init(int install_signal_handlers); 53 extern void _PySignal_Fini(void); 54 55 extern void _PyGC_Fini(PyInterpreterState *interp); 56 extern void _Py_HashRandomization_Fini(void); 57 extern void _PyFaulthandler_Fini(void); 58 extern void _PyHash_Fini(void); 59 extern void _PyTraceMalloc_Fini(void); 60 extern void _PyWarnings_Fini(PyInterpreterState *interp); 61 extern void _PyAST_Fini(PyInterpreterState *interp); 62 extern void _PyAtExit_Fini(PyInterpreterState *interp); 63 extern void _PyThread_FiniType(PyInterpreterState *interp); 64 extern void _Py_Deepfreeze_Fini(void); 65 extern void _PyArg_Fini(void); 66 extern void _Py_FinalizeAllocatedBlocks(_PyRuntimeState *); 67 68 extern PyStatus _PyGILState_Init(PyInterpreterState *interp); 69 extern PyStatus _PyGILState_SetTstate(PyThreadState *tstate); 70 extern void _PyGILState_Fini(PyInterpreterState *interp); 71 72 PyAPI_FUNC(void) _PyGC_DumpShutdownStats(PyInterpreterState *interp); 73 74 PyAPI_FUNC(PyStatus) _Py_PreInitializeFromPyArgv( 75 const PyPreConfig *src_config, 76 const struct _PyArgv *args); 77 PyAPI_FUNC(PyStatus) _Py_PreInitializeFromConfig( 78 const PyConfig *config, 79 const struct _PyArgv *args); 80 81 PyAPI_FUNC(wchar_t *) _Py_GetStdlibDir(void); 82 83 PyAPI_FUNC(int) _Py_HandleSystemExit(int *exitcode_p); 84 85 PyAPI_FUNC(PyObject*) _PyErr_WriteUnraisableDefaultHook(PyObject *unraisable); 86 87 PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate); 88 PyAPI_FUNC(void) _PyErr_Display(PyObject *file, PyObject *exception, 89 PyObject *value, PyObject *tb); 90 PyAPI_FUNC(void) _PyErr_DisplayException(PyObject *file, PyObject *exc); 91 92 PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(PyThreadState *tstate); 93 94 extern void _PyAtExit_Call(PyInterpreterState *interp); 95 96 #ifdef __cplusplus 97 } 98 #endif 99 #endif /* !Py_INTERNAL_LIFECYCLE_H */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™