[Python-checkins] python/dist/src/Include code.h,2.1,2.2
nnorwitz@users.sourceforge.net
nnorwitz at users.sourceforge.net
Fri Oct 21 06:23:39 CEST 2005
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22879/Include
Modified Files:
code.h
Log Message:
Use the newer names for APIs after the AST merge
Index: code.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/code.h,v
retrieving revision 2.1
retrieving revision 2.2
diff -u -d -r2.1 -r2.2
--- code.h 20 Oct 2005 19:59:24 -0000 2.1
+++ code.h 21 Oct 2005 04:23:36 -0000 2.2
@@ -50,17 +50,17 @@
#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) \
More information about the Python-checkins
mailing list