mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-26 23:04:42 +00:00
Formerly main.c.~74~
This commit is contained in:
parent
28c125b725
commit
f9b50f6436
1 changed files with 8 additions and 3 deletions
11
main.c
11
main.c
|
@ -1495,10 +1495,15 @@ define_makeflags (all, makefile)
|
|||
if (all)
|
||||
{
|
||||
struct stringlist *sl = *(struct stringlist **) cs->value_ptr;
|
||||
register unsigned int i;
|
||||
if (sl != 0)
|
||||
for (i = 0; i < sl->idx; ++i)
|
||||
ADD_FLAG (sl->list[i], strlen (sl->list[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]));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue