From 2677512fc17487fc8cb0989353face9bd112dd67 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sun, 21 Oct 2001 22:26:43 +0000 Subject: [PATCH] Adding missing "static" declarations (found by "make smelly"). --- Modules/newmodule.c | 2 +- Modules/xxsubtype.c | 2 +- Objects/descrobject.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/newmodule.c b/Modules/newmodule.c index 7b91fb8bc3e..9a9cbf16855 100644 --- a/Modules/newmodule.c +++ b/Modules/newmodule.c @@ -215,7 +215,7 @@ static PyMethodDef new_methods[] = { {NULL, NULL} /* sentinel */ }; -char new_doc[] = +static char new_doc[] = "Functions to create new objects used by the interpreter.\n\ \n\ You need to know a great deal about the interpreter to use this!"; diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c index ae2b619dd3f..bbc5ea9b77b 100644 --- a/Modules/xxsubtype.c +++ b/Modules/xxsubtype.c @@ -197,7 +197,7 @@ static PyTypeObject spamdict_type = { 0, /* tp_new */ }; -PyObject * +static PyObject * spam_bench(PyObject *self, PyObject *args) { PyObject *obj, *name, *res; diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 1d525daf98f..e4d9f33023f 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -673,7 +673,7 @@ proxy_getiter(proxyobject *pp) return PyObject_GetIter(pp->dict); } -PyObject * +static PyObject * proxy_str(proxyobject *pp) { return PyObject_Str(pp->dict); @@ -693,7 +693,7 @@ proxy_traverse(PyObject *self, visitproc visit, void *arg) return 0; } -PyTypeObject proxytype = { +static PyTypeObject proxytype = { PyObject_HEAD_INIT(&PyType_Type) 0, /* ob_size */ "dict-proxy", /* tp_name */ @@ -827,7 +827,7 @@ wrapper_traverse(PyObject *self, visitproc visit, void *arg) return 0; } -PyTypeObject wrappertype = { +static PyTypeObject wrappertype = { PyObject_HEAD_INIT(&PyType_Type) 0, /* ob_size */ "method-wrapper", /* tp_name */