diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 12:58:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-01 12:58:21 (GMT) |
commit | f68c2a701bbca88da1299efe4aba84699827e791 (patch) | |
tree | 786ffc853d9465924c48cd3f6b7c7c9ce9881e9e /Objects/memoryobject.c | |
parent | 53c58f8bcc6513321a5614e31eeb468eda4f4a40 (diff) | |
download | cpython-f68c2a701bbca88da1299efe4aba84699827e791.zip cpython-f68c2a701bbca88da1299efe4aba84699827e791.tar.gz cpython-f68c2a701bbca88da1299efe4aba84699827e791.tar.bz2 |
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.
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r-- | Objects/memoryobject.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 70ae6cc..9a62dd8 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -172,9 +172,6 @@ _strided_copy_nd(char *dest, char *src, int nd, Py_ssize_t *shape, 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 @@ _indirect_copy_nd(char *dest, Py_buffer *view, char fort) 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); |