FreeBSD/contrib/gcc/cp/decl.c
/* Like start_preparsed_function, except that instead of a
   FUNCTION_DECL, this function takes DECLSPECS and DECLARATOR.

   Returns 1 on success.  If the DECLARATOR is not suitable for a function
   (it defines a datum instead), we return 0, which tells
   yyparse to report a parse error.  */
Like start_preparsed_function, except that instead of a
FUNCTION_DECL, this function takes DECLSPECS and DECLARATOR.

Returns 1 on success.  If the DECLARATOR is not suitable for a function
(it defines a datum instead), we return 0, which tells
yyparse to report a parse error.
Like start_preparsed_function except that instead of a FUNCTION_DECL this function takes DECLSPECS and DECLARATOR . Returns 1 on success . If the DECLARATOR is not suitable for a function ( it defines a datum instead ) we return 0 which tells yyparse to report a parse error .
int
start_function (cp_decl_specifier_seq *declspecs,
		const cp_declarator *declarator,
		tree attrs)
{
  tree decl1;
  decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, 1, &attrs);
  if (decl1 == NULL_TREE || TREE_CODE (decl1) != FUNCTION_DECL)
    return 0;
  if (DECL_MAIN_P (decl1))
    gcc_assert (same_type_p (TREE_TYPE (TREE_TYPE (decl1)),
			     integer_type_node));
  check_missing_prototype (decl1);
  start_preparsed_function (decl1, attrs, SF_DEFAULT);
  return 1;
}
int start_function ( cp_decl_specifier_seq * declspecs , const cp_declarator * declarator , tree attrs ) { tree decl1 ; decl1 = grokdeclarator ( declarator , declspecs , FUNCDEF , 1 , & attrs ) ; if ( decl1 == NULL_TREE || TREE_CODE ( decl1 ) != FUNCTION_DECL ) return 0 ; if ( DECL_MAIN_P ( decl1 ) ) gcc_assert ( same_type_p ( TREE_TYPE ( TREE_TYPE ( decl1 ) ) , integer_type_node ) ) ; check_missing_prototype ( decl1 ) ; start_preparsed_function ( decl1 , attrs , SF_DEFAULT ) ; return 1 ; }
Like start_preparsed_function, except that instead of a
FUNCTION_DECL, this function takes DECLSPECS and DECLARATOR.
Like start_preparsed_function except that instead of a FUNCTION_DECL this function takes DECLSPECS and DECLARATOR .
/* If the declarator is not suitable for a function definition,
     cause a syntax error.  */ /* main must return int.  grokfndecl should have corrected it
       (and issued a diagnostic) if the user got it wrong.  */ /* APPLE LOCAL begin warn missing prototype 6261539 */ /* APPLE LOCAL end warn missing prototype 6261539 */ /*flags=*/