annotate DEPENDENCIES/mingw32/Python27/include/sliceobject.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1 #ifndef Py_SLICEOBJECT_H
Chris@87 2 #define Py_SLICEOBJECT_H
Chris@87 3 #ifdef __cplusplus
Chris@87 4 extern "C" {
Chris@87 5 #endif
Chris@87 6
Chris@87 7 /* The unique ellipsis object "..." */
Chris@87 8
Chris@87 9 PyAPI_DATA(PyObject) _Py_EllipsisObject; /* Don't use this directly */
Chris@87 10
Chris@87 11 #define Py_Ellipsis (&_Py_EllipsisObject)
Chris@87 12
Chris@87 13 /* Slice object interface */
Chris@87 14
Chris@87 15 /*
Chris@87 16
Chris@87 17 A slice object containing start, stop, and step data members (the
Chris@87 18 names are from range). After much talk with Guido, it was decided to
Chris@87 19 let these be any arbitrary python type. Py_None stands for omitted values.
Chris@87 20 */
Chris@87 21
Chris@87 22 typedef struct {
Chris@87 23 PyObject_HEAD
Chris@87 24 PyObject *start, *stop, *step; /* not NULL */
Chris@87 25 } PySliceObject;
Chris@87 26
Chris@87 27 PyAPI_DATA(PyTypeObject) PySlice_Type;
Chris@87 28 PyAPI_DATA(PyTypeObject) PyEllipsis_Type;
Chris@87 29
Chris@87 30 #define PySlice_Check(op) (Py_TYPE(op) == &PySlice_Type)
Chris@87 31
Chris@87 32 PyAPI_FUNC(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
Chris@87 33 PyObject* step);
Chris@87 34 PyAPI_FUNC(PyObject *) _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop);
Chris@87 35 PyAPI_FUNC(int) PySlice_GetIndices(PySliceObject *r, Py_ssize_t length,
Chris@87 36 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step);
Chris@87 37 PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
Chris@87 38 Py_ssize_t *start, Py_ssize_t *stop,
Chris@87 39 Py_ssize_t *step, Py_ssize_t *slicelength);
Chris@87 40
Chris@87 41 #ifdef __cplusplus
Chris@87 42 }
Chris@87 43 #endif
Chris@87 44 #endif /* !Py_SLICEOBJECT_H */