FreeBSD/contrib/gcc/c-common.c
/* The C version of the register_builtin_type langhook.  */
The C version of the register_builtin_type langhook.
The C version of the register_builtin_type langhook .
void
c_register_builtin_type (tree type, const char* name)
{
  tree decl;
  decl = build_decl (TYPE_DECL, get_identifier (name), type);
  DECL_ARTIFICIAL (decl) = 1;
  if (!TYPE_NAME (type))
    TYPE_NAME (type) = decl;
  pushdecl (decl);
  registered_builtin_types = tree_cons (0, type, registered_builtin_types);
}
void c_register_builtin_type ( tree type , const char * name ) { tree decl ; decl = build_decl ( TYPE_DECL , get_identifier ( name ) , type ) ; DECL_ARTIFICIAL ( decl ) = 1 ; if ( ! TYPE_NAME ( type ) ) TYPE_NAME ( type ) = decl ; pushdecl ( decl ) ; registered_builtin_types = tree_cons ( 0 , type , registered_builtin_types ) ; }
The C version of the register_builtin_type langhook.
The C version of the register_builtin_type langhook .