diff options
Diffstat (limited to 'Include/listobject.h')
-rw-r--r-- | Include/listobject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/listobject.h b/Include/listobject.h index 1befe86..14ed72e 100644 --- a/Include/listobject.h +++ b/Include/listobject.h @@ -24,22 +24,22 @@ typedef struct { PyObject **ob_item; } PyListObject; -extern DL_IMPORT(PyTypeObject) PyList_Type; +PyAPI_DATA(PyTypeObject) PyList_Type; #define PyList_Check(op) PyObject_TypeCheck(op, &PyList_Type) #define PyList_CheckExact(op) ((op)->ob_type == &PyList_Type) -extern DL_IMPORT(PyObject *) PyList_New(int size); -extern DL_IMPORT(int) PyList_Size(PyObject *); -extern DL_IMPORT(PyObject *) PyList_GetItem(PyObject *, int); -extern DL_IMPORT(int) PyList_SetItem(PyObject *, int, PyObject *); -extern DL_IMPORT(int) PyList_Insert(PyObject *, int, PyObject *); -extern DL_IMPORT(int) PyList_Append(PyObject *, PyObject *); -extern DL_IMPORT(PyObject *) PyList_GetSlice(PyObject *, int, int); -extern DL_IMPORT(int) PyList_SetSlice(PyObject *, int, int, PyObject *); -extern DL_IMPORT(int) PyList_Sort(PyObject *); -extern DL_IMPORT(int) PyList_Reverse(PyObject *); -extern DL_IMPORT(PyObject *) PyList_AsTuple(PyObject *); +PyAPI_FUNC(PyObject *) PyList_New(int size); +PyAPI_FUNC(int) PyList_Size(PyObject *); +PyAPI_FUNC(PyObject *) PyList_GetItem(PyObject *, int); +PyAPI_FUNC(int) PyList_SetItem(PyObject *, int, PyObject *); +PyAPI_FUNC(int) PyList_Insert(PyObject *, int, PyObject *); +PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) PyList_GetSlice(PyObject *, int, int); +PyAPI_FUNC(int) PyList_SetSlice(PyObject *, int, int, PyObject *); +PyAPI_FUNC(int) PyList_Sort(PyObject *); +PyAPI_FUNC(int) PyList_Reverse(PyObject *); +PyAPI_FUNC(PyObject *) PyList_AsTuple(PyObject *); /* Macro, trading safety for speed */ #define PyList_GET_ITEM(op, i) (((PyListObject *)(op))->ob_item[i]) |