[Python-checkins] r72902 - in python/branches/py3k/Modules: _functoolsmodule.c posixmodule.c

antoine.pitrou python-checkins at python.org
Sun May 24 23:25:50 CEST 2009


Author: antoine.pitrou
Date: Sun May 24 23:25:49 2009
New Revision: 72902

Log:
Make some private functions static (thanks `make smelly`)



Modified:
   python/branches/py3k/Modules/_functoolsmodule.c
   python/branches/py3k/Modules/posixmodule.c

Modified: python/branches/py3k/Modules/_functoolsmodule.c
==============================================================================
--- python/branches/py3k/Modules/_functoolsmodule.c	(original)
+++ python/branches/py3k/Modules/_functoolsmodule.c	Sun May 24 23:25:49 2009
@@ -203,7 +203,7 @@
    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 @@
 			     pto->dict ? pto->dict : Py_None);
 }
 
-PyObject *
+static PyObject *
 partial_setstate(partialobject *pto, PyObject *args)
 {
 	PyObject *fn, *fnargs, *kw, *dict;

Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c	(original)
+++ python/branches/py3k/Modules/posixmodule.c	Sun May 24 23:25:49 2009
@@ -3117,6 +3117,7 @@
 	PyMem_DEL(array);
 }
 
+static
 int fsconvert_strdup(PyObject *o, char**out)
 {
 	PyObject *bytes;


More information about the Python-checkins mailing list