version 1.70, 2015/08/21 02:19:49 |
version 1.71, 2016/10/21 16:12:38 |
|
|
|
|
|
|
for (ln = Lst_First(&gn->preds); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(&gn->preds); ln != NULL; ln = Lst_Adv(ln)) { |
GNode *pgn = (GNode *)Lst_Datum(ln); |
GNode *pgn = Lst_Datum(ln); |
|
|
if (pgn->must_make && pgn->built_status == UNKNOWN) { |
if (pgn->must_make && pgn->built_status == UNKNOWN) { |
if (DEBUG(MAKE)) |
if (DEBUG(MAKE)) |
|
|
* queue, it means we need to place it in the queue as it restrained |
* queue, it means we need to place it in the queue as it restrained |
* itself before. */ |
* itself before. */ |
for (ln = Lst_First(&gn->successors); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(&gn->successors); ln != NULL; ln = Lst_Adv(ln)) { |
GNode *succ = (GNode *)Lst_Datum(ln); |
GNode *succ = Lst_Datum(ln); |
|
|
if (succ->must_make && succ->unmade == 0 |
if (succ->must_make && succ->unmade == 0 |
&& succ->built_status == UNKNOWN) |
&& succ->built_status == UNKNOWN) |
|
|
requeue(cgn); |
requeue(cgn); |
/* SIB: this is where I should mark the build as finished */ |
/* SIB: this is where I should mark the build as finished */ |
for (ln = Lst_First(&cgn->parents); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(&cgn->parents); ln != NULL; ln = Lst_Adv(ln)) { |
pgn = (GNode *)Lst_Datum(ln); |
pgn = Lst_Datum(ln); |
/* SIB: there should be a siblings loop there */ |
/* SIB: there should be a siblings loop there */ |
pgn->unmade--; |
pgn->unmade--; |
if (pgn->must_make) { |
if (pgn->must_make) { |