From ec97a28b60b40d366379d22876baebcdd06a89ad Mon Sep 17 00:00:00 2001
From: Jeremy Hylton <jeremy@alum.mit.edu>
Date: Fri, 21 Oct 2005 14:58:06 +0000
Subject: Fix a bunch of imports to use code.h instead of compile.h. Remove
 duplicate declarations from compile.h

---
 Include/compile.h     | 5 -----
 Modules/_hotshot.c    | 1 -
 Modules/main.c        | 2 +-
 Modules/pyexpat.c     | 1 -
 Modules/zipimport.c   | 1 -
 Objects/frameobject.c | 1 -
 Python/bltinmodule.c  | 1 -
 Python/marshal.c      | 1 -
 Python/symtable.c     | 1 -
 9 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/Include/compile.h b/Include/compile.h
index 27a3f76..01fd756 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -11,11 +11,6 @@ extern "C" {
 /* Public interface */
 struct _node; /* Declare the existence of this type */
 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
-PyAPI_FUNC(PyCodeObject *) PyCode_New(
-	int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
-	PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *); 
-        /* same as struct above */
-PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
 
 /* Future feature support */
 
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index 0842728..ddfd336 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -4,7 +4,6 @@
 
 #include "Python.h"
 #include "code.h"
-#include "compile.h"
 #include "eval.h"
 #include "frameobject.h"
 #include "structmember.h"
diff --git a/Modules/main.c b/Modules/main.c
index d511e59..f6fa48b 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -2,7 +2,7 @@
 
 #include "Python.h"
 #include "osdefs.h"
-#include "compile.h" /* For CO_FUTURE_DIVISION */
+#include "code.h" /* For CO_FUTURE_DIVISION */
 #include "import.h"
 
 #ifdef __VMS
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 438f760..c853160 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1,7 +1,6 @@
 #include "Python.h"
 #include <ctype.h>
 
-#include "compile.h"
 #include "frameobject.h"
 #include "expat.h"
 
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index e445300..934367e 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -2,7 +2,6 @@
 #include "structmember.h"
 #include "osdefs.h"
 #include "marshal.h"
-#include "compile.h"
 #include <time.h>
 
 
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 8ebf500..3535544 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -4,7 +4,6 @@
 #include "Python.h"
 
 #include "code.h"
-#include "compile.h"
 #include "frameobject.h"
 #include "opcode.h"
 #include "structmember.h"
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 2d51531..fed657f 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -4,7 +4,6 @@
 
 #include "node.h"
 #include "code.h"
-#include "compile.h"
 #include "eval.h"
 
 #include <ctype.h>
diff --git a/Python/marshal.c b/Python/marshal.c
index 4114c8e..1962f92 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -7,7 +7,6 @@
 #include "Python.h"
 #include "longintrepr.h"
 #include "code.h"
-#include "compile.h"
 #include "marshal.h"
 
 /* High water mark to determine when the marshalled object is dangerously deep
diff --git a/Python/symtable.c b/Python/symtable.c
index 7af1390..49d153b 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -1,7 +1,6 @@
 #include "Python.h"
 #include "Python-ast.h"
 #include "code.h"
-#include "compile.h"
 #include "symtable.h"
 #include "structmember.h"
 
-- 
cgit v0.12

