Commit 2677512f authored by Neil Schemenauer's avatar Neil Schemenauer

Adding missing "static" declarations (found by "make smelly").

parent c3ffef66
...@@ -215,7 +215,7 @@ static PyMethodDef new_methods[] = { ...@@ -215,7 +215,7 @@ static PyMethodDef new_methods[] = {
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
char new_doc[] = static char new_doc[] =
"Functions to create new objects used by the interpreter.\n\ "Functions to create new objects used by the interpreter.\n\
\n\ \n\
You need to know a great deal about the interpreter to use this!"; You need to know a great deal about the interpreter to use this!";
......
...@@ -197,7 +197,7 @@ static PyTypeObject spamdict_type = { ...@@ -197,7 +197,7 @@ static PyTypeObject spamdict_type = {
0, /* tp_new */ 0, /* tp_new */
}; };
PyObject * static PyObject *
spam_bench(PyObject *self, PyObject *args) spam_bench(PyObject *self, PyObject *args)
{ {
PyObject *obj, *name, *res; PyObject *obj, *name, *res;
......
...@@ -673,7 +673,7 @@ proxy_getiter(proxyobject *pp) ...@@ -673,7 +673,7 @@ proxy_getiter(proxyobject *pp)
return PyObject_GetIter(pp->dict); return PyObject_GetIter(pp->dict);
} }
PyObject * static PyObject *
proxy_str(proxyobject *pp) proxy_str(proxyobject *pp)
{ {
return PyObject_Str(pp->dict); return PyObject_Str(pp->dict);
...@@ -693,7 +693,7 @@ proxy_traverse(PyObject *self, visitproc visit, void *arg) ...@@ -693,7 +693,7 @@ proxy_traverse(PyObject *self, visitproc visit, void *arg)
return 0; return 0;
} }
PyTypeObject proxytype = { static PyTypeObject proxytype = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(&PyType_Type)
0, /* ob_size */ 0, /* ob_size */
"dict-proxy", /* tp_name */ "dict-proxy", /* tp_name */
...@@ -827,7 +827,7 @@ wrapper_traverse(PyObject *self, visitproc visit, void *arg) ...@@ -827,7 +827,7 @@ wrapper_traverse(PyObject *self, visitproc visit, void *arg)
return 0; return 0;
} }
PyTypeObject wrappertype = { static PyTypeObject wrappertype = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(&PyType_Type)
0, /* ob_size */ 0, /* ob_size */
"method-wrapper", /* tp_name */ "method-wrapper", /* tp_name */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment