projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
994e486
)
- add options to the list tail, so they are shown in the same order they are declared
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:27:33 +0000
(
01:27
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:27:33 +0000
(
01:27
+0000)
[r22862]
ir/libcore/lc_opts.c
patch
|
blob
|
history
diff --git
a/ir/libcore/lc_opts.c
b/ir/libcore/lc_opts.c
index
bf86c92
..
d34f6c8
100644
(file)
--- 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)
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);
}
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, "");
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;
s->type = type;
s->value = val;