summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-08 00:24:12 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-08 00:24:12 +0000
commit1acf453e6bdbac5e176806b0ad07ad33e32a5f40 (patch)
tree87a5ee0373b5ac70c33df30ba84ee9dff5035667 /numpy/core/src/arraymethods.c
parent8904c7ab8d3e5fb1233e80586c5a4c6b7df4a14b (diff)
downloadnumpy-1acf453e6bdbac5e176806b0ad07ad33e32a5f40.tar.gz
Apply npy_ and NPY_ prefixes to all C-API names that don't already have PyArray_ prefixes.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 352300779..833f5e5c0 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -272,7 +272,7 @@ PyArray_GetField(PyArrayObject *self, PyArray_Descr *typed, int offset)
Py_INCREF(self);
((PyArrayObject *)ret)->base = (PyObject *)self;
- PyArray_UpdateFlags((PyArrayObject *)ret, UPDATE_ALL_FLAGS);
+ PyArray_UpdateFlags((PyArrayObject *)ret, UPDATE_ALL);
return ret;
}
@@ -321,7 +321,7 @@ PyArray_SetField(PyArrayObject *self, PyArray_Descr *dtype,
Py_INCREF(self);
((PyArrayObject *)ret)->base = (PyObject *)self;
- PyArray_UpdateFlags((PyArrayObject *)ret, UPDATE_ALL_FLAGS);
+ PyArray_UpdateFlags((PyArrayObject *)ret, UPDATE_ALL);
retval = PyArray_CopyObject((PyArrayObject *)ret, val);
Py_DECREF(ret);
return retval;
@@ -1026,10 +1026,10 @@ array_setstate(PyArrayObject *self, PyObject *args)
}
}
- if ((self->flags & OWN_DATA)) {
+ if ((self->flags & OWNDATA)) {
if (self->data != NULL)
PyDataMem_FREE(self->data);
- self->flags &= ~OWN_DATA;
+ self->flags &= ~OWNDATA;
}
Py_XDECREF(self->base);
@@ -1040,7 +1040,7 @@ array_setstate(PyArrayObject *self, PyObject *args)
self->dimensions = NULL;
}
- self->flags = DEFAULT_FLAGS;
+ self->flags = DEFAULT;
self->nd = nd;
@@ -1085,7 +1085,7 @@ array_setstate(PyArrayObject *self, PyObject *args)
else {
memcpy(self->data, datastr, num);
}
- self->flags |= OWN_DATA;
+ self->flags |= OWNDATA;
self->base = NULL;
}
else {
@@ -1102,13 +1102,13 @@ array_setstate(PyArrayObject *self, PyObject *args)
return PyErr_NoMemory();
}
if (self->descr->hasobject) memset(self->data, 0, PyArray_NBYTES(self));
- self->flags |= OWN_DATA;
+ self->flags |= OWNDATA;
self->base = NULL;
if (_setlist_pkl(self, rawdata) < 0)
return NULL;
}
- PyArray_UpdateFlags(self, UPDATE_ALL_FLAGS);
+ PyArray_UpdateFlags(self, UPDATE_ALL);
Py_INCREF(Py_None);
return Py_None;