version 1.11, 1999/12/18 21:56:07 |
version 1.12, 1999/12/18 21:58:07 |
|
|
Lst l = (Lst) lp; |
Lst l = (Lst) lp; |
|
|
if (!gn->make && !(gn->type & OP_USE)) { |
if (!gn->make && !(gn->type & OP_USE)) { |
(void)Lst_EnQueue (l, (ClientData)gn); |
Lst_EnQueue(l, (ClientData)gn); |
} |
} |
return (0); |
return (0); |
} |
} |
|
|
* .USE or transformation and target has no commands -- append |
* .USE or transformation and target has no commands -- append |
* the child's commands to the parent. |
* the child's commands to the parent. |
*/ |
*/ |
(void) Lst_Concat (pgn->commands, cgn->commands, LST_CONCNEW); |
Lst_Concat (pgn->commands, cgn->commands, LST_CONCNEW); |
} |
} |
|
|
if (Lst_Open (cgn->children) == SUCCESS) { |
if (Lst_Open (cgn->children) == SUCCESS) { |
|
|
gn = (GNode *)Lst_Datum (ln); |
gn = (GNode *)Lst_Datum (ln); |
|
|
if (Lst_Member (pgn->children, gn) == NULL) { |
if (Lst_Member (pgn->children, gn) == NULL) { |
(void) Lst_AtEnd (pgn->children, gn); |
Lst_AtEnd(pgn->children, gn); |
(void) Lst_AtEnd (gn->parents, pgn); |
Lst_AtEnd(gn->parents, pgn); |
pgn->unmade += 1; |
pgn->unmade += 1; |
} |
} |
} |
} |
|
|
if (succ->make && succ->unmade == 0 && succ->made == UNMADE && |
if (succ->make && succ->unmade == 0 && succ->made == UNMADE && |
Lst_Member(toBeMade, (ClientData)succ) == NULL) |
Lst_Member(toBeMade, (ClientData)succ) == NULL) |
{ |
{ |
(void)Lst_EnQueue(toBeMade, (ClientData)succ); |
Lst_EnQueue(toBeMade, (ClientData)succ); |
} |
} |
} |
} |
|
|
|
|
if (gn->unmade != 0) { |
if (gn->unmade != 0) { |
Lst_ForEach (gn->children, MakeAddChild, (ClientData)examine); |
Lst_ForEach (gn->children, MakeAddChild, (ClientData)examine); |
} else { |
} else { |
(void)Lst_EnQueue (toBeMade, (ClientData)gn); |
Lst_EnQueue(toBeMade, (ClientData)gn); |
} |
} |
} |
} |
} |
} |