[Numpy-svn] r4499 - trunk/numpy/doc/swig

numpy-svn@scip... numpy-svn@scip...
Fri Nov 23 20:04:21 CST 2007


Author: wfspotz@sandia.gov
Date: 2007-11-23 20:04:19 -0600 (Fri, 23 Nov 2007)
New Revision: 4499

Modified:
   trunk/numpy/doc/swig/numpy.i
   trunk/numpy/doc/swig/pyfragments.swg
Log:
Added new fragment dependency to unsigned long fragment

Modified: trunk/numpy/doc/swig/numpy.i
===================================================================
--- trunk/numpy/doc/swig/numpy.i	2007-11-23 22:39:37 UTC (rev 4498)
+++ trunk/numpy/doc/swig/numpy.i	2007-11-24 02:04:19 UTC (rev 4499)
@@ -1112,14 +1112,14 @@
  * The follow macro expansion does not work, because C++ bool is 4
  * bytes and NPY_BOOL is 1 byte
  */
-/*%numpy_typemaps(bool, NPY_BOOL)
+/*%numpy_typemaps(bool, NPY_BOOL, int)
  */
 
 /* ***************************************************************
  * On my Mac, I get the following warning for this macro expansion:
  * 'swig/python detected a memory leak of type 'long double *', no destructor found.'
  */
-/*%numpy_typemaps(long double, NPY_LONGDOUBLE)
+/*%numpy_typemaps(long double, NPY_LONGDOUBLE, int)
  */
 
 /* ***************************************************************

Modified: trunk/numpy/doc/swig/pyfragments.swg
===================================================================
--- trunk/numpy/doc/swig/pyfragments.swg	2007-11-23 22:39:37 UTC (rev 4498)
+++ trunk/numpy/doc/swig/pyfragments.swg	2007-11-24 02:04:19 UTC (rev 4499)
@@ -155,7 +155,8 @@
  */
 
 %fragment(SWIG_AsVal_frag(unsigned long),"header",
-	  fragment="SWIG_CanCastAsInteger")
+	  fragment="SWIG_CanCastAsInteger",
+	  fragment="NumPy_Backward_Compatibility")
 {
   SWIGINTERN int
   SWIG_AsVal_dec(unsigned long)(PyObject *obj, unsigned long *val) 



More information about the Numpy-svn mailing list