Skip to content

Commit 33bbaa3

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

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Objects/moduleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ typedef struct {
99
PyObject *md_dict;
1010
} PyModuleObject;
1111

12-
PyMemberDef module_members[] = {
12+
static PyMemberDef module_members[] = {
1313
{"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
1414
{0}
1515
};

Objects/typeobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type_dict(PyTypeObject *type, void *context)
8080
return PyDictProxy_New(type->tp_dict);
8181
}
8282

83-
PyGetSetDef type_getsets[] = {
83+
static PyGetSetDef type_getsets[] = {
8484
{"__name__", (getter)type_name, NULL, NULL},
8585
{"__module__", (getter)type_module, (setter)type_set_module, NULL},
8686
{"__dict__", (getter)type_dict, NULL, NULL},
@@ -371,7 +371,7 @@ lookup_method(PyObject *self, char *attrstr, PyObject **attrobj)
371371
instead of PyObject_GetAttrString(). This uses the same convention
372372
as lookup_method to cache the interned name string object. */
373373

374-
PyObject *
374+
static PyObject *
375375
call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
376376
{
377377
va_list va;
@@ -407,7 +407,7 @@ call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
407407

408408
/* Clone of call_method() that returns NotImplemented when the lookup fails. */
409409

410-
PyObject *
410+
static PyObject *
411411
call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
412412
{
413413
va_list va;
@@ -674,7 +674,7 @@ subtype_dict(PyObject *obj, void *context)
674674
return dict;
675675
}
676676

677-
PyGetSetDef subtype_getsets[] = {
677+
static PyGetSetDef subtype_getsets[] = {
678678
{"__dict__", subtype_dict, NULL, NULL},
679679
{0},
680680
};

0 commit comments

Comments
 (0)