[Numpy-svn] r5930 - branches/ufunc_cleanup/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sun Oct 5 14:06:46 CDT 2008


Author: charris
Date: 2008-10-05 14:06:41 -0500 (Sun, 05 Oct 2008)
New Revision: 5930

Modified:
   branches/ufunc_cleanup/numpy/core/src/umathmodule.c.src
Log:
Move location of some includes for clarity.
Name ufunc setup section.


Modified: branches/ufunc_cleanup/numpy/core/src/umathmodule.c.src
===================================================================
--- branches/ufunc_cleanup/numpy/core/src/umathmodule.c.src	2008-10-05 18:52:29 UTC (rev 5929)
+++ branches/ufunc_cleanup/numpy/core/src/umathmodule.c.src	2008-10-05 19:06:41 UTC (rev 5930)
@@ -106,7 +106,7 @@
  */
 
 
-/* 
+/*
  * 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 @@
  */
 
 
+/*
+ *****************************************************************************
+ **                            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 @@
 #endif
 };
 
-
 static PyUFuncGenericFunction ldexp_functions[] = {
 #ifdef HAVE_LDEXPF
     FLOAT_ldexp,
@@ -1576,10 +1585,6 @@
 };
 
 
-#include "__umath_generated.c"
-#include "ufuncobject.c"
-#include "__ufunc_api.c"
-
 static double
 pinf_init(void)
 {



More information about the Numpy-svn mailing list