From 11ab4a7adef7f8be573d4d51e69030d9abd8c70f Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 14 Oct 2008 01:27:33 +0000 Subject: [PATCH] - add options to the list tail, so they are shown in the same order they are declared [r22862] --- ir/libcore/lc_opts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1