[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.12 and 1.13

version 1.12, 1997/03/26 17:46:44 version 1.13, 1997/04/01 07:28:21
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: parse.c,v 1.27 1996/11/06 17:59:20 christos Exp $      */  /*      $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $      */
   
 /*  /*
  * Copyright (c) 1988, 1989, 1990, 1993   * Copyright (c) 1988, 1989, 1990, 1993
Line 211 
Line 211 
 { ".INVISIBLE",   Attribute,    OP_INVISIBLE },  { ".INVISIBLE",   Attribute,    OP_INVISIBLE },
 { ".JOIN",        Attribute,    OP_JOIN },  { ".JOIN",        Attribute,    OP_JOIN },
 { ".LIBS",        Libs,         0 },  { ".LIBS",        Libs,         0 },
   { ".MADE",        Attribute,    OP_MADE },
 { ".MAIN",        Main,         0 },  { ".MAIN",        Main,         0 },
 { ".MAKE",        Attribute,    OP_MAKE },  { ".MAKE",        Attribute,    OP_MAKE },
 { ".MAKEFLAGS",   MFlags,       0 },  { ".MAKEFLAGS",   MFlags,       0 },
Line 466 
Line 467 
  *   *
  *---------------------------------------------------------------------   *---------------------------------------------------------------------
  */   */
 int  static int
 ParseAddDep(pp, sp)  ParseAddDep(pp, sp)
     ClientData pp;      ClientData pp;
     ClientData sp;      ClientData sp;
Line 2574 
Line 2575 
 Lst  Lst
 Parse_MainName()  Parse_MainName()
 {  {
     Lst           listmain;     /* result list */      Lst           main; /* result list */
   
     listmain = Lst_Init (FALSE);      main = 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 (listmain, (ClientData)mainNode);          (void) Lst_AtEnd (main, (ClientData)mainNode);
         Lst_Concat(listmain, mainNode->cohorts, LST_CONCNEW);          Lst_Concat(main, mainNode->cohorts, LST_CONCNEW);
     }      }
     else      else
         (void) Lst_AtEnd (listmain, (ClientData)mainNode);          (void) Lst_AtEnd (main, (ClientData)mainNode);
     return (listmain);      return (main);
 }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13