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

Diff for /src/usr.bin/make/targ.c between version 1.4 and 1.5

version 1.4, 1996/09/02 16:04:20 version 1.5, 1996/11/30 21:09:05
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: targ.c,v 1.9 1996/08/30 17:59:43 thorpej Exp $ */  /*      $NetBSD: targ.c,v 1.10 1996/11/06 17:59:27 christos Exp $       */
   
 /*  /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.   * Copyright (c) 1988, 1989, 1990, 1993
  * Copyright (c) 1988, 1989 by Adam de Boor   *      The Regents of the University of California.  All rights reserved.
  * Copyright (c) 1989 by Berkeley Softworks   * Copyright (c) 1989 by Berkeley Softworks
  * All rights reserved.   * All rights reserved.
  *   *
Line 40 
Line 40 
  */   */
   
 #ifndef lint  #ifndef lint
 /* from: static char sccsid[] = "@(#)targ.c     5.9 (Berkeley) 3/1/91"; */  #if 0
 static char *rcsid = "$Id$";  static char sccsid[] = "@(#)targ.c      8.2 (Berkeley) 3/19/94";
   #else
   static char *rcsid = "$OpenBSD$";
   #endif
 #endif /* not lint */  #endif /* not lint */
   
 /*-  /*-
Line 274 
Line 277 
 /*-  /*-
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  * Targ_FindList --   * Targ_FindList --
  *      Make a complete list of GNodes from the given list of names   *      Make a complete list of GNodes from the given list of names
  *   *
  * Results:   * Results:
  *      A complete list of graph nodes corresponding to all instances of all   *      A complete list of graph nodes corresponding to all instances of all
  *      the names in names.   *      the names in names.
  *   *
  * Side Effects:   * Side Effects:
  *      If flags is TARG_CREATE, nodes will be created for all names in   *      If flags is TARG_CREATE, nodes will be created for all names in
Line 395 
Line 398 
 /******************* DEBUG INFO PRINTING ****************/  /******************* DEBUG INFO PRINTING ****************/
   
 static GNode      *mainTarg;    /* the main target, as set by Targ_SetMain */  static GNode      *mainTarg;    /* the main target, as set by Targ_SetMain */
 /*-  /*-
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  * Targ_SetMain --   * Targ_SetMain --
  *      Set our idea of the main target we'll be creating. Used for   *      Set our idea of the main target we'll be creating. Used for
Line 477 
Line 480 
              months[parts->tm_mon], parts->tm_mday, 1900 + parts->tm_year);               months[parts->tm_mon], parts->tm_mday, 1900 + parts->tm_year);
     return(buf);      return(buf);
 }  }
   
 /*-  /*-
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  * Targ_PrintType --   * Targ_PrintType --
Line 495 
Line 498 
     register int    type;      register int    type;
 {  {
     register int    tbit;      register int    tbit;
   
 #ifdef __STDC__  #ifdef __STDC__
 #define PRINTBIT(attr)  case CONCAT(OP_,attr): printf("." #attr " "); break  #define PRINTBIT(attr)  case CONCAT(OP_,attr): printf("." #attr " "); break
 #define PRINTDBIT(attr) case CONCAT(OP_,attr): if (DEBUG(TARG)) printf("." #attr " "); break  #define PRINTDBIT(attr) case CONCAT(OP_,attr): if (DEBUG(TARG)) printf("." #attr " "); break
Line 582 
Line 585 
             Lst_ForEach (gn->parents, TargPrintName, (ClientData)0);              Lst_ForEach (gn->parents, TargPrintName, (ClientData)0);
             fputc ('\n', stdout);              fputc ('\n', stdout);
         }          }
   
         printf("%-16s", gn->name);          printf("%-16s", gn->name);
         switch (gn->type & OP_OPMASK) {          switch (gn->type & OP_OPMASK) {
             case OP_DEPENDS:              case OP_DEPENDS:

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5