Mercurial > cpython-lru_cache-weakref
diff Objects/memoryobject.c @ 64343:d24870d00c42
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 12:58:21 +0000 |
| parents | 9108e7dcd7d8 |
| children | 925e9113f0aa |
line wrap: on
line diff
--- a/Objects/memoryobject.c Wed Sep 01 09:15:42 2010 +0000 +++ b/Objects/memoryobject.c Wed Sep 01 12:58:21 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);
