From: Antoine Pitrou Date: Sun, 24 May 2009 21:25:49 +0000 (+0000) Subject: Make some private functions static (thanks `make smelly`) X-Git-Tag: v3.1rc1~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69f7114fc298b0332fd5e9754eaf41256bd6d5da;p=python Make some private functions static (thanks `make smelly`) --- diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index 5f389a9589..a9cdcb84e4 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -203,7 +203,7 @@ static PyGetSetDef partial_getsetlist[] = { it as a hook to do stange things. */ -PyObject * +static PyObject * partial_reduce(partialobject *pto, PyObject *unused) { return Py_BuildValue("O(O)(OOOO)", Py_TYPE(pto), pto->fn, pto->fn, @@ -211,7 +211,7 @@ partial_reduce(partialobject *pto, PyObject *unused) pto->dict ? pto->dict : Py_None); } -PyObject * +static PyObject * partial_setstate(partialobject *pto, PyObject *args) { PyObject *fn, *fnargs, *kw, *dict; diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f6c36cfff0..7f6568c82c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3117,6 +3117,7 @@ free_string_array(char **array, Py_ssize_t count) PyMem_DEL(array); } +static int fsconvert_strdup(PyObject *o, char**out) { PyObject *bytes;