]> granicus.if.org Git - python/commitdiff
Prevent namespace pollution, add static for internal functions
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 15 Apr 2008 03:46:21 +0000 (03:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 15 Apr 2008 03:46:21 +0000 (03:46 +0000)
Objects/abstract.c
Objects/descrobject.c

index 6d948d4b6b9b8ff865571255e3f529cbca074a87..83de88f6e4cea4f1f809fcc513e695164d04b727 100644 (file)
@@ -446,7 +446,7 @@ PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices)
 }
 
 
-void
+static void
 _add_one_to_index_F(int nd, Py_ssize_t *index, Py_ssize_t *shape)
 {
        int k;
@@ -462,7 +462,7 @@ _add_one_to_index_F(int nd, Py_ssize_t *index, Py_ssize_t *shape)
        }
 }
 
-void
+static void
 _add_one_to_index_C(int nd, Py_ssize_t *index, Py_ssize_t *shape)
 {
        int k;
index 9823b7436c3210df4807ebdf1a23a6424afdbcca..fcc174e0b7c33f8da1ff53ff4e62f1eba0618e77 100644 (file)
@@ -1116,7 +1116,7 @@ static PyMemberDef property_members[] = {
 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 @@ property_getter(PyObject *self, PyObject *getter)
 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 @@ property_setter(PyObject *self, PyObject *setter)
 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);