more commentary on the inconsistencies of trailing commas
authorellson <devnull@localhost>
Thu, 10 Nov 2005 05:18:19 +0000 (05:18 +0000)
committerellson <devnull@localhost>
Thu, 10 Nov 2005 05:18:19 +0000 (05:18 +0000)
lib/gvc/gvplugin.h

index 88530691b7ad65cff7fad7ebd35c2494c756ad36..9d4bc42ccfec259585462f9f73614e38a2286f31 100644 (file)
@@ -51,6 +51,16 @@ extern "C" {
                         * because some compilers when using "-pedantic" complain
                         * about the dangling "," !  Setting it to 0 makes sure
                         * that the enumeration does not define an extra value.
+                        * (It does however define DUMMY_ELEM as an enumeration
+                        * symbol, but its value duplicates that of the first
+                        * symbol in the enumeration - in this case "render". )
+                        */
+
+                       /* One could wonder why trailing "," in:
+                        *      int nums[]={1,2,3,};
+                        * is OK, but in:
+                        *      typedef enum {a,b,c,} abc_t; 
+                        * is not!!!
                         */
 #undef ELEM