| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | #ifndef Py_INTERNAL_LIFECYCLE_H
 | 
					
						
							|  |  |  | #define Py_INTERNAL_LIFECYCLE_H
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-17 23:02:26 +02:00
										 |  |  | #ifndef Py_BUILD_CORE
 | 
					
						
							|  |  |  | #  error "this header requires Py_BUILD_CORE define"
 | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-10-02 23:51:20 +02:00
										 |  |  | /* Forward declarations */ | 
					
						
							| 
									
										
										
										
											2019-10-04 02:21:05 +02:00
										 |  |  | struct _PyArgv; | 
					
						
							|  |  |  | struct pyruntimestate; | 
					
						
							| 
									
										
										
										
											2019-04-24 17:24:01 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-16 12:57:40 -08:00
										 |  |  | /* True if the main interpreter thread exited due to an unhandled
 | 
					
						
							|  |  |  |  * KeyboardInterrupt exception, suggesting the user pressed ^C. */ | 
					
						
							|  |  |  | PyAPI_DATA(int) _Py_UnhandledKeyboardInterrupt; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-02 11:54:20 -04:00
										 |  |  | extern int _Py_SetFileSystemEncoding( | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  |     const char *encoding, | 
					
						
							|  |  |  |     const char *errors); | 
					
						
							| 
									
										
										
										
											2019-05-02 11:54:20 -04:00
										 |  |  | extern void _Py_ClearFileSystemEncoding(void); | 
					
						
							| 
									
										
										
										
											2019-06-20 00:05:23 +02:00
										 |  |  | extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-02 14:56:30 -04:00
										 |  |  | #ifdef MS_WINDOWS
 | 
					
						
							|  |  |  | extern int _PyUnicode_EnableLegacyWindowsFSEncoding(void); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | PyAPI_FUNC(void) _Py_ClearStandardStreamEncoding(void); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PyAPI_FUNC(int) _Py_IsLocaleCoercionTarget(const char *ctype_loc); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-22 17:39:03 +01:00
										 |  |  | /* Various one-time initializers */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _PyUnicode_Init(void); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | extern int _PyStructSequence_Init(void); | 
					
						
							| 
									
										
										
										
											2019-12-17 13:02:18 +01:00
										 |  |  | extern int _PyLong_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _PyFaulthandler_Init(int enable); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | extern int _PyTraceMalloc_Init(int enable); | 
					
						
							| 
									
										
										
										
											2019-06-20 00:05:23 +02:00
										 |  |  | extern PyObject * _PyBuiltin_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _PySys_Create( | 
					
						
							| 
									
										
										
										
											2019-06-20 00:05:23 +02:00
										 |  |  |     PyThreadState *tstate, | 
					
						
							| 
									
										
										
										
											2019-01-23 15:04:40 +01:00
										 |  |  |     PyObject **sysmod_p); | 
					
						
							| 
									
										
										
										
											2019-09-30 01:40:17 +02:00
										 |  |  | extern PyStatus _PySys_ReadPreinitWarnOptions(PyWideStringList *options); | 
					
						
							| 
									
										
										
										
											2019-08-23 18:03:08 +01:00
										 |  |  | extern PyStatus _PySys_ReadPreinitXOptions(PyConfig *config); | 
					
						
							| 
									
										
										
										
											2019-11-20 02:27:56 +01:00
										 |  |  | extern int _PySys_InitMain(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _PyExc_Init(void); | 
					
						
							|  |  |  | extern PyStatus _PyErr_Init(void); | 
					
						
							|  |  |  | extern PyStatus _PyBuiltins_AddExceptions(PyObject * bltinmod); | 
					
						
							| 
									
										
										
										
											2019-06-20 00:05:23 +02:00
										 |  |  | extern PyStatus _PyImportHooks_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-01-22 17:39:03 +01:00
										 |  |  | extern int _PyFloat_Init(void); | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _Py_HashRandomization_Init(const PyConfig *); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | extern PyStatus _PyTypes_Init(void); | 
					
						
							| 
									
										
										
										
											2020-01-30 09:02:14 +01:00
										 |  |  | extern PyStatus _PyTypes_InitSlotDefs(void); | 
					
						
							| 
									
										
										
										
											2019-06-19 02:54:39 +02:00
										 |  |  | extern PyStatus _PyImportZip_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-11-20 02:27:56 +01:00
										 |  |  | extern PyStatus _PyGC_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-13 17:12:45 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-22 17:39:03 +01:00
										 |  |  | /* Various internal finalizers */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-27 00:12:32 +02:00
										 |  |  | extern void _PyFrame_Fini(void); | 
					
						
							|  |  |  | extern void _PyDict_Fini(void); | 
					
						
							|  |  |  | extern void _PyTuple_Fini(void); | 
					
						
							|  |  |  | extern void _PyList_Fini(void); | 
					
						
							|  |  |  | extern void _PySet_Fini(void); | 
					
						
							|  |  |  | extern void _PyBytes_Fini(void); | 
					
						
							|  |  |  | extern void _PyFloat_Fini(void); | 
					
						
							|  |  |  | extern void _PySlice_Fini(void); | 
					
						
							|  |  |  | extern void _PyAsyncGen_Fini(void); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-22 17:39:03 +01:00
										 |  |  | extern void PyOS_FiniInterrupts(void); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern void _PyExc_Fini(void); | 
					
						
							|  |  |  | extern void _PyImport_Fini(void); | 
					
						
							|  |  |  | extern void _PyImport_Fini2(void); | 
					
						
							| 
									
										
										
										
											2019-11-20 10:38:34 +01:00
										 |  |  | extern void _PyGC_Fini(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-01-22 17:39:03 +01:00
										 |  |  | extern void _PyType_Fini(void); | 
					
						
							|  |  |  | extern void _Py_HashRandomization_Fini(void); | 
					
						
							| 
									
										
										
										
											2019-11-22 12:27:50 +01:00
										 |  |  | extern void _PyUnicode_Fini(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-12-17 13:02:18 +01:00
										 |  |  | extern void _PyLong_Fini(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | extern void _PyFaulthandler_Fini(void); | 
					
						
							|  |  |  | extern void _PyHash_Fini(void); | 
					
						
							| 
									
										
										
										
											2019-09-18 14:39:20 +02:00
										 |  |  | extern void _PyTraceMalloc_Fini(void); | 
					
						
							| 
									
										
										
										
											2019-05-10 13:29:55 -04:00
										 |  |  | extern void _PyWarnings_Fini(PyInterpreterState *interp); | 
					
						
							| 
									
										
										
										
											2020-09-15 19:32:56 +01:00
										 |  |  | extern void _PyAST_Fini(); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-10 23:49:16 +01:00
										 |  |  | extern PyStatus _PyGILState_Init(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-11-20 10:38:34 +01:00
										 |  |  | extern void _PyGILState_Fini(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-20 11:48:18 +01:00
										 |  |  | PyAPI_FUNC(void) _PyGC_DumpShutdownStats(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | PyAPI_FUNC(PyStatus) _Py_PreInitializeFromPyArgv( | 
					
						
							|  |  |  |     const PyPreConfig *src_config, | 
					
						
							| 
									
										
										
										
											2019-10-04 02:21:05 +02:00
										 |  |  |     const struct _PyArgv *args); | 
					
						
							| 
									
										
										
										
											2019-05-27 16:39:22 +02:00
										 |  |  | PyAPI_FUNC(PyStatus) _Py_PreInitializeFromConfig( | 
					
						
							|  |  |  |     const PyConfig *config, | 
					
						
							| 
									
										
										
										
											2019-10-04 02:21:05 +02:00
										 |  |  |     const struct _PyArgv *args); | 
					
						
							| 
									
										
										
										
											2019-03-26 02:31:11 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-22 11:28:22 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-17 23:05:29 +02:00
										 |  |  | PyAPI_FUNC(int) _Py_HandleSystemExit(int *exitcode_p); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-22 11:28:22 +02:00
										 |  |  | PyAPI_FUNC(PyObject*) _PyErr_WriteUnraisableDefaultHook(PyObject *unraisable); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-24 17:01:38 +02:00
										 |  |  | PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-05-28 00:39:52 +02:00
										 |  |  | PyAPI_FUNC(void) _PyErr_Display(PyObject *file, PyObject *exception, | 
					
						
							|  |  |  |                                 PyObject *value, PyObject *tb); | 
					
						
							| 
									
										
										
										
											2019-05-24 17:01:38 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-18 02:26:04 +01:00
										 |  |  | PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(PyThreadState *tstate); | 
					
						
							| 
									
										
										
										
											2019-09-05 13:06:49 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-01 03:15:58 +01:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif /* !Py_INTERNAL_LIFECYCLE_H */
 |