From 8c925b88cee7a605ae6d85ed23199475edb97dd0 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 24 May 2005 14:07:50 +0000 Subject: [PATCH] added config.h removed C99 feature --- ir/be/lpp_rzcpx.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ir/be/lpp_rzcpx.c b/ir/be/lpp_rzcpx.c index d92858e67..775212d30 100644 --- a/ir/be/lpp_rzcpx.c +++ b/ir/be/lpp_rzcpx.c @@ -4,6 +4,13 @@ * Copyright: (c) Universitaet Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef HAVE_IO_H +#include +#endif #include #include @@ -92,10 +99,12 @@ static int cmp_name_t(const void *x, const void *y, size_t size) { #define INITIAL_SIZE 64 lpp_t *new_lpp(const char *name, opt_t opt_type) { + lpp_t *lpp; + dbg = firm_dbg_register("ir.be.copyoptilp"); firm_dbg_set_mask(dbg, DEBUG_LVL); - lpp_t *lpp = xcalloc(1, sizeof(*lpp)); + lpp = xcalloc(1, sizeof(*lpp)); lpp->name = xstrdup(name); lpp->opt_type = opt_type; lpp->cst2nr = new_set(cmp_name_t, INITIAL_SIZE); -- 2.20.1