Formerly main.c.~74~

This commit is contained in:
Roland McGrath 1993-03-18 01:02:20 +00:00
parent 28c125b725
commit f9b50f6436

9
main.c
View file

@ -1495,11 +1495,16 @@ define_makeflags (all, makefile)
if (all) if (all)
{ {
struct stringlist *sl = *(struct stringlist **) cs->value_ptr; struct stringlist *sl = *(struct stringlist **) cs->value_ptr;
register unsigned int i;
if (sl != 0) if (sl != 0)
for (i = 0; i < sl->idx; ++i) {
/* Add the elements in reverse order, because
all the flags get reversed below; and the order
matters for some switches (like -I). */
register unsigned int i = sl->idx;
while (i-- > 0)
ADD_FLAG (sl->list[i], strlen (sl->list[i])); ADD_FLAG (sl->list[i], strlen (sl->list[i]));
} }
}
break; break;
} }