diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-21 04:23:36 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-21 04:23:36 (GMT) |
commit | 58a7985465c7c6051c8487b0906c03555c2f8a7d (patch) | |
tree | 5f7bbbc551feea07aa6efa8440eaa707188cf04f /Include/code.h | |
parent | 6d777bb122e066f7847709673556d23263fb2380 (diff) | |
download | cpython-58a7985465c7c6051c8487b0906c03555c2f8a7d.zip cpython-58a7985465c7c6051c8487b0906c03555c2f8a7d.tar.gz cpython-58a7985465c7c6051c8487b0906c03555c2f8a7d.tar.bz2 |
Use the newer names for APIs after the AST merge
Diffstat (limited to 'Include/code.h')
-rw-r--r-- | Include/code.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/code.h b/Include/code.h index e6478b0..6edb054 100644 --- a/Include/code.h +++ b/Include/code.h @@ -50,17 +50,17 @@ typedef struct { #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_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars)) /* Public interface */ -DL_IMPORT(PyCodeObject *) PyCode_New( +PyAPI_FUNC(PyCodeObject *) PyCode_New( int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *); /* same as struct above */ -DL_IMPORT(int) PyCode_Addr2Line(PyCodeObject *, int); +PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int); /* for internal use only */ #define _PyCode_GETCODEPTR(co, pp) \ |