Ethereal-dev: [ethereal-dev] IBM C compiler does not accept trailing commas in enums

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Craig Rodrigues <rodrigc@xxxxxxxxxxxx>
Date: Mon, 22 Nov 1999 17:50:16 -0500
Hi,

To the person @mot.com who asked me about the IBM C compiler
and trailing enums....it doesn't like them.

eg.
enum a { B, C, };
 
int main(int argc, char **argv){
  return 0;
}
                         
% xlc bb.c
"bb.c", line 1.14: 1506-275 (S) Unexpected text ',' encountered.

Yes, I know this works under gcc and Sun's cc, but IBM's compiler
doesn't like it.  Don't blame me, I don't work for IBM, I just
have the (mis)fortune of having to use their products at work. :)

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@xxxxxxxxxxxx