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

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

version 1.35, 2000/06/23 16:41:53 version 1.36, 2000/09/14 13:32:07
Line 39 
Line 39 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #ifndef lint  
 #if 0  
 static char sccsid[] = "@(#)suff.c      8.4 (Berkeley) 3/21/94";  
 #else  
 static char rcsid[] = "$OpenBSD$";  
 #endif  
 #endif /* not lint */  
   
 /*-  /*-
  * suff.c --   * suff.c --
  *      Functions to maintain suffix lists and find implicit dependents   *      Functions to maintain suffix lists and find implicit dependents
Line 103 
Line 95 
 #include          "hash.h"  #include          "hash.h"
 #include          "dir.h"  #include          "dir.h"
   
   #ifndef lint
   #if 0
   static char sccsid[] = "@(#)suff.c      8.4 (Berkeley) 3/21/94";
   #else
   UNUSED
   static char rcsid[] = "$OpenBSD$";
   #endif
   #endif /* not lint */
   
 static LIST      sufflist;      /* Lst of suffixes */  static LIST      sufflist;      /* Lst of suffixes */
 #ifdef CLEANUP  #ifdef CLEANUP
 static LIST      suffClean;     /* Lst of suffixes to be cleaned */  static LIST      suffClean;     /* Lst of suffixes to be cleaned */
Line 167 
Line 168 
 static int SuffSuffIsPrefix __P((void *, void *));  static int SuffSuffIsPrefix __P((void *, void *));
 static int SuffGNHasNameP __P((void *, void *));  static int SuffGNHasNameP __P((void *, void *));
 static void SuffUnRef __P((Lst, Suff *));  static void SuffUnRef __P((Lst, Suff *));
 static void SuffFree __P((void *));  
 static void SuffInsert __P((Lst, Suff *));  static void SuffInsert __P((Lst, Suff *));
 static void SuffRemove __P((Lst, Suff *));  static void SuffRemove __P((Lst, Suff *));
 static Boolean SuffParseTransform __P((char *, Suff **, Suff **));  static Boolean SuffParseTransform __P((char *, Suff **, Suff **));
Line 345 
Line 345 
   
 /*-  /*-
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  * SuffFree  --  
  *      Free up all memory associated with the given suffix structure.  
  *  
  * Results:  
  *      none  
  *  
  * Side Effects:  
  *      the suffix entry is detroyed  
  *-----------------------------------------------------------------------  
  */  
 static void  
 SuffFree(sp)  
     void *sp;  
 {  
     Suff           *s = (Suff *) sp;  
   
     if (s == suffNull)  
         suffNull = NULL;  
   
     if (s == emptySuff)  
         emptySuff = NULL;  
   
     Lst_Destroy(&s->ref, NOFREE);  
     Lst_Destroy(&s->children, NOFREE);  
     Lst_Destroy(&s->parents, NOFREE);  
     Lst_Destroy(&s->searchPath, Dir_Destroy);  
   
     free(s->name);  
     free(s);  
 }  
   
 /*-  
  *-----------------------------------------------------------------------  
  * SuffRemove  --   * SuffRemove  --
  *      Remove the suffix from the list   *      Remove the suffix from the list
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
Line 1595 
Line 1562 
     char        *eoarch;    /* End of archive portion */      char        *eoarch;    /* End of archive portion */
     char        *eoname;    /* End of member portion */      char        *eoname;    /* End of member portion */
     GNode       *mem;       /* Node for member */      GNode       *mem;       /* Node for member */
     int         i;          /* Index into copy and vals */  
     Suff        *ms;        /* Suffix descriptor for member */      Suff        *ms;        /* Suffix descriptor for member */
     char        *name;      /* Start of member's name */      char        *name;      /* Start of member's name */
   

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