mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
346386fedc
commit
a4b4c3bf05
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue