Don't declare a function with staticforward.
authorJeremy Hylton <jeremy@alum.mit.edu>
Sat, 13 Jul 2002 03:51:17 +0000 (03:51 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Sat, 13 Jul 2002 03:51:17 +0000 (03:51 +0000)
Just declare it static so that lame (BAD_STATIC_FORWARD) compilers
don't see a mismatch between the prototype and the function.

Objects/listobject.c

index 36aa7f3a661a8ac1953035eb734c28d97263864d..dd2d5806dd3bb701aa3291b7fb3ae6d013e731e1 100644 (file)
@@ -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)) {