Skip to content

Commit cf13a93

Browse files
author
nascheme
committed
Adding missing "static" declarations (found by "make smelly").
git-svn-id: http://svn.python.org/projects/python/trunk@23865 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 7c8a6fe commit cf13a93

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Modules/newmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static PyMethodDef new_methods[] = {
215215
{NULL, NULL} /* sentinel */
216216
};
217217

218-
char new_doc[] =
218+
static char new_doc[] =
219219
"Functions to create new objects used by the interpreter.\n\
220220
\n\
221221
You need to know a great deal about the interpreter to use this!";

Modules/xxsubtype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static PyTypeObject spamdict_type = {
197197
0, /* tp_new */
198198
};
199199

200-
PyObject *
200+
static PyObject *
201201
spam_bench(PyObject *self, PyObject *args)
202202
{
203203
PyObject *obj, *name, *res;

Objects/descrobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ proxy_getiter(proxyobject *pp)
673673
return PyObject_GetIter(pp->dict);
674674
}
675675

676-
PyObject *
676+
static PyObject *
677677
proxy_str(proxyobject *pp)
678678
{
679679
return PyObject_Str(pp->dict);
@@ -693,7 +693,7 @@ proxy_traverse(PyObject *self, visitproc visit, void *arg)
693693
return 0;
694694
}
695695

696-
PyTypeObject proxytype = {
696+
static PyTypeObject proxytype = {
697697
PyObject_HEAD_INIT(&PyType_Type)
698698
0, /* ob_size */
699699
"dict-proxy", /* tp_name */
@@ -827,7 +827,7 @@ wrapper_traverse(PyObject *self, visitproc visit, void *arg)
827827
return 0;
828828
}
829829

830-
PyTypeObject wrappertype = {
830+
static PyTypeObject wrappertype = {
831831
PyObject_HEAD_INIT(&PyType_Type)
832832
0, /* ob_size */
833833
"method-wrapper", /* tp_name */

0 commit comments

Comments
 (0)