summaryrefslogtreecommitdiff
path: root/scipy/base/src/arraymethods.c
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2005-12-06 11:06:12 +0000
committercookedm <cookedm@localhost>2005-12-06 11:06:12 +0000
commitaeccfe653e5429fc1debe38af415ec9a1ce4cfc1 (patch)
tree4d3df27cb6a39e1358f6eaba4e3f4eef4ee1e808 /scipy/base/src/arraymethods.c
parent20e073f4b4a009158ac7e3ec679fe451a1f1e177 (diff)
downloadnumpy-aeccfe653e5429fc1debe38af415ec9a1ce4cfc1.tar.gz
Add API tags: comments like /*OBJECT_API*/ before functions that are exported.
OBJECT_API is for the PyArray API, MULTIARRAY_API for multiarray, and UFUNC_API for ufuncs.
Diffstat (limited to 'scipy/base/src/arraymethods.c')
-rw-r--r--scipy/base/src/arraymethods.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/scipy/base/src/arraymethods.c b/scipy/base/src/arraymethods.c
index 24d81bfd1..8ee9ea2e3 100644
--- a/scipy/base/src/arraymethods.c
+++ b/scipy/base/src/arraymethods.c
@@ -255,6 +255,9 @@ static char doc_getfield[] = "m.getfield(dtype, offset) returns a field "\
" and the offset into the current array.";
/* steals typed reference */
+/*OBJECT_API
+ Get a subset of bytes from each element of the array
+*/
static PyObject *
PyArray_GetField(PyArrayObject *self, PyArray_Descr *typed, int offset)
{
@@ -300,6 +303,9 @@ array_getfield(PyArrayObject *self, PyObject *args, PyObject *kwds)
static char doc_setfield[] = "m.setfield(value, dtype, offset) places val "\
"into field of the given array defined by the data type and offset.";
+/*OBJECT_API
+ Set a subset of bytes from each element of the array
+*/
static int
PyArray_SetField(PyArrayObject *self, PyArray_Descr *dtype,
int offset, PyObject *val)
@@ -348,6 +354,7 @@ array_setfield(PyArrayObject *self, PyObject *args, PyObject *kwds)
}
+/*OBJECT_API*/
static PyObject *
PyArray_Byteswap(PyArrayObject *self, Bool inplace)
{
@@ -1045,6 +1052,7 @@ array_setstate(PyArrayObject *self, PyObject *args)
return Py_None;
}
+/*OBJECT_API*/
static int
PyArray_Dump(PyObject *self, PyObject *file, int protocol)
{
@@ -1069,6 +1077,7 @@ PyArray_Dump(PyObject *self, PyObject *file, int protocol)
return 0;
}
+/*OBJECT_API*/
static PyObject *
PyArray_Dumps(PyObject *self, int protocol)
{