Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec97a28

Browse files
committed
Fix a bunch of imports to use code.h instead of compile.h.
Remove duplicate declarations from compile.h
1 parent 0f00ba8 commit ec97a28

9 files changed

Lines changed: 1 addition & 13 deletions

File tree

Include/compile.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ extern "C" {
1111
/* Public interface */
1212
struct _node; /* Declare the existence of this type */
1313
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
14-
PyAPI_FUNC(PyCodeObject *) PyCode_New(
15-
int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
16-
PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
17-
/* same as struct above */
18-
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
1914

2015
/* Future feature support */
2116

Modules/_hotshot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include "Python.h"
66
#include "code.h"
7-
#include "compile.h"
87
#include "eval.h"
98
#include "frameobject.h"
109
#include "structmember.h"

Modules/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "Python.h"
44
#include "osdefs.h"
5-
#include "compile.h" /* For CO_FUTURE_DIVISION */
5+
#include "code.h" /* For CO_FUTURE_DIVISION */
66
#include "import.h"
77

88
#ifdef __VMS

Modules/pyexpat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "Python.h"
22
#include <ctype.h>
33

4-
#include "compile.h"
54
#include "frameobject.h"
65
#include "expat.h"
76

Modules/zipimport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "structmember.h"
33
#include "osdefs.h"
44
#include "marshal.h"
5-
#include "compile.h"
65
#include <time.h>
76

87

Objects/frameobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "Python.h"
55

66
#include "code.h"
7-
#include "compile.h"
87
#include "frameobject.h"
98
#include "opcode.h"
109
#include "structmember.h"

Python/bltinmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#include "node.h"
66
#include "code.h"
7-
#include "compile.h"
87
#include "eval.h"
98

109
#include <ctype.h>

Python/marshal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "Python.h"
88
#include "longintrepr.h"
99
#include "code.h"
10-
#include "compile.h"
1110
#include "marshal.h"
1211

1312
/* High water mark to determine when the marshalled object is dangerously deep

Python/symtable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "Python.h"
22
#include "Python-ast.h"
33
#include "code.h"
4-
#include "compile.h"
54
#include "symtable.h"
65
#include "structmember.h"
76

0 commit comments

Comments
 (0)