summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/doc/swig/pyfragments.swg13
1 files changed, 8 insertions, 5 deletions
diff --git a/numpy/doc/swig/pyfragments.swg b/numpy/doc/swig/pyfragments.swg
index e43484b81..e955cdaf2 100644
--- a/numpy/doc/swig/pyfragments.swg
+++ b/numpy/doc/swig/pyfragments.swg
@@ -1,13 +1,15 @@
+/**********************************************************************/
+
/* For numpy versions prior to 1.0, the names of certain data types
* are different than in later versions. This fragment provides macro
- * substitutions that allow us to support old and new versions on
+ * substitutions that allow us to support old and new versions of
* numpy.
*/
%fragment("NumPy_Backward_Compatibility", "header")
{
/* Support older NumPy data type names
-*/
+ */
%#if NDARRAY_VERSION < 0x01000000
%#define NPY_BOOL PyArray_BOOL
%#define NPY_BYTE PyArray_BYTE
@@ -147,9 +149,10 @@
-// Override the SWIG_AsVal_frag(unsigned long) fragment so that it
-// also checks for numpy scalar array types. The code through the
-// %#endif is essentially cut-and-paste from pyprimtype.swg
+/* Override the SWIG_AsVal_frag(unsigned long) fragment so that it
+ * also checks for numpy scalar array types. The code through the
+ * %#endif is essentially cut-and-paste from pyprimtype.swg
+ */
%fragment(SWIG_AsVal_frag(unsigned long),"header",
fragment="SWIG_CanCastAsInteger")