Include/internal/pycore_range.h
raw| 1 | #ifndef Py_INTERNAL_RANGE_H |
| 2 | #define Py_INTERNAL_RANGE_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | #ifndef Py_BUILD_CORE |
| 8 | # error "this header requires Py_BUILD_CORE define" |
| 9 | #endif |
| 10 | |
| 11 | typedef struct { |
| 12 | PyObject_HEAD |
| 13 | long start; |
| 14 | long step; |
| 15 | long len; |
| 16 | } _PyRangeIterObject; |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | #endif /* !Py_INTERNAL_RANGE_H */ |