@@ -23,7 +23,7 @@ extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate);
23
23
extern int _PyUnicode_EnableLegacyWindowsFSEncoding (void );
24
24
#endif
25
25
26
- PyAPI_FUNC ( int ) _Py_IsLocaleCoercionTarget (const char * ctype_loc );
26
+ extern int _Py_IsLocaleCoercionTarget (const char * ctype_loc );
27
27
28
28
/* Various one-time initializers */
29
29
@@ -67,30 +67,49 @@ extern PyStatus _PyGILState_Init(PyInterpreterState *interp);
67
67
extern PyStatus _PyGILState_SetTstate (PyThreadState * tstate );
68
68
extern void _PyGILState_Fini (PyInterpreterState * interp );
69
69
70
- PyAPI_FUNC ( void ) _PyGC_DumpShutdownStats (PyInterpreterState * interp );
70
+ extern void _PyGC_DumpShutdownStats (PyInterpreterState * interp );
71
71
72
- PyAPI_FUNC ( PyStatus ) _Py_PreInitializeFromPyArgv (
72
+ extern PyStatus _Py_PreInitializeFromPyArgv (
73
73
const PyPreConfig * src_config ,
74
74
const struct _PyArgv * args );
75
- PyAPI_FUNC ( PyStatus ) _Py_PreInitializeFromConfig (
75
+ extern PyStatus _Py_PreInitializeFromConfig (
76
76
const PyConfig * config ,
77
77
const struct _PyArgv * args );
78
78
79
- PyAPI_FUNC ( wchar_t * ) _Py_GetStdlibDir (void );
79
+ extern wchar_t * _Py_GetStdlibDir (void );
80
80
81
- PyAPI_FUNC ( int ) _Py_HandleSystemExit (int * exitcode_p );
81
+ extern int _Py_HandleSystemExit (int * exitcode_p );
82
82
83
- PyAPI_FUNC ( PyObject * ) _PyErr_WriteUnraisableDefaultHook (PyObject * unraisable );
83
+ extern PyObject * _PyErr_WriteUnraisableDefaultHook (PyObject * unraisable );
84
84
85
- PyAPI_FUNC ( void ) _PyErr_Print (PyThreadState * tstate );
86
- PyAPI_FUNC ( void ) _PyErr_Display (PyObject * file , PyObject * exception ,
85
+ extern void _PyErr_Print (PyThreadState * tstate );
86
+ extern void _PyErr_Display (PyObject * file , PyObject * exception ,
87
87
PyObject * value , PyObject * tb );
88
- PyAPI_FUNC ( void ) _PyErr_DisplayException (PyObject * file , PyObject * exc );
88
+ extern void _PyErr_DisplayException (PyObject * file , PyObject * exc );
89
89
90
- PyAPI_FUNC ( void ) _PyThreadState_DeleteCurrent (PyThreadState * tstate );
90
+ extern void _PyThreadState_DeleteCurrent (PyThreadState * tstate );
91
91
92
92
extern void _PyAtExit_Call (PyInterpreterState * interp );
93
93
94
+ extern int _Py_IsCoreInitialized (void );
95
+
96
+ extern int _Py_FdIsInteractive (FILE * fp , PyObject * filename );
97
+
98
+ extern const char * _Py_gitidentifier (void );
99
+ extern const char * _Py_gitversion (void );
100
+
101
+ extern int _Py_IsFinalizing (void );
102
+ PyAPI_FUNC (int ) _Py_IsInterpreterFinalizing (PyInterpreterState * interp );
103
+
104
+ /* Random */
105
+ extern int _PyOS_URandom (void * buffer , Py_ssize_t size );
106
+ PyAPI_FUNC (int ) _PyOS_URandomNonblock (void * buffer , Py_ssize_t size );
107
+
108
+ /* Legacy locale support */
109
+ extern int _Py_CoerceLegacyLocale (int warn );
110
+ extern int _Py_LegacyLocaleDetected (int warn );
111
+ PyAPI_FUNC (char * ) _Py_SetLocaleFromEnv (int category );
112
+
94
113
#ifdef __cplusplus
95
114
}
96
115
#endif
0 commit comments