From 34ed456aa4ed68dc2de43611547cea57da8b3ef7 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Wed, 26 Jul 2006 13:43:01 +0000 Subject: [PATCH] Activated ini file parsing for libcore. firm.ini is searched in the directory, the compiler is activated. [r8053] --- ir/common/firm.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/ir/common/firm.c b/ir/common/firm.c index 75360cb4f..b7fc662f4 100644 --- a/ir/common/firm.c +++ b/ir/common/firm.c @@ -109,7 +109,7 @@ init_firm(const firm_parameter_t *param) /* Builds a construct allowing to access all information to be constructed later. */ init_irprog_2(); - /* Initialize the type module and construct some idents needed. */ + /* Initialize the type module ancd cr d construct some idents needed. */ firm_init_type(def_params.builtin_dbg, def_params.cc_mask); /* initialize the entity module */ firm_init_entity(); @@ -130,18 +130,16 @@ init_firm(const firm_parameter_t *param) #endif #ifdef WITH_LIBCORE - /* Process command line and ini file. */ - - if(def_params.ini_file) { - FILE *f = fopen(def_params.ini_file, "rt"); - if(f) { - lc_opt_from_file(def_params.ini_file, f, NULL); - fclose(f); - } - } - - lc_opt_from_argv(firm_opt_get_root(), def_params.arg_prefix, - def_params.argc, def_params.argv, NULL); + /* Process command line and ini file. */ + { + FILE *f = fopen("firm.ini", "rt"); + if(f) { + lc_opt_from_file("firm.ini", f, NULL); + fclose(f); + } + + lc_opt_from_argv(firm_opt_get_root(), def_params.arg_prefix, def_params.argc, def_params.argv, NULL); + } #endif } -- 2.20.1