From: ellson Date: Thu, 10 Nov 2005 05:18:19 +0000 (+0000) Subject: more commentary on the inconsistencies of trailing commas X-Git-Tag: LAST_LIBGRAPH~32^2~6971 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be2c2e8387751013e7897d55e1e5a689ddec0372;p=graphviz more commentary on the inconsistencies of trailing commas --- diff --git a/lib/gvc/gvplugin.h b/lib/gvc/gvplugin.h index 88530691b..9d4bc42cc 100644 --- a/lib/gvc/gvplugin.h +++ b/lib/gvc/gvplugin.h @@ -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