tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: btuart and SOCKET Bluetooth CF

Looking at C99, trailing commas _are_ allowed in enum lists. Enumeration specifiers
1 enum-specifier:
enum identifieropt { enumerator-list }
enum identifieropt { enumerator-list , }

--Terry    tel: +1-607-277-1029    fax: +1-607-277-6844

On 2/18/2010 6:53 AM, Iain Hibbert wrote:
(btw, no comma is permitted on final enum values)
>  This is because of convenient for the addition in the future.  The diff
>  becomes smaller.;-)
Yes, except C89 and C++ do not permit that, so gcc (also lint?) makes
complaints about it. It is not "reasonable" alas.

Home | Main Index | Thread Index | Old Index