[Numpy-svn] r5073 - trunk/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Wed Apr 23 15:49:49 CDT 2008


Author: rkern
Date: 2008-04-23 15:49:48 -0500 (Wed, 23 Apr 2008)
New Revision: 5073

Modified:
   trunk/numpy/core/include/numpy/ndarrayobject.h
Log:
In C, you shouldn't have trailing commas on the last item in an enum.

Modified: trunk/numpy/core/include/numpy/ndarrayobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarrayobject.h	2008-04-23 20:32:02 UTC (rev 5072)
+++ trunk/numpy/core/include/numpy/ndarrayobject.h	2008-04-23 20:49:48 UTC (rev 5073)
@@ -197,14 +197,14 @@
 typedef enum {
         NPY_QUICKSORT=0,
         NPY_HEAPSORT=1,
-        NPY_MERGESORT=2,
+        NPY_MERGESORT=2
 } NPY_SORTKIND;
 #define NPY_NSORTS (NPY_MERGESORT + 1)
 
 
 typedef enum {
         NPY_SEARCHLEFT=0,
-        NPY_SEARCHRIGHT=1,
+        NPY_SEARCHRIGHT=1
 } NPY_SEARCHSIDE;
 #define NPY_NSEARCHSIDES (NPY_SEARCHRIGHT + 1)
 
@@ -216,7 +216,7 @@
         NPY_INTNEG_SCALAR,
         NPY_FLOAT_SCALAR,
         NPY_COMPLEX_SCALAR,
-        NPY_OBJECT_SCALAR,
+        NPY_OBJECT_SCALAR
 } NPY_SCALARKIND;
 #define NPY_NSCALARKINDS (NPY_OBJECT_SCALAR + 1)
 



More information about the Numpy-svn mailing list