projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
346386f
)
Don't declare a function with staticforward.
author
Jeremy Hylton
<jeremy@alum.mit.edu>
Sat, 13 Jul 2002 03:51:17 +0000
(
03:51
+0000)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/Objects/listobject.c
b/Objects/listobject.c
index 36aa7f3a661a8ac1953035eb734c28d97263864d..dd2d5806dd3bb701aa3291b7fb3ae6d013e731e1 100644
(file)
--- 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");
-static
forward 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)) {