[Python-checkins] r62348 - in python/trunk/Objects: abstract.c descrobject.c

neal.norwitz python-checkins at python.org
Tue Apr 15 05:46:22 CEST 2008


Author: neal.norwitz
Date: Tue Apr 15 05:46:21 2008
New Revision: 62348

Log:
Prevent namespace pollution, add static for internal functions

Modified:
   python/trunk/Objects/abstract.c
   python/trunk/Objects/descrobject.c

Modified: python/trunk/Objects/abstract.c
==============================================================================
--- python/trunk/Objects/abstract.c	(original)
+++ python/trunk/Objects/abstract.c	Tue Apr 15 05:46:21 2008
@@ -446,7 +446,7 @@
 }
 
 
-void
+static void
 _add_one_to_index_F(int nd, Py_ssize_t *index, Py_ssize_t *shape)
 {
 	int k;
@@ -462,7 +462,7 @@
 	}
 }
 
-void
+static void
 _add_one_to_index_C(int nd, Py_ssize_t *index, Py_ssize_t *shape)
 {
 	int k;

Modified: python/trunk/Objects/descrobject.c
==============================================================================
--- python/trunk/Objects/descrobject.c	(original)
+++ python/trunk/Objects/descrobject.c	Tue Apr 15 05:46:21 2008
@@ -1116,7 +1116,7 @@
 PyDoc_STRVAR(getter_doc,
 	     "Descriptor to change the getter on a property.");
 
-PyObject *
+static PyObject *
 property_getter(PyObject *self, PyObject *getter)
 {
 	return property_copy(self, getter, NULL, NULL, NULL);
@@ -1126,7 +1126,7 @@
 PyDoc_STRVAR(setter_doc,
 	     "Descriptor to change the setter on a property.");
 
-PyObject *
+static PyObject *
 property_setter(PyObject *self, PyObject *setter)
 {
 	return property_copy(self, NULL, setter, NULL, NULL);
@@ -1136,7 +1136,7 @@
 PyDoc_STRVAR(deleter_doc,
 	     "Descriptor to change the deleter on a property.");
 
-PyObject *
+static PyObject *
 property_deleter(PyObject *self, PyObject *deleter)
 {
 	return property_copy(self, NULL, NULL, deleter, NULL);


More information about the Python-checkins mailing list