[Scipy-svn] r4165 - in trunk/scipy/ndimage/src: register segment

scipy-svn@scip... scipy-svn@scip...
Tue Apr 22 03:37:27 CDT 2008


Author: cdavid
Date: 2008-04-22 03:37:22 -0500 (Tue, 22 Apr 2008)
New Revision: 4165

Modified:
   trunk/scipy/ndimage/src/register/Register_EXT.c
   trunk/scipy/ndimage/src/segment/Segmenter_EXT.c
Log:
Fix visibility of init functions for register and segment modules: use PyMODINIT_FUNC instead of void.

Modified: trunk/scipy/ndimage/src/register/Register_EXT.c
===================================================================
--- trunk/scipy/ndimage/src/register/Register_EXT.c	2008-04-22 04:54:04 UTC (rev 4164)
+++ trunk/scipy/ndimage/src/register/Register_EXT.c	2008-04-22 08:37:22 UTC (rev 4165)
@@ -352,7 +352,7 @@
     {  NULL, NULL, 0, NULL},
 };
 
-void init_register(void)
+PyMODINIT_FUNC init_register(void)
 {
     Py_InitModule("_register", RegisterMethods);
     import_array();

Modified: trunk/scipy/ndimage/src/segment/Segmenter_EXT.c
===================================================================
--- trunk/scipy/ndimage/src/segment/Segmenter_EXT.c	2008-04-22 04:54:04 UTC (rev 4164)
+++ trunk/scipy/ndimage/src/segment/Segmenter_EXT.c	2008-04-22 08:37:22 UTC (rev 4165)
@@ -670,7 +670,7 @@
     {  NULL, NULL, 0, NULL},
 };
 
-void init_segment(void)
+PyMODINIT_FUNC init_segment(void)
 {
     Py_InitModule("_segment", SegmenterMethods);
     import_array();



More information about the Scipy-svn mailing list