Commit e5b99f0f authored by Georg Brandl's avatar Georg Brandl

Remove redundant includes of headers that are already included by Python.h.

parent 71c23d44
......@@ -3,7 +3,6 @@
*/
#include "Python.h"
#include "modsupport.h"
#include "structmember.h"
#include <time.h>
......
#include "Python.h"
#include "compile.h"
#include "frameobject.h"
#include "rotatingtree.h"
......
......@@ -2,7 +2,6 @@
#include "Python.h"
#include "osdefs.h"
#include "import.h"
#include <locale.h>
......
......@@ -34,10 +34,8 @@
#include "grammar.h"
#include "parsetok.h"
/* ISTERMINAL() / ISNONTERMINAL() */
#include "compile.h"
#undef Yield
#include "ast.h"
#include "pyarena.h"
extern grammar _PyParser_Grammar; /* From graminit.c */
......
......@@ -4,7 +4,6 @@
/* XXX Signals should be recorded per thread, now we have thread state. */
#include "Python.h"
#include "intrcheck.h"
#ifdef MS_WINDOWS
#include <Windows.h>
......
#include "Python.h"
#include "code.h"
#include "compile.h"
#include "Python-ast.h"
#include "symtable.h"
......
......@@ -3,7 +3,6 @@
#include "Python.h"
#include "code.h"
#include "eval.h"
#include "structmember.h"
PyObject *
......
......@@ -2,8 +2,6 @@
#include "Python.h"
#include "frameobject.h"
#include "genobject.h"
#include "ceval.h"
#include "structmember.h"
#include "opcode.h"
......
......@@ -2,7 +2,6 @@
/* Generic object operations; and implementation of None (NoObject) */
#include "Python.h"
#include "sliceobject.h" /* For PyEllipsis_Type */
#include "frameobject.h"
#ifdef __cplusplus
......
......@@ -9,7 +9,6 @@
*/
#include "Python.h"
#include "unicodeobject.h"
#define ALPHA_MASK 0x01
#define DECIMAL_MASK 0x02
......
......@@ -43,7 +43,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
#include "bytes_methods.h"
#include "unicodeobject.h"
#include "ucnhash.h"
#ifdef MS_WINDOWS
......
......@@ -7,7 +7,6 @@
#include "Python-ast.h"
#include "grammar.h"
#include "node.h"
#include "pyarena.h"
#include "ast.h"
#include "token.h"
#include "parsetok.h"
......
......@@ -5,7 +5,6 @@
#include "node.h"
#include "code.h"
#include "eval.h"
#include <ctype.h>
......
......@@ -13,7 +13,6 @@
#include "code.h"
#include "frameobject.h"
#include "eval.h"
#include "opcode.h"
#include "structmember.h"
......
......@@ -25,10 +25,8 @@
#include "Python-ast.h"
#include "node.h"
#include "pyarena.h"
#include "ast.h"
#include "code.h"
#include "compile.h"
#include "symtable.h"
#include "opcode.h"
......
......@@ -4,7 +4,6 @@
#include "token.h"
#include "graminit.h"
#include "code.h"
#include "compile.h"
#include "symtable.h"
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
......
......@@ -5,13 +5,9 @@
#include "Python-ast.h"
#undef Yield /* undefine macro conflicting with winbase.h */
#include "pyarena.h"
#include "pythonrun.h"
#include "errcode.h"
#include "marshal.h"
#include "code.h"
#include "compile.h"
#include "eval.h"
#include "osdefs.h"
#include "importdl.h"
......
......@@ -4,10 +4,8 @@
#include "Python-ast.h"
#include "node.h"
#include "pyarena.h"
#include "ast.h"
#include "code.h"
#include "compile.h"
#include "symtable.h"
#include "opcode.h"
......
#include "Python.h"
#include "pyarena.h"
/* A simple arena block structure.
......
......@@ -11,14 +11,10 @@
#include "parsetok.h"
#include "errcode.h"
#include "code.h"
#include "compile.h"
#include "symtable.h"
#include "pyarena.h"
#include "ast.h"
#include "eval.h"
#include "marshal.h"
#include "osdefs.h"
#include "abstract.h"
#ifdef HAVE_SIGNAL_H
#include <signal.h>
......
......@@ -17,7 +17,6 @@ Data members:
#include "Python.h"
#include "code.h"
#include "frameobject.h"
#include "eval.h"
#include "osdefs.h"
......
......@@ -7,7 +7,6 @@
#include "frameobject.h"
#include "structmember.h"
#include "osdefs.h"
#include "traceback.h"
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment