X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftpop.c;h=3fcf757e33d7fb21cad178d275ca13e54fd12b39;hb=7c9171526adbd5ee4135027fb436770e91ca7434;hp=015d1cd4f514633ae1583a7f3e2d2684d106afa4;hpb=2120cb6ad7ec660f4d2528d8d448a3198c53d571;p=libfirm diff --git a/ir/tr/tpop.c b/ir/tr/tpop.c index 015d1cd4f..3fcf757e3 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. * @@ -23,9 +23,7 @@ * @author Goetz Lindenmaier, Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "xmalloc.h" #include "tpop_t.h" @@ -47,9 +45,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 +71,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 +82,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 +104,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 +115,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 +148,7 @@ static const tp_op_ops NULL, NULL, NULL, - set_default_size_bits, + set_default_size, NULL, NULL, NULL