X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=6681423f2ae7fd32387837c3e96f48a5962cfbcc;hb=f2e9c62bb64e082f4734c460e121cb75f09faf88;hp=c21394c6b30c4f9cdbf64f35fa8088349f774efe;hpb=81d4cf5aeab4d0c0bc2a5e7c461d58ee7a7522d6;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index c21394c6b..6681423f2 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -24,9 +24,7 @@ * @date 11.9.2006 * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include #include @@ -818,15 +816,10 @@ static const debug_ops stabs_ops = { /* Opens a stabs handler */ dbg_handle *be_stabs_open(void) { - stabs_handle *h = xmalloc(sizeof(*h)); + stabs_handle *h = XMALLOCZ(stabs_handle); h->base.ops = &stabs_ops; - h->cur_ent = NULL; - h->layout = NULL; - h->next_type_nr = 0; h->type_map = pmap_create_ex(64); - h->main_file = NULL; - h->curr_file = NULL; return &h->base; }