diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-08-12 07:21:58 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-08-12 07:21:58 (GMT) |
commit | 91a681debf9ffec155d0aff8a0bb5f965f592e16 (patch) | |
tree | 09f28782e3b0a24e64deddeafc9df24ac93855ca /Include/listobject.h | |
parent | 44121a6bc9828c993932b87e442440dc4f260f3c (diff) | |
download | cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.zip cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.gz cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.bz2 |
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
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]) |