]> granicus.if.org Git - python/commitdiff
Remove redundant includes of headers that are already included by Python.h.
authorGeorg Brandl <georg@python.org>
Tue, 30 Nov 2010 09:41:01 +0000 (09:41 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 30 Nov 2010 09:41:01 +0000 (09:41 +0000)
22 files changed:
Modules/_datetimemodule.c
Modules/_lsprof.c
Modules/main.c
Modules/parsermodule.c
Modules/signalmodule.c
Modules/symtablemodule.c
Objects/funcobject.c
Objects/genobject.c
Objects/object.c
Objects/unicodectype.c
Objects/unicodeobject.c
Python/ast.c
Python/bltinmodule.c
Python/ceval.c
Python/compile.c
Python/future.c
Python/import.c
Python/peephole.c
Python/pyarena.c
Python/pythonrun.c
Python/sysmodule.c
Python/traceback.c

index d791cdeca897b1f6fb3aa492500e9c16b635cd4e..32fe835a02650fb4aa04e7472d6a9676312a1ff6 100644 (file)
@@ -3,7 +3,6 @@
  */
 
 #include "Python.h"
-#include "modsupport.h"
 #include "structmember.h"
 
 #include <time.h>
index a5630c8cdb6e1853c66c8fb29fff38be6e08e357..048cfc8b74b6012e631f042a6adac5a7a8182635 100644 (file)
@@ -1,5 +1,4 @@
 #include "Python.h"
-#include "compile.h"
 #include "frameobject.h"
 #include "rotatingtree.h"
 
index 590104d88831f967f87030f20dd1449b0db05a17..eeb94c8ea4e94a0fe2ff05134d28debb0a1d43f1 100644 (file)
@@ -2,7 +2,6 @@
 
 #include "Python.h"
 #include "osdefs.h"
-#include "import.h"
 
 #include <locale.h>
 
index 8c57f867c9d57b810d7095f15e5b6e8fb13b3637..27b680fd1a80e2550ca5c65878b71642eec9a2d7 100644 (file)
 #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 */
 
index 0e7fd65b04b9863fd872a8277a75711f49f45a84..a93caadb059ea6d915fe02f028c6c31875607ae2 100644 (file)
@@ -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>
index 3f281d23a6d23f527011147e09dc9fd9468f3454..f6201e5bb0015d4f8bc128d2d031b3f3364a8676 100644 (file)
@@ -1,7 +1,6 @@
 #include "Python.h"
 
 #include "code.h"
-#include "compile.h"
 #include "Python-ast.h"
 #include "symtable.h"
 
index c2ad964e584e610401955f5ad9d12f5d7d6d655d..221f368ae22e819168bcac474de7a2e28ae12f1d 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "Python.h"
 #include "code.h"
-#include "eval.h"
 #include "structmember.h"
 
 PyObject *
index 34ee7dcc1f4fbcfe6bd3819e0da3aa4e8df57e92..3fa1b4e726984c6a908335c85e2708d4a771e9e3 100644 (file)
@@ -2,8 +2,6 @@
 
 #include "Python.h"
 #include "frameobject.h"
-#include "genobject.h"
-#include "ceval.h"
 #include "structmember.h"
 #include "opcode.h"
 
index 723e40eacbe40930debdc8e19cf9b619c97bb3d7..082dd78e9584016ec8395582a6d09f1e290025c7 100644 (file)
@@ -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
index a41ceb824023fb697aa0c92dc994cff9a2d8ce51..9f6ac89b9f2a0e062b772e311e9efe078e437178 100644 (file)
@@ -9,7 +9,6 @@
 */
 
 #include "Python.h"
-#include "unicodeobject.h"
 
 #define ALPHA_MASK 0x01
 #define DECIMAL_MASK 0x02
index d6cc8b5a24d45b26c0f27d21c3a3aeb613386a23..89e3c8afb915caf69290bd359a9451c4c2d56316 100644 (file)
@@ -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
index d1aa61640a2f80d043aab4a8b46d1bd77d2345af..4edf335c338fa3ff70f05936fde5c4d0d0211bf0 100644 (file)
@@ -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"
index f374277f3dcb8a11dd2bb9d1a7381e17a2a993b0..f300ab2a7b057624f6f9113c79da4d2045b18968 100644 (file)
@@ -5,7 +5,6 @@
 
 #include "node.h"
 #include "code.h"
-#include "eval.h"
 
 #include <ctype.h>
 
index 1eb5f6204ba37f24581d11ce81e201beaec59afa..140112fc1395925d47dd0cb7e12ab3523aed1470 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "code.h"
 #include "frameobject.h"
-#include "eval.h"
 #include "opcode.h"
 #include "structmember.h"
 
index fb2759650be33c81022259ca2df498bb9e7a828e..dfb2c9bcf7f5701c402ea62d5e6a68be93085899 100644 (file)
 
 #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"
 
index 551edc6085e4cb710a6217486d035809bc223c24..d6b653f31593b8fb5e754d3fb8447a0e9da8dc6a 100644 (file)
@@ -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"
index 85ead86d1add8d772b8b2106e13fc0e2d53c06a4..67c4f70adb5085de0e17729156ba7a138d778f20 100644 (file)
@@ -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"
 
index 9d06963e2cf322c8c774feb7a42d5924e6b5119d..f972e1611e662969a485654268e1ecd14ebcb163 100644 (file)
@@ -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"
 
index 2d63638856c488955cbfc1ab7e9ff05eab07fa81..5a255ae497e16f4c1873a9ba900f38d575bd0efb 100644 (file)
@@ -1,5 +1,4 @@
 #include "Python.h"
-#include "pyarena.h"
 
 /* A simple arena block structure.
 
index 37c1f1197aa746e540d5db30b552746ce001c064..de8e9da4b66ce4ea4b3b56f4c10d6fc8527ee22c 100644 (file)
 #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>
index 1aa4271d76c03ee077fb8eb4f32e68112607ffb7..204c8c8cc93d17d166712ab7f2681380cd8ed1c8 100644 (file)
@@ -17,7 +17,6 @@ Data members:
 #include "Python.h"
 #include "code.h"
 #include "frameobject.h"
-#include "eval.h"
 
 #include "osdefs.h"
 
index ab10cfd161897c1b52deff7cf890c993ad876c3d..59bb3f0d1516481a642548c599cd0a38426c68bc 100644 (file)
@@ -7,7 +7,6 @@
 #include "frameobject.h"
 #include "structmember.h"
 #include "osdefs.h"
-#include "traceback.h"
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
 #endif