llvm-gcc-4.2-2.9/gcc/cp/parser.c
/* Parse an enumerator-list.  The enumerators all have the indicated
   TYPE.

   enumerator-list:
     enumerator-definition
     enumerator-list , enumerator-definition  */
Parse an enumerator-list.  The enumerators all have the indicated
TYPE.


Parse an enumerator - list . The enumerators all have the indicated TYPE .
static void
cp_parser_enumerator_list (cp_parser* parser, tree type)
{
  while (true)
    {
      cp_parser_enumerator_definition (parser, type);
      if (cp_lexer_next_token_is_not (parser->lexer, CPP_COMMA))
	break;
      cp_lexer_consume_token (parser->lexer);
      if (cp_lexer_next_token_is (parser->lexer, CPP_CLOSE_BRACE))
	{
	  if (pedantic && !in_system_header)
	    pedwarn ("comma at end of enumerator list");
	  break;
	}
    }
}
static void cp_parser_enumerator_list ( cp_parser * parser , tree type ) { while ( true ) { cp_parser_enumerator_definition ( parser , type ) ; if ( cp_lexer_next_token_is_not ( parser -> lexer , CPP_COMMA ) ) break ; cp_lexer_consume_token ( parser -> lexer ) ; if ( cp_lexer_next_token_is ( parser -> lexer , CPP_CLOSE_BRACE ) ) { if ( pedantic && ! in_system_header ) pedwarn ( " " ) ; break ; } } }
Parse an enumerator-list.
Parse an enumerator - list .
/* Parse an enumerator-definition.  */ /* If the next token is not a ',', we've reached the end of
	 the list.  */ /* Otherwise, consume the `,' and keep going.  */ /* If the next token is a `}', there is a trailing comma.  */