From: Jeremy Hylton Date: Sat, 13 Jul 2002 03:51:17 +0000 (+0000) Subject: Don't declare a function with staticforward. X-Git-Tag: v2.3c1~5014 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4b4c3bf0533a92a8cd7e45e667b95980f1f0c96;p=python 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. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 36aa7f3a66..dd2d5806dd 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)) {