Debian Codegraph @

pypy/module/cpyext/include/sliceobject.h

raw symbols SCIP
1 #ifndef Py_SLICEOBJECT_H
2 #define Py_SLICEOBJECT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 /* The unique ellipsis object "..." */
8
9 PyAPI_DATA(PyObject) _Py_EllipsisObject; /* Don't use this directly */
10
11 #define Py_Ellipsis (&_Py_EllipsisObject)
12
13 typedef struct {
14 PyObject_HEAD
15 PyObject *start;
16 PyObject *stop;
17 PyObject *step;
18 } PySliceObject;
19
20 #define PySlice_Check(op) (Py_TYPE(op) == &PySlice_Type)
21
22 PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length,
23 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t step);
24
25 #ifdef __cplusplus
26 }
27 #endif
28 #endif /* !Py_SLICEOBJECT_H */