summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-07-13 03:51:17 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-07-13 03:51:17 (GMT)
commita4b4c3bf0533a92a8cd7e45e667b95980f1f0c96 (patch)
treeaa4f42b0d34e4efa4ed1aa1e47075b24e4bc307d /Objects/listobject.c
parent346386fedc4ed41f1c748ff83c7dd686cefda2f5 (diff)
downloadcpython-a4b4c3bf0533a92a8cd7e45e667b95980f1f0c96.zip
cpython-a4b4c3bf0533a92a8cd7e45e667b95980f1f0c96.tar.gz
cpython-a4b4c3bf0533a92a8cd7e45e667b95980f1f0c96.tar.bz2
Don't declare a function with staticforward.
Just declare it static so that lame (BAD_STATIC_FORWARD) compilers don't see a mismatch between the prototype and the function.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 36aa7f3..dd2d580 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1684,9 +1684,9 @@ PyDoc_STRVAR(list_doc,
"list() -> new list\n"
"list(sequence) -> new list initialized from sequence's items");
-staticforward PyObject * list_iter(PyObject *seq);
+static PyObject *list_iter(PyObject *seq);
-static PyObject*
+static PyObject *
list_subscript(PyListObject* self, PyObject* item)
{
if (PyInt_Check(item)) {