mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
This commit is contained in:
parent
44121a6bc9
commit
91a681debf
51 changed files with 661 additions and 665 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue