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

Diff for /src/usr.bin/make/make.c between version 1.34 and 1.35

version 1.34, 2003/11/08 19:17:29 version 1.35, 2004/04/07 13:11:36
Line 113 
Line 113 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 void  void
 Make_TimeStamp(pgn, cgn)  Make_TimeStamp(
     GNode *pgn; /* the current parent */      GNode *pgn, /* the current parent */
     GNode *cgn; /* the child we've just examined */      GNode *cgn) /* the child we've just examined */
 {  {
     if (is_strictly_before(pgn->cmtime, cgn->mtime))      if (is_strictly_before(pgn->cmtime, cgn->mtime))
         pgn->cmtime = cgn->mtime;          pgn->cmtime = cgn->mtime;
Line 123 
Line 123 
   
 /* Wrapper to call Make_TimeStamp from a forEach loop.  */  /* Wrapper to call Make_TimeStamp from a forEach loop.  */
 static void  static void
 MakeTimeStamp(pgn, cgn)  MakeTimeStamp(
     void *pgn;  /* the current parent */      void *pgn,  /* the current parent */
     void *cgn;  /* the child we've just examined */      void *cgn)  /* the child we've just examined */
 {  {
     Make_TimeStamp((GNode *)pgn, (GNode *)cgn);      Make_TimeStamp((GNode *)pgn, (GNode *)cgn);
 }  }
Line 149 
Line 149 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 bool  bool
 Make_OODate(gn)  Make_OODate(GNode *gn)  /* the node to check */
     GNode           *gn;              /* the node to check */  
 {  {
     bool            oodate;      bool            oodate;
   
Line 284 
Line 283 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static void  static void
 MakeAddChild(gnp, lp)  MakeAddChild(
     void *gnp;          /* the node to add */      void *gnp,          /* the node to add */
     void *lp;           /* the list to which to add it */      void *lp)           /* the list to which to add it */
 {  {
     GNode          *gn = (GNode *)gnp;      GNode          *gn = (GNode *)gnp;
     Lst            l = (Lst)lp;      Lst            l = (Lst)lp;
Line 316 
Line 315 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 void  void
 Make_HandleUse(cgn, pgn)  Make_HandleUse(
     GNode       *cgn;   /* The .USE node */      GNode       *cgn,   /* The .USE node */
     GNode       *pgn;   /* The target of the .USE node */      GNode       *pgn)   /* The target of the .USE node */
 {  {
     GNode       *gn;    /* A child of the .USE node */      GNode       *gn;    /* A child of the .USE node */
     LstNode     ln;     /* An element in the children list */      LstNode     ln;     /* An element in the children list */
Line 354 
Line 353 
     }      }
 }  }
 static void  static void
 MakeHandleUse(pgn, cgn)  MakeHandleUse(
     void *pgn;  /* the current parent */      void *pgn,  /* the current parent */
     void *cgn;  /* the child we've just examined */      void *cgn)  /* the child we've just examined */
 {  {
     Make_HandleUse((GNode *)pgn, (GNode *)cgn);      Make_HandleUse((GNode *)pgn, (GNode *)cgn);
 }  }
Line 387 
Line 386 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 void  void
 Make_Update(cgn)  Make_Update(GNode *cgn) /* the child node */
     GNode       *cgn;   /* the child node */  
 {  {
     GNode       *pgn;   /* the parent node */      GNode       *pgn;   /* the parent node */
     char        *cname; /* the child's name */      char        *cname; /* the child's name */
Line 533 
Line 531 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static void  static void
 MakeAddAllSrc(cgnp, pgnp)  MakeAddAllSrc(
     void *cgnp; /* The child to add */      void *cgnp, /* The child to add */
     void *pgnp; /* The parent to whose ALLSRC variable it should be */      void *pgnp) /* The parent to whose ALLSRC variable it should be */
                         /* added */                          /* added */
 {  {
     GNode       *cgn = (GNode *)cgnp;      GNode       *cgn = (GNode *)cgnp;
Line 600 
Line 598 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 void  void
 Make_DoAllVar(gn)  Make_DoAllVar(GNode *gn)
     GNode       *gn;  
 {  {
     Lst_ForEach(&gn->children, MakeAddAllSrc, gn);      Lst_ForEach(&gn->children, MakeAddAllSrc, gn);
   
Line 630 
Line 627 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static bool  static bool
 MakeStartJobs()  MakeStartJobs(void)
 {  {
     GNode       *gn;      GNode       *gn;
   
Line 709 
Line 706 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static void  static void
 MakePrintStatus(gnp, cyclep)  MakePrintStatus(
     void *gnp;              /* Node to examine */      void *gnp,              /* Node to examine */
     void *cyclep;           /* True if gn->unmade being non-zero implies      void *cyclep)           /* True if gn->unmade being non-zero implies
                              * a cycle in the graph, not an error in an                               * a cycle in the graph, not an error in an
                              * inferior */                               * inferior */
 {  {
Line 770 
Line 767 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 bool  bool
 Make_Run(targs)  Make_Run(Lst targs)             /* the initial list of targets */
     Lst             targs;      /* the initial list of targets */  
 {  {
     GNode           *gn;        /* a temporary pointer */      GNode           *gn;        /* a temporary pointer */
     LIST            examine;    /* List of targets to examine */      LIST            examine;    /* List of targets to examine */

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35