FreeBSD/contrib/gcc/cp/error.c
/* Return the name of the supplied aggregate, or enumeral type.  */
Return the name of the supplied aggregate, or enumeral type.
Return the name of the supplied aggregate or enumeral type .
const char *
class_key_or_enum_as_string (tree t)
{
  if (TREE_CODE (t) == ENUMERAL_TYPE)
    return "enum";
  else if (TREE_CODE (t) == UNION_TYPE)
    return "union";
  else if (TYPE_LANG_SPECIFIC (t) && CLASSTYPE_DECLARED_CLASS (t))
    return "class";
  else
    return "struct";
}
const char * class_key_or_enum_as_string ( tree t ) { if ( TREE_CODE ( t ) == ENUMERAL_TYPE ) return " " ; else if ( TREE_CODE ( t ) == UNION_TYPE ) return " " ; else if ( TYPE_LANG_SPECIFIC ( t ) && CLASSTYPE_DECLARED_CLASS ( t ) ) return " " ; else return " " ; }
Return the name of the supplied aggregate, or enumeral type.
Return the name of the supplied aggregate or enumeral type .