mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -6,7 +6,7 @@ extern "C" {
|
|||
|
||||
/* The unique ellipsis object "..." */
|
||||
|
||||
extern DL_IMPORT(PyObject) _Py_EllipsisObject; /* Don't use this directly */
|
||||
PyAPI_DATA(PyObject) _Py_EllipsisObject; /* Don't use this directly */
|
||||
|
||||
#define Py_Ellipsis (&_Py_EllipsisObject)
|
||||
|
||||
|
@ -24,15 +24,15 @@ typedef struct {
|
|||
PyObject *start, *stop, *step;
|
||||
} PySliceObject;
|
||||
|
||||
extern DL_IMPORT(PyTypeObject) PySlice_Type;
|
||||
PyAPI_DATA(PyTypeObject) PySlice_Type;
|
||||
|
||||
#define PySlice_Check(op) ((op)->ob_type == &PySlice_Type)
|
||||
|
||||
DL_IMPORT(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
|
||||
PyAPI_FUNC(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
|
||||
PyObject* step);
|
||||
DL_IMPORT(int) PySlice_GetIndices(PySliceObject *r, int length,
|
||||
PyAPI_FUNC(int) PySlice_GetIndices(PySliceObject *r, int length,
|
||||
int *start, int *stop, int *step);
|
||||
DL_IMPORT(int) PySlice_GetIndicesEx(PySliceObject *r, int length,
|
||||
PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, int length,
|
||||
int *start, int *stop,
|
||||
int *step, int *slicelength);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue