m3-sys/m3cc/gcc-apple/gcc/c-parser.c
/* Parse an objc-methodproto.

   objc-methodproto:
     objc-method-type objc-method-decl ;
*/
Parse an objc-methodproto.
Parse an objc - methodproto .
static void
c_parser_objc_methodproto (c_parser *parser)
{
  enum tree_code type;
  tree decl;
  if (c_parser_next_token_is_keyword (parser, RID_AT_REQUIRED))
    {
      objc_set_method_opt (0);
      c_parser_consume_token (parser);
      return;
    }
  if (c_parser_next_token_is_keyword (parser, RID_AT_OPTIONAL))
    {
      objc_set_method_opt (1);
      c_parser_consume_token (parser);
      return;
    }
  type = c_parser_objc_method_type (parser);
  objc_set_method_type (type);
  objc_pq_context = 1;
  decl = c_parser_objc_method_decl (parser);
  objc_pq_context = 0;
  objc_add_method_declaration (decl, objc_method_attributes);
  objc_method_attributes = NULL_TREE;
  c_parser_skip_until_found (parser, CPP_SEMICOLON, "expected %<;%>");
}
static void c_parser_objc_methodproto ( c_parser * parser ) { enum tree_code type ; tree decl ; if ( c_parser_next_token_is_keyword ( parser , RID_AT_REQUIRED ) ) { objc_set_method_opt ( 0 ) ; c_parser_consume_token ( parser ) ; return ; } if ( c_parser_next_token_is_keyword ( parser , RID_AT_OPTIONAL ) ) { objc_set_method_opt ( 1 ) ; c_parser_consume_token ( parser ) ; return ; } type = c_parser_objc_method_type ( parser ) ; objc_set_method_type ( type ) ; objc_pq_context = 1 ; decl = c_parser_objc_method_decl ( parser ) ; objc_pq_context = 0 ; objc_add_method_declaration ( decl , objc_method_attributes ) ; objc_method_attributes = NULL_TREE ; c_parser_skip_until_found ( parser , CPP_SEMICOLON , " " ) ; }
Parse an objc-methodproto.
Parse an objc - methodproto .
/* APPLE LOCAL C* language */ /* APPLE LOCAL begin C* language */ /* APPLE LOCAL begin C* language */ /* APPLE LOCAL C* language */ /* Remember protocol qualifiers in prototypes.  */ /* Forget protocol qualifiers here.  */ /* APPLE LOCAL begin radar 3803157 - objc attribute (in 4.2 c) */ /* APPLE LOCAL end radar 3803157 - objc attribute (in 4.2 c) */