From: Michael Beck Date: Tue, 14 Oct 2008 01:27:33 +0000 (+0000) Subject: - add options to the list tail, so they are shown in the same order they are declared X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=11ab4a7adef7f8be573d4d51e69030d9abd8c70f;p=libfirm - add options to the list tail, so they are shown in the same order they are declared [r22862] --- diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c index bf86c9242..d34f6c85e 100644 --- a/ir/libcore/lc_opts.c +++ b/ir/libcore/lc_opts.c @@ -131,7 +131,7 @@ static lc_opt_entry_t *init_grp(lc_opt_entry_t *ent, lc_opt_err_info_t *err) set_error(err, lc_opt_err_none, ""); if(ent->parent) { if(ent->parent->is_grp) - list_add(&ent->list, &lc_get_grp_special(ent->parent)->grps); + list_add_tail(&ent->list, &lc_get_grp_special(ent->parent)->grps); else set_error(err, lc_opt_err_grp_expected, ent->parent->name); } @@ -151,7 +151,7 @@ static lc_opt_entry_t *init_opt(lc_opt_entry_t *ent, ent->is_grp = 0; set_error(err, lc_opt_err_none, ""); - list_add(&ent->list, &lc_get_grp_special(ent->parent)->opts); + list_add_tail(&ent->list, &lc_get_grp_special(ent->parent)->opts); s->type = type; s->value = val;