Use the newer names for APIs after the AST merge
This commit is contained in:
parent
6d777bb122
commit
58a7985465
@ -50,17 +50,17 @@ typedef struct {
|
|||||||
|
|
||||||
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
|
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */
|
||||||
|
|
||||||
extern DL_IMPORT(PyTypeObject) PyCode_Type;
|
PyAPI_DATA(PyTypeObject) PyCode_Type;
|
||||||
|
|
||||||
#define PyCode_Check(op) ((op)->ob_type == &PyCode_Type)
|
#define PyCode_Check(op) ((op)->ob_type == &PyCode_Type)
|
||||||
#define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
|
#define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars))
|
||||||
|
|
||||||
/* Public interface */
|
/* Public interface */
|
||||||
DL_IMPORT(PyCodeObject *) PyCode_New(
|
PyAPI_FUNC(PyCodeObject *) PyCode_New(
|
||||||
int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
|
int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *,
|
||||||
PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
|
PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *);
|
||||||
/* same as struct above */
|
/* same as struct above */
|
||||||
DL_IMPORT(int) PyCode_Addr2Line(PyCodeObject *, int);
|
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
|
||||||
|
|
||||||
/* for internal use only */
|
/* for internal use only */
|
||||||
#define _PyCode_GETCODEPTR(co, pp) \
|
#define _PyCode_GETCODEPTR(co, pp) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user