Skip to content

Commit f424f50

Browse files
author
nnorwitz
committed
Use the newer names for APIs after the AST merge
git-svn-id: http://svn.python.org/projects/python/trunk@39760 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent c76e6a7 commit f424f50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/code.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ typedef struct {
5050

5151
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
5252

53-
extern DL_IMPORT(PyTypeObject) PyCode_Type;
53+
PyAPI_DATA(PyTypeObject) PyCode_Type;
5454

5555
#define PyCode_Check(op) ((op)->ob_type == &PyCode_Type)
5656
#define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
5757

5858
/* Public interface */
59-
DL_IMPORT(PyCodeObject *) PyCode_New(
59+
PyAPI_FUNC(PyCodeObject *) PyCode_New(
6060
int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
6161
PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
6262
/* same as struct above */
63-
DL_IMPORT(int) PyCode_Addr2Line(PyCodeObject *, int);
63+
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
6464

6565
/* for internal use only */
6666
#define _PyCode_GETCODEPTR(co, pp) \

0 commit comments

Comments
 (0)