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

This commit is contained in:
Georg Brandl 2010-11-30 09:41:01 +00:00
parent 71c23d4473
commit e5b99f0fb3
22 changed files with 0 additions and 32 deletions

View File

@ -3,7 +3,6 @@
*/ */
#include "Python.h" #include "Python.h"
#include "modsupport.h"
#include "structmember.h" #include "structmember.h"
#include <time.h> #include <time.h>

View File

@ -1,5 +1,4 @@
#include "Python.h" #include "Python.h"
#include "compile.h"
#include "frameobject.h" #include "frameobject.h"
#include "rotatingtree.h" #include "rotatingtree.h"

View File

@ -2,7 +2,6 @@
#include "Python.h" #include "Python.h"
#include "osdefs.h" #include "osdefs.h"
#include "import.h"
#include <locale.h> #include <locale.h>

View File

@ -34,10 +34,8 @@
#include "grammar.h" #include "grammar.h"
#include "parsetok.h" #include "parsetok.h"
/* ISTERMINAL() / ISNONTERMINAL() */ /* ISTERMINAL() / ISNONTERMINAL() */
#include "compile.h"
#undef Yield #undef Yield
#include "ast.h" #include "ast.h"
#include "pyarena.h"
extern grammar _PyParser_Grammar; /* From graminit.c */ extern grammar _PyParser_Grammar; /* From graminit.c */

View File

@ -4,7 +4,6 @@
/* XXX Signals should be recorded per thread, now we have thread state. */ /* XXX Signals should be recorded per thread, now we have thread state. */
#include "Python.h" #include "Python.h"
#include "intrcheck.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
#include <Windows.h> #include <Windows.h>

View File

@ -1,7 +1,6 @@
#include "Python.h" #include "Python.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "Python-ast.h" #include "Python-ast.h"
#include "symtable.h" #include "symtable.h"

View File

@ -3,7 +3,6 @@
#include "Python.h" #include "Python.h"
#include "code.h" #include "code.h"
#include "eval.h"
#include "structmember.h" #include "structmember.h"
PyObject * PyObject *

View File

@ -2,8 +2,6 @@
#include "Python.h" #include "Python.h"
#include "frameobject.h" #include "frameobject.h"
#include "genobject.h"
#include "ceval.h"
#include "structmember.h" #include "structmember.h"
#include "opcode.h" #include "opcode.h"

View File

@ -2,7 +2,6 @@
/* Generic object operations; and implementation of None (NoObject) */ /* Generic object operations; and implementation of None (NoObject) */
#include "Python.h" #include "Python.h"
#include "sliceobject.h" /* For PyEllipsis_Type */
#include "frameobject.h" #include "frameobject.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -9,7 +9,6 @@
*/ */
#include "Python.h" #include "Python.h"
#include "unicodeobject.h"
#define ALPHA_MASK 0x01 #define ALPHA_MASK 0x01
#define DECIMAL_MASK 0x02 #define DECIMAL_MASK 0x02

View File

@ -43,7 +43,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h" #include "Python.h"
#include "bytes_methods.h" #include "bytes_methods.h"
#include "unicodeobject.h"
#include "ucnhash.h" #include "ucnhash.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS

View File

@ -7,7 +7,6 @@
#include "Python-ast.h" #include "Python-ast.h"
#include "grammar.h" #include "grammar.h"
#include "node.h" #include "node.h"
#include "pyarena.h"
#include "ast.h" #include "ast.h"
#include "token.h" #include "token.h"
#include "parsetok.h" #include "parsetok.h"

View File

@ -5,7 +5,6 @@
#include "node.h" #include "node.h"
#include "code.h" #include "code.h"
#include "eval.h"
#include <ctype.h> #include <ctype.h>

View File

@ -13,7 +13,6 @@
#include "code.h" #include "code.h"
#include "frameobject.h" #include "frameobject.h"
#include "eval.h"
#include "opcode.h" #include "opcode.h"
#include "structmember.h" #include "structmember.h"

View File

@ -25,10 +25,8 @@
#include "Python-ast.h" #include "Python-ast.h"
#include "node.h" #include "node.h"
#include "pyarena.h"
#include "ast.h" #include "ast.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "symtable.h" #include "symtable.h"
#include "opcode.h" #include "opcode.h"

View File

@ -4,7 +4,6 @@
#include "token.h" #include "token.h"
#include "graminit.h" #include "graminit.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "symtable.h" #include "symtable.h"
#define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined" #define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"

View File

@ -5,13 +5,9 @@
#include "Python-ast.h" #include "Python-ast.h"
#undef Yield /* undefine macro conflicting with winbase.h */ #undef Yield /* undefine macro conflicting with winbase.h */
#include "pyarena.h"
#include "pythonrun.h"
#include "errcode.h" #include "errcode.h"
#include "marshal.h" #include "marshal.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "eval.h"
#include "osdefs.h" #include "osdefs.h"
#include "importdl.h" #include "importdl.h"

View File

@ -4,10 +4,8 @@
#include "Python-ast.h" #include "Python-ast.h"
#include "node.h" #include "node.h"
#include "pyarena.h"
#include "ast.h" #include "ast.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "symtable.h" #include "symtable.h"
#include "opcode.h" #include "opcode.h"

View File

@ -1,5 +1,4 @@
#include "Python.h" #include "Python.h"
#include "pyarena.h"
/* A simple arena block structure. /* A simple arena block structure.

View File

@ -11,14 +11,10 @@
#include "parsetok.h" #include "parsetok.h"
#include "errcode.h" #include "errcode.h"
#include "code.h" #include "code.h"
#include "compile.h"
#include "symtable.h" #include "symtable.h"
#include "pyarena.h"
#include "ast.h" #include "ast.h"
#include "eval.h"
#include "marshal.h" #include "marshal.h"
#include "osdefs.h" #include "osdefs.h"
#include "abstract.h"
#ifdef HAVE_SIGNAL_H #ifdef HAVE_SIGNAL_H
#include <signal.h> #include <signal.h>

View File

@ -17,7 +17,6 @@ Data members:
#include "Python.h" #include "Python.h"
#include "code.h" #include "code.h"
#include "frameobject.h" #include "frameobject.h"
#include "eval.h"
#include "osdefs.h" #include "osdefs.h"

View File

@ -7,7 +7,6 @@
#include "frameobject.h" #include "frameobject.h"
#include "structmember.h" #include "structmember.h"
#include "osdefs.h" #include "osdefs.h"
#include "traceback.h"
#ifdef HAVE_FCNTL_H #ifdef HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#endif #endif