version 1.13, 1997/04/01 07:28:21 |
version 1.14, 1997/04/28 01:52:40 |
|
|
Lst |
Lst |
Parse_MainName() |
Parse_MainName() |
{ |
{ |
Lst main; /* result list */ |
Lst listmain; /* result list */ |
|
|
main = Lst_Init (FALSE); |
listmain = Lst_Init (FALSE); |
|
|
if (mainNode == NILGNODE) { |
if (mainNode == NILGNODE) { |
Punt ("no target to make."); |
Punt ("no target to make."); |
/*NOTREACHED*/ |
/*NOTREACHED*/ |
} else if (mainNode->type & OP_DOUBLEDEP) { |
} else if (mainNode->type & OP_DOUBLEDEP) { |
(void) Lst_AtEnd (main, (ClientData)mainNode); |
(void) Lst_AtEnd (listmain, (ClientData)mainNode); |
Lst_Concat(main, mainNode->cohorts, LST_CONCNEW); |
Lst_Concat(listmain, mainNode->cohorts, LST_CONCNEW); |
} |
} |
else |
else |
(void) Lst_AtEnd (main, (ClientData)mainNode); |
(void) Lst_AtEnd (listmain, (ClientData)mainNode); |
return (main); |
return (listmain); |
} |
} |