Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / include / python2.4 / rangeobject.h
CommitLineData
920dae64
AT
1
2/* Range object interface */
3
4#ifndef Py_RANGEOBJECT_H
5#define Py_RANGEOBJECT_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10/* This is about the type 'xrange', not the built-in function range(), which
11 returns regular lists. */
12
13/*
14A range object represents an integer range. This is an immutable object;
15a range cannot change its value after creation.
16
17Range objects behave like the corresponding tuple objects except that
18they are represented by a start, stop, and step datamembers.
19*/
20
21PyAPI_DATA(PyTypeObject) PyRange_Type;
22
23#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
24
25PyAPI_FUNC(PyObject *) PyRange_New(long, long, long, int);
26
27#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_RANGEOBJECT_H */