| 1 |
|
| 2 |
|
| 3 |
#include "Python.h" |
| 4 |
|
| 5 |
int Py_DebugFlag = 1; |
| 6 |
int Py_VerboseFlag = 0; |
| 7 |
int Py_QuietFlag = 0; |
| 8 |
int Py_InteractiveFlag = 0; |
| 9 |
int Py_InspectFlag = 0; |
| 10 |
|
| 11 |
int Py_OptimizeFlag = -1; |
| 12 |
int Py_NoSiteFlag = 0; |
| 13 |
int Py_BytesWarningFlag = 0; |
| 14 |
int Py_FrozenFlag = 0; |
| 15 |
int Py_IgnoreEnvironmentFlag = 0; |
| 16 |
int Py_DontWriteBytecodeFlag = 0; |
| 17 |
int Py_NoUserSiteDirectory = 0; |
| 18 |
int Py_UnbufferedStdioFlag = 0; |
| 19 |
int Py_HashRandomizationFlag = 0; |
| 20 |
int Py_IsolatedFlag = 0; |
| 21 |
|
| 22 |
#ifdef MS_WINDOWS |
| 23 |
int Py_LegacyWindowsStdioFlag = 0; |
| 24 |
#endif |
| 25 |
|
| 26 |
const unsigned long Py_Version = PY_VERSION_HEX; |
| 27 |
|
| 28 |
const char *_PyPy_FileSystemDefaultEncoding; |
| 29 |
void _Py_setfilesystemdefaultencoding(const char *enc) { |
| 30 |
_PyPy_FileSystemDefaultEncoding = enc; |
| 31 |
} |
| 32 |
|
| 33 |
#ifdef CPYEXT_TESTS |
| 34 |
#define _Py_get_PyOS_InputHook _cpyexttest_get_PyOS_InputHook |
| 35 |
#ifdef __GNUC__ |
| 36 |
__attribute__((visibility("default"))) |
| 37 |
#else |
| 38 |
__declspec(dllexport) |
| 39 |
#endif |
| 40 |
#else |
| 41 |
#define _Py_get_PyOS_InputHook _PyPy_get_PyOS_InputHook |
| 42 |
#endif |
| 43 |
int (*PyOS_InputHook)(void) = 0; |
| 44 |
PyAPI_FUNC(_pypy_pyos_inputhook) _Py_get_PyOS_InputHook(void) { |
| 45 |
return PyOS_InputHook; |
| 46 |
} |