|
4 | 4 |
|
5 | 5 | #include "Python-ast.h" |
6 | 6 | #undef Yield /* undefine macro conflicting with <winbase.h> */ |
7 | | -#include "pycore_ceval.h" |
8 | | -#include "pycore_context.h" |
| 7 | + |
| 8 | +#include "pycore_ceval.h" // _PyEval_FiniGIL() |
| 9 | +#include "pycore_context.h" // _PyContext_Init() |
| 10 | +#include "pycore_fileutils.h" // _Py_ResetForceASCII() |
9 | 11 | #include "pycore_import.h" // _PyImport_Cleanup() |
10 | | -#include "pycore_initconfig.h" |
11 | | -#include "pycore_fileutils.h" |
12 | | -#include "pycore_hamt.h" |
13 | | -#include "pycore_object.h" |
14 | | -#include "pycore_pathconfig.h" |
15 | | -#include "pycore_pyerrors.h" |
16 | | -#include "pycore_pylifecycle.h" |
| 12 | +#include "pycore_initconfig.h" // _PyStatus_OK() |
| 13 | +#include "pycore_object.h" // _PyDebug_PrintTotalRefs() |
| 14 | +#include "pycore_pathconfig.h" // _PyConfig_WritePathConfig() |
| 15 | +#include "pycore_pyerrors.h" // _PyErr_Occurred() |
| 16 | +#include "pycore_pylifecycle.h" // _PyErr_Print() |
17 | 17 | #include "pycore_pystate.h" // _PyThreadState_GET() |
18 | | -#include "pycore_sysmodule.h" |
19 | | -#include "pycore_traceback.h" |
20 | | -#include "grammar.h" |
21 | | -#include "node.h" |
22 | | -#include "token.h" |
23 | | -#include "parsetok.h" |
24 | | -#include "errcode.h" |
25 | | -#include "code.h" |
26 | | -#include "symtable.h" |
27 | | -#include "ast.h" |
28 | | -#include "marshal.h" |
29 | | -#include <locale.h> |
| 18 | +#include "pycore_sysmodule.h" // _PySys_ClearAuditHooks() |
| 19 | +#include "pycore_traceback.h" // _Py_DumpTracebackThreads() |
30 | 20 |
|
31 | | -#ifdef HAVE_SIGNAL_H |
32 | | -#include <signal.h> |
33 | | -#endif |
| 21 | +#include "grammar.h" // PyGrammar_RemoveAccelerators() |
| 22 | +#include <locale.h> // setlocale() |
34 | 23 |
|
35 | | -#ifdef MS_WINDOWS |
36 | | -#include "malloc.h" /* for alloca */ |
| 24 | +#ifdef HAVE_SIGNAL_H |
| 25 | +# include <signal.h> // SIG_IGN |
37 | 26 | #endif |
38 | 27 |
|
39 | 28 | #ifdef HAVE_LANGINFO_H |
40 | | -#include <langinfo.h> |
| 29 | +# include <langinfo.h> // nl_langinfo(CODESET) |
41 | 30 | #endif |
42 | 31 |
|
43 | 32 | #ifdef MS_WINDOWS |
44 | | -#undef BYTE |
45 | | -#include "windows.h" |
| 33 | +# undef BYTE |
| 34 | +# include "windows.h" |
46 | 35 |
|
47 | | -extern PyTypeObject PyWindowsConsoleIO_Type; |
48 | | -#define PyWindowsConsoleIO_Check(op) (PyObject_TypeCheck((op), &PyWindowsConsoleIO_Type)) |
| 36 | + extern PyTypeObject PyWindowsConsoleIO_Type; |
| 37 | +# define PyWindowsConsoleIO_Check(op) \ |
| 38 | + (PyObject_TypeCheck((op), &PyWindowsConsoleIO_Type)) |
49 | 39 | #endif |
50 | 40 |
|
| 41 | + |
51 | 42 | _Py_IDENTIFIER(flush); |
52 | 43 | _Py_IDENTIFIER(name); |
53 | 44 | _Py_IDENTIFIER(stdin); |
|
0 commit comments