Skip to content

Commit

Permalink
Fix a bunch of imports to use code.h instead of compile.h.
Browse files Browse the repository at this point in the history
Remove duplicate declarations from compile.h
  • Loading branch information
jeremyhylton committed Oct 21, 2005
1 parent 0f00ba8 commit ec97a28
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 13 deletions.
5 changes: 0 additions & 5 deletions Include/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
1 change: 0 additions & 1 deletion Modules/_hotshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "Python.h"
#include "code.h"
#include "compile.h"
#include "eval.h"
#include "frameobject.h"
#include "structmember.h"
Expand Down
2 changes: 1 addition & 1 deletion Modules/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion Modules/pyexpat.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Python.h"
#include <ctype.h>

#include "compile.h"
#include "frameobject.h"
#include "expat.h"

Expand Down
1 change: 0 additions & 1 deletion Modules/zipimport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "structmember.h"
#include "osdefs.h"
#include "marshal.h"
#include "compile.h"
#include <time.h>


Expand Down
1 change: 0 additions & 1 deletion Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "Python.h"

#include "code.h"
#include "compile.h"
#include "frameobject.h"
#include "opcode.h"
#include "structmember.h"
Expand Down
1 change: 0 additions & 1 deletion Python/bltinmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "node.h"
#include "code.h"
#include "compile.h"
#include "eval.h"

#include <ctype.h>
Expand Down
1 change: 0 additions & 1 deletion Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion Python/symtable.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Python.h"
#include "Python-ast.h"
#include "code.h"
#include "compile.h"
#include "symtable.h"
#include "structmember.h"

Expand Down

0 comments on commit ec97a28

Please sign in to comment.