Jarkko Hietaniemi <[EMAIL PROTECTED]> writes:
># New Ticket Created by  Jarkko Hietaniemi 
># Please include the string:  [perl #16689]
># in the subject line of all future correspondence about this issue. 
># <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=16689 >
>
>
>Freshly checked out parrot moans a lot:
>
>cc: Info: ./include/parrot/string.h, line 56: Trailing comma found in enumerator 
>list. (trailcomma)
>} TAIL_flags;
>^
>
>Trailing commas in enumerator lists is unportable behaviour in C.

And in case anyone has not come accross the "trick" before it is not uncommon
to have 

enum foo {
/* auto-genererated stuff */
  foo_MAX
};

where foo_MAX is a handy "number of entries" value as well 
as avoiding the trailing comma issue.


-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/

Reply via email to