[BACK]Return to parse.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/parse.c between version 1.43 and 1.44

version 1.43, 2000/06/17 14:38:18 version 1.44, 2000/06/17 14:40:29
Line 2649 
Line 2649 
  *      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

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44