@@ -23,7 +23,7 @@ extern PyStatus _PyUnicode_InitEncodings(PyThreadState *tstate);
2323extern int _PyUnicode_EnableLegacyWindowsFSEncoding (void );
2424#endif
2525
26- PyAPI_FUNC ( int ) _Py_IsLocaleCoercionTarget (const char * ctype_loc );
26+ extern int _Py_IsLocaleCoercionTarget (const char * ctype_loc );
2727
2828/* Various one-time initializers */
2929
@@ -67,30 +67,49 @@ extern PyStatus _PyGILState_Init(PyInterpreterState *interp);
6767extern PyStatus _PyGILState_SetTstate (PyThreadState * tstate );
6868extern void _PyGILState_Fini (PyInterpreterState * interp );
6969
70- PyAPI_FUNC ( void ) _PyGC_DumpShutdownStats (PyInterpreterState * interp );
70+ extern void _PyGC_DumpShutdownStats (PyInterpreterState * interp );
7171
72- PyAPI_FUNC ( PyStatus ) _Py_PreInitializeFromPyArgv (
72+ extern PyStatus _Py_PreInitializeFromPyArgv (
7373 const PyPreConfig * src_config ,
7474 const struct _PyArgv * args );
75- PyAPI_FUNC ( PyStatus ) _Py_PreInitializeFromConfig (
75+ extern PyStatus _Py_PreInitializeFromConfig (
7676 const PyConfig * config ,
7777 const struct _PyArgv * args );
7878
79- PyAPI_FUNC ( wchar_t * ) _Py_GetStdlibDir (void );
79+ extern wchar_t * _Py_GetStdlibDir (void );
8080
81- PyAPI_FUNC ( int ) _Py_HandleSystemExit (int * exitcode_p );
81+ extern int _Py_HandleSystemExit (int * exitcode_p );
8282
83- PyAPI_FUNC ( PyObject * ) _PyErr_WriteUnraisableDefaultHook (PyObject * unraisable );
83+ extern PyObject * _PyErr_WriteUnraisableDefaultHook (PyObject * unraisable );
8484
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 ,
8787 PyObject * value , PyObject * tb );
88- PyAPI_FUNC ( void ) _PyErr_DisplayException (PyObject * file , PyObject * exc );
88+ extern void _PyErr_DisplayException (PyObject * file , PyObject * exc );
8989
90- PyAPI_FUNC ( void ) _PyThreadState_DeleteCurrent (PyThreadState * tstate );
90+ extern void _PyThreadState_DeleteCurrent (PyThreadState * tstate );
9191
9292extern void _PyAtExit_Call (PyInterpreterState * interp );
9393
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+
94113#ifdef __cplusplus
95114}
96115#endif
0 commit comments