summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2008-10-05 19:06:41 +0000
committerCharles Harris <charlesr.harris@gmail.com>2008-10-05 19:06:41 +0000
commit17c1f6bedea46332fad742ba74152d370adc5e7f (patch)
tree18aaa4be4f9a0fce8dbd8930bb1ad08cf60ada56
parent890f197ae4baf93c5511ff9b630db8e6e049c4b7 (diff)
downloadnumpy-17c1f6bedea46332fad742ba74152d370adc5e7f.tar.gz
Move location of some includes for clarity.
Name ufunc setup section.
-rw-r--r--numpy/core/src/umathmodule.c.src17
1 files changed, 11 insertions, 6 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src
index 131d2db3b..091216c61 100644
--- a/numpy/core/src/umathmodule.c.src
+++ b/numpy/core/src/umathmodule.c.src
@@ -106,7 +106,7 @@ _npy_Object@Kind@(PyObject *i1, PyObject *i2)
*/
-/*
+/*
* Don't pass structures between functions (only pointers) because how
* structures are passed is compiler dependent and could cause
* segfaults if ufuncobject.c is compiled with a different compiler
@@ -1533,6 +1533,16 @@ OBJECT_sign(char **args, intp *dimensions, intp *steps, void *func)
*/
+/*
+ *****************************************************************************
+ ** SETUP UFUNCS **
+ *****************************************************************************
+ */
+
+#include "__umath_generated.c"
+#include "ufuncobject.c"
+#include "__ufunc_api.c"
+
static PyUFuncGenericFunction frexp_functions[] = {
#ifdef HAVE_FREXPF
FLOAT_frexp,
@@ -1554,7 +1564,6 @@ static char frexp_signatures[] = {
#endif
};
-
static PyUFuncGenericFunction ldexp_functions[] = {
#ifdef HAVE_LDEXPF
FLOAT_ldexp,
@@ -1576,10 +1585,6 @@ static char ldexp_signatures[] = {
};
-#include "__umath_generated.c"
-#include "ufuncobject.c"
-#include "__ufunc_api.c"
-
static double
pinf_init(void)
{