X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftpop.c;h=2987bc119b4e954c104165678dbb9fa4fb98220b;hb=85f2a7413f3356c2cfad953b52913f2ba79413f6;hp=741f307cce70f750785d405faf460560b159e69f;hpb=8ca297d3fa1c84b58d71a9ec102061239159f9a7;p=libfirm diff --git a/ir/tr/tpop.c b/ir/tr/tpop.c index 741f307cc..2987bc119 100644 --- a/ir/tr/tpop.c +++ b/ir/tr/tpop.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -47,9 +47,7 @@ tp_op * new_tpop(tp_opcode code, ident *name, unsigned flags, size_t attr_size, const tp_op_ops *ops) { - tp_op *res; - - res = xmalloc(sizeof(*res)); + tp_op *res = XMALLOC(tp_op); res->code = code; res->name = name; res->flags = flags; @@ -75,7 +73,7 @@ static const tp_op_ops free_class_entities, NULL, set_class_mode, - set_class_size_bits, + set_class_size, get_class_n_members, get_class_member, get_class_member_index @@ -86,7 +84,7 @@ static const tp_op_ops free_struct_entities, NULL, set_struct_mode, - set_struct_size_bits, + set_struct_size, get_struct_n_members, get_struct_member, get_struct_member_index @@ -108,7 +106,7 @@ static const tp_op_ops free_union_entities, NULL, NULL, - set_union_size_bits, + set_union_size, get_union_n_members, get_union_member, get_union_member_index @@ -119,7 +117,7 @@ static const tp_op_ops free_array_entities, free_array_automatic_entities, NULL, - set_array_size_bits, + set_array_size, NULL, NULL, NULL @@ -152,7 +150,7 @@ static const tp_op_ops NULL, NULL, NULL, - set_default_size_bits, + set_default_size, NULL, NULL, NULL @@ -180,7 +178,7 @@ void init_tpop(void) { type_array = new_tpop(tpo_array , ID("array"), C, sizeof (arr_attr), &array_ops); type_enumeration = new_tpop(tpo_enumeration, ID("enumeration"), 0, sizeof (enm_attr), &enum_ops); type_pointer = new_tpop(tpo_pointer , ID("pointer"), 0, sizeof (ptr_attr), &pointer_ops); - type_primitive = new_tpop(tpo_primitive , ID("primitive"), 0, /* sizeof (pri_attr) */ 0, &null_ops); + type_primitive = new_tpop(tpo_primitive , ID("primitive"), 0, sizeof (pri_attr), &null_ops); type_id = new_tpop(tpo_id , ID("type_id"), 0, /* sizeof (id_attr) */ 0, &null_ops); tpop_none = new_tpop(tpo_none , ID("None"), 0, /* sizeof (non_attr) */ 0, &pseudo_ops); tpop_unknown = new_tpop(tpo_unknown , ID("Unknown"), 0, /* sizeof (ukn_attr) */ 0, &pseudo_ops);