Looking at C99, trailing commas _are_ allowed in enum lists. 6.7.2.2 Enumeration specifiers Syntax 1 enum-specifier: enum identifieropt { enumerator-list } enum identifieropt { enumerator-list , } --Terry tmm%mcci.com@localhost tel: +1-607-277-1029 fax: +1-607-277-6844 www.mcci.com 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.