version 1.43, 2000/06/17 14:38:18 |
version 1.44, 2000/06/17 14:40:29 |
|
|
* Return a Lst of the main target to create for main()'s sake. If |
* Return a Lst of the main target to create for main()'s sake. If |
* no such target exists, we Punt with an obnoxious error message. |
* no such target exists, we Punt with an obnoxious error message. |
* |
* |
* Results: |
|
* A Lst of the single node to create. |
|
* |
|
* Side Effects: |
* Side Effects: |
* None. |
* Add the node to create to the list. |
* |
* |
*----------------------------------------------------------------------- |
*----------------------------------------------------------------------- |
*/ |
*/ |
Lst |
void |
Parse_MainName() |
Parse_MainName(listmain) |
{ |
|
Lst listmain; /* result list */ |
Lst listmain; /* result list */ |
|
{ |
|
|
listmain = Lst_New(); |
if (mainNode == NULL) |
|
|
if (mainNode == NULL) { |
|
Punt ("no target to make."); |
Punt ("no target to make."); |
/*NOTREACHED*/ |
/*NOTREACHED*/ |
} else if (mainNode->type & OP_DOUBLEDEP) { |
else if (mainNode->type & OP_DOUBLEDEP) { |
Lst_AtEnd(listmain, mainNode); |
Lst_AtEnd(listmain, mainNode); |
Lst_Concat(listmain, &mainNode->cohorts, LST_CONCNEW); |
Lst_Concat(listmain, &mainNode->cohorts, LST_CONCNEW); |
} |
} |
else |
else |
Lst_AtEnd(listmain, mainNode); |
Lst_AtEnd(listmain, mainNode); |
return (listmain); |
|
} |
} |
|
|
unsigned long |
unsigned long |