diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-06 14:58:21 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-06 14:58:21 (GMT) |
commit | 56f46f8d8c1af1cf150df61f5aeafa40ca0b18e5 (patch) | |
tree | 5a9cea16ee97a412d5b8dcdf41b531d9ee8a799d /Objects/rangeobject.c | |
parent | a683233d87f5024b9eb944dd408c3a7c4ed3c1ad (diff) | |
download | cpython-56f46f8d8c1af1cf150df61f5aeafa40ca0b18e5.zip cpython-56f46f8d8c1af1cf150df61f5aeafa40ca0b18e5.tar.gz cpython-56f46f8d8c1af1cf150df61f5aeafa40ca0b18e5.tar.bz2 |
Pyrangeiter_Type && range_iter should be static
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r-- | Objects/rangeobject.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 0ac4687..1360864 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -218,9 +218,9 @@ typedef struct { long len; } rangeiterobject; -PyTypeObject Pyrangeiter_Type; +staticforward PyTypeObject Pyrangeiter_Type; -PyObject * +static PyObject * range_iter(PyObject *seq) { rangeiterobject *it; @@ -261,11 +261,11 @@ static PyMethodDef rangeiter_methods[] = { {NULL, NULL} /* sentinel */ }; -PyTypeObject Pyrangeiter_Type = { +static PyTypeObject Pyrangeiter_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, /* ob_size */ - "rangeiterator", /* tp_name */ - sizeof(rangeiterobject), /* tp_basicsize */ + "rangeiterator", /* tp_name */ + sizeof(rangeiterobject), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ (destructor)PyObject_Del, /* tp_dealloc */ |