X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=9073c15fae1cb0af3dabce76b511939af0cd38a2;hb=04906225f6fe1bc22f73b5d6a98eb9c0992a9b54;hp=e522a55dc964848282a1caaffc112132626b634f;hpb=cc979c0f1c58e51debc78af1c590ec3c35004c90;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index e522a55dc..9073c15fa 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 @@ -41,7 +39,7 @@ #include "pdeq.h" #include "irtools.h" #include "obst.h" -#include "array.h" +#include "array_t.h" #include "be_dbgout_t.h" #include "beabi.h" #include "bemodule.h" @@ -469,13 +467,13 @@ static void gen_method_type(wenv_t *env, ir_type *tp) { * type-walker: generate declaration for simple types, * put all other types on a wait queue */ -static void walk_type(type_or_ent *tore, void *ctx) +static void walk_type(type_or_ent tore, void *ctx) { wenv_t *env = ctx; ir_type *tp; - if (get_kind(tore) == k_type) { - tp = (ir_type *)tore; + if (is_type(tore.typ)) { + tp = tore.typ; /* ignore the unknown type */ if (tp == firm_unknown_type) @@ -818,7 +816,7 @@ 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 = XMALLOC(stabs_handle); h->base.ops = &stabs_ops; h->cur_ent = NULL;