summaryrefslogtreecommitdiff
path: root/doc/source/user
diff options
context:
space:
mode:
authorMichael Seifert <michaelseifert04@yahoo.de>2017-03-27 05:39:33 +0200
committerMichael Seifert <michaelseifert04@yahoo.de>2017-03-27 06:00:48 +0200
commit8aea30035e4f03f6ab5cfdca202b967433b83d13 (patch)
tree0222ea55ddf86fb00e6b5965a11690f920ba579b /doc/source/user
parent1f87e9be7a29e71f7d039747f7a78bbf3c484db5 (diff)
downloadnumpy-8aea30035e4f03f6ab5cfdca202b967433b83d13.tar.gz
DOC: Function definitions may not extend over several lines
Diffstat (limited to 'doc/source/user')
-rw-r--r--doc/source/user/c-info.beyond-basics.rst6
-rw-r--r--doc/source/user/c-info.ufunc-tutorial.rst7
2 files changed, 4 insertions, 9 deletions
diff --git a/doc/source/user/c-info.beyond-basics.rst b/doc/source/user/c-info.beyond-basics.rst
index f717b087e..82a6c359d 100644
--- a/doc/source/user/c-info.beyond-basics.rst
+++ b/doc/source/user/c-info.beyond-basics.rst
@@ -284,8 +284,7 @@ functions for each conversion you want to support and then registering
these functions with the data-type descriptor. A low-level casting
function has the signature.
-.. c:function:: void castfunc( void* from, void* to, npy_intp n, void* fromarr,
- void* toarr)
+.. c:function:: void castfunc( void* from, void* to, npy_intp n, void* fromarr, void* toarr)
Cast ``n`` elements ``from`` one type ``to`` another. The data to
cast from is in a contiguous, correctly-swapped and aligned chunk
@@ -358,8 +357,7 @@ previously created. Then you call :c:func:`PyUFunc_RegisterLoopForType`
this function is ``0`` if the process was successful and ``-1`` with
an error condition set if it was not successful.
-.. c:function:: int PyUFunc_RegisterLoopForType( PyUFuncObject* ufunc,
- int usertype, PyUFuncGenericFunction function, int* arg_types, void* data)
+.. c:function:: int PyUFunc_RegisterLoopForType( PyUFuncObject* ufunc, int usertype, PyUFuncGenericFunction function, int* arg_types, void* data)
*ufunc*
diff --git a/doc/source/user/c-info.ufunc-tutorial.rst b/doc/source/user/c-info.ufunc-tutorial.rst
index ba481a544..9d957528d 100644
--- a/doc/source/user/c-info.ufunc-tutorial.rst
+++ b/doc/source/user/c-info.ufunc-tutorial.rst
@@ -1058,9 +1058,7 @@ What follows is the full specification of PyUFunc_FromFuncAndData, which
automatically generates a ufunc from a C function with the correct signature.
-.. c:function:: PyObject *PyUFunc_FromFuncAndData( PyUFuncGenericFunction* func,
- void** data, char* types, int ntypes, int nin, int nout, int identity,
- char* name, char* doc, int unused)
+.. c:function:: PyObject *PyUFunc_FromFuncAndData( PyUFuncGenericFunction* func, void** data, char* types, int ntypes, int nin, int nout, int identity, char* name, char* doc, int unused)
*func*
@@ -1069,8 +1067,7 @@ automatically generates a ufunc from a C function with the correct signature.
``PyUFuncGenericFunction`` function. This function has the following
signature. An example of a valid 1d loop function is also given.
- .. c:function:: void loop1d(char** args, npy_intp* dimensions,
- npy_intp* steps, void* data)
+ .. c:function:: void loop1d(char** args, npy_intp* dimensions, npy_intp* steps, void* data)
*args*