Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/pylifecycle.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 | |
2 /* Interfaces to configure, query, create & destroy the Python runtime */ | |
3 | |
4 #ifndef Py_PYLIFECYCLE_H | |
5 #define Py_PYLIFECYCLE_H | |
6 #ifdef __cplusplus | |
7 extern "C" { | |
8 #endif | |
9 | |
10 | |
11 /* Initialization and finalization */ | |
12 PyAPI_FUNC(void) Py_Initialize(void); | |
13 PyAPI_FUNC(void) Py_InitializeEx(int); | |
14 PyAPI_FUNC(void) Py_Finalize(void); | |
15 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000 | |
16 PyAPI_FUNC(int) Py_FinalizeEx(void); | |
17 #endif | |
18 PyAPI_FUNC(int) Py_IsInitialized(void); | |
19 | |
20 /* Subinterpreter support */ | |
21 PyAPI_FUNC(PyThreadState *) Py_NewInterpreter(void); | |
22 PyAPI_FUNC(void) Py_EndInterpreter(PyThreadState *); | |
23 | |
24 | |
25 /* Py_PyAtExit is for the atexit module, Py_AtExit is for low-level | |
26 * exit functions. | |
27 */ | |
28 PyAPI_FUNC(int) Py_AtExit(void (*func)(void)); | |
29 | |
30 PyAPI_FUNC(void) _Py_NO_RETURN Py_Exit(int); | |
31 | |
32 /* Bootstrap __main__ (defined in Modules/main.c) */ | |
33 PyAPI_FUNC(int) Py_Main(int argc, wchar_t **argv); | |
34 | |
35 PyAPI_FUNC(int) Py_BytesMain(int argc, char **argv); | |
36 | |
37 /* In pathconfig.c */ | |
38 PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *); | |
39 PyAPI_FUNC(wchar_t *) Py_GetProgramName(void); | |
40 | |
41 PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *); | |
42 PyAPI_FUNC(wchar_t *) Py_GetPythonHome(void); | |
43 | |
44 PyAPI_FUNC(wchar_t *) Py_GetProgramFullPath(void); | |
45 | |
46 PyAPI_FUNC(wchar_t *) Py_GetPrefix(void); | |
47 PyAPI_FUNC(wchar_t *) Py_GetExecPrefix(void); | |
48 PyAPI_FUNC(wchar_t *) Py_GetPath(void); | |
49 PyAPI_FUNC(void) Py_SetPath(const wchar_t *); | |
50 #ifdef MS_WINDOWS | |
51 int _Py_CheckPython3(void); | |
52 #endif | |
53 | |
54 /* In their own files */ | |
55 PyAPI_FUNC(const char *) Py_GetVersion(void); | |
56 PyAPI_FUNC(const char *) Py_GetPlatform(void); | |
57 PyAPI_FUNC(const char *) Py_GetCopyright(void); | |
58 PyAPI_FUNC(const char *) Py_GetCompiler(void); | |
59 PyAPI_FUNC(const char *) Py_GetBuildInfo(void); | |
60 | |
61 /* Signals */ | |
62 typedef void (*PyOS_sighandler_t)(int); | |
63 PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int); | |
64 PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); | |
65 | |
66 #ifndef Py_LIMITED_API | |
67 # define Py_CPYTHON_PYLIFECYCLE_H | |
68 # include "cpython/pylifecycle.h" | |
69 # undef Py_CPYTHON_PYLIFECYCLE_H | |
70 #endif | |
71 | |
72 #ifdef __cplusplus | |
73 } | |
74 #endif | |
75 #endif /* !Py_PYLIFECYCLE_H */ |