mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add missing "static" declarations (found by "make smelly").
This commit is contained in:
parent
2677512fc1
commit
f23473f008
2 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ typedef struct {
|
||||||
PyObject *md_dict;
|
PyObject *md_dict;
|
||||||
} PyModuleObject;
|
} PyModuleObject;
|
||||||
|
|
||||||
PyMemberDef module_members[] = {
|
static PyMemberDef module_members[] = {
|
||||||
{"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
|
{"__dict__", T_OBJECT, offsetof(PyModuleObject, md_dict), READONLY},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
|
@ -80,7 +80,7 @@ type_dict(PyTypeObject *type, void *context)
|
||||||
return PyDictProxy_New(type->tp_dict);
|
return PyDictProxy_New(type->tp_dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
PyGetSetDef type_getsets[] = {
|
static PyGetSetDef type_getsets[] = {
|
||||||
{"__name__", (getter)type_name, NULL, NULL},
|
{"__name__", (getter)type_name, NULL, NULL},
|
||||||
{"__module__", (getter)type_module, (setter)type_set_module, NULL},
|
{"__module__", (getter)type_module, (setter)type_set_module, NULL},
|
||||||
{"__dict__", (getter)type_dict, NULL, NULL},
|
{"__dict__", (getter)type_dict, NULL, NULL},
|
||||||
|
@ -371,7 +371,7 @@ lookup_method(PyObject *self, char *attrstr, PyObject **attrobj)
|
||||||
instead of PyObject_GetAttrString(). This uses the same convention
|
instead of PyObject_GetAttrString(). This uses the same convention
|
||||||
as lookup_method to cache the interned name string object. */
|
as lookup_method to cache the interned name string object. */
|
||||||
|
|
||||||
PyObject *
|
static PyObject *
|
||||||
call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
|
call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
|
@ -407,7 +407,7 @@ call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
|
||||||
|
|
||||||
/* Clone of call_method() that returns NotImplemented when the lookup fails. */
|
/* Clone of call_method() that returns NotImplemented when the lookup fails. */
|
||||||
|
|
||||||
PyObject *
|
static PyObject *
|
||||||
call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
|
call_maybe(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
|
@ -674,7 +674,7 @@ subtype_dict(PyObject *obj, void *context)
|
||||||
return dict;
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyGetSetDef subtype_getsets[] = {
|
static PyGetSetDef subtype_getsets[] = {
|
||||||
{"__dict__", subtype_dict, NULL, NULL},
|
{"__dict__", subtype_dict, NULL, NULL},
|
||||||
{0},
|
{0},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue