diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2012-06-27 14:53:04 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-06-27 14:53:04 +0200 |
| commit | 473cc0be9d9111c63994fb1089bdb4a5cbd3889f (patch) | |
| tree | 656ef6f671515368397ab7db7e57463ed711c447 /Cython/Utility/arrayarray.h | |
| parent | 11ddb8302e0ae6c49b0df04c444cc87bcfd5f101 (diff) | |
| download | cython-473cc0be9d9111c63994fb1089bdb4a5cbd3889f.tar.gz | |
make declarations of arrayarray.h functions 'static' as they are only used internally as utility code
Diffstat (limited to 'Cython/Utility/arrayarray.h')
| -rw-r--r-- | Cython/Utility/arrayarray.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Cython/Utility/arrayarray.h b/Cython/Utility/arrayarray.h index 31febecf7..58aaf4eef 100644 --- a/Cython/Utility/arrayarray.h +++ b/Cython/Utility/arrayarray.h @@ -70,8 +70,8 @@ typedef struct arrayobject { * * fast creation of a new array */ - -CYTHON_INLINE PyObject * newarrayobject(PyTypeObject *type, Py_ssize_t size, + +static CYTHON_INLINE PyObject * newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr) { arrayobject *op; size_t nbytes; @@ -115,7 +115,7 @@ PyObject* newarrayobject(PyTypeObject *type, Py_ssize_t size, /* fast resize (reallocation to the point) not designed for filing small increments (but for fast opaque array apps) */ -int resize(arrayobject *self, Py_ssize_t n) { +static int resize(arrayobject *self, Py_ssize_t n) { void *item= (void*) self->ob_item; PyMem_Resize(item, char, (size_t)(n * self->ob_descr->itemsize)); if (item == NULL) { @@ -132,7 +132,7 @@ int resize(arrayobject *self, Py_ssize_t n) { /* suitable for small increments; over allocation 50% ; Remains non-smart in Python 2.3- ; but exists for compatibility */ -int resize_smart(arrayobject *self, Py_ssize_t n) { +static int resize_smart(arrayobject *self, Py_ssize_t n) { #if PY_VERSION_HEX >= 0x02040000 void *item = (void*) self->ob_item; Py_ssize_t newsize; |
