diff Objects/memoryobject.c @ 64345:da19d02aaaaa 2.7

Merged revisions 84391 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84391 | antoine.pitrou | 2010-09-01 14:58:21 +0200 (mer., 01 sept. 2010) | 5 lines Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become _Py_add_one_to_C() and _Py_add_one_to_F(), respectively. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Wed, 01 Sep 2010 13:02:50 +0000
parents b1438d26c167
children fa4d78b9e3a2
line wrap: on
line diff
--- a/Objects/memoryobject.c	Tue Aug 31 20:29:39 2010 +0000
+++ b/Objects/memoryobject.c	Wed Sep 01 13:02:50 2010 +0000
@@ -172,9 +172,6 @@
     return;
 }
 
-void _add_one_to_index_F(int nd, Py_ssize_t *index, Py_ssize_t *shape);
-void _add_one_to_index_C(int nd, Py_ssize_t *index, Py_ssize_t *shape);
-
 static int
 _indirect_copy_nd(char *dest, Py_buffer *view, char fort)
 {
@@ -203,10 +200,10 @@
         elements *= view->shape[k];
     }
     if (fort == 'F') {
-        func = _add_one_to_index_F;
+        func = _Py_add_one_to_index_F;
     }
     else {
-        func = _add_one_to_index_C;
+        func = _Py_add_one_to_index_C;
     }
     while (elements--) {
         func(view->ndim, indices, view->shape);