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

Diff for /src/usr.bin/make/lst.h between version 1.15 and 1.16

version 1.15, 2000/06/17 14:38:17 version 1.16, 2000/06/17 14:43:36
Line 98 
Line 98 
 /*  /*
  * NOFREE can be used as the freeProc to Lst_Destroy when the elements are   * NOFREE can be used as the freeProc to Lst_Destroy when the elements are
  *      not to be freed.   *      not to be freed.
  * NOCOPY performs similarly when given as the copyProc to Lst_Duplicate.   * NOCOPY performs similarly when given as the copyProc to Lst_Clone.
  */   */
 #define NOFREE          ((SimpleProc)0)  #define NOFREE          ((SimpleProc)0)
 #define NOCOPY          ((DuplicateProc)0)  #define NOCOPY          ((DuplicateProc)0)
   
 #define LST_CONCNEW     0   /* create new LstNode's when using Lst_Concat */  
 #define LST_CONCLINK    1   /* relink LstNode's when using Lst_Concat */  
   
 /*  /*
  * Creation/destruction functions   * Creation/destruction functions
  */   */
 /* CTOR/DTOR, ala C++ */  /* CTOR/DTOR, ala C++ */
   /* Create a new list */
 void            Lst_Init __P((Lst));  void            Lst_Init __P((Lst));
   /* Destroy an old one */
 void            Lst_Destroy __P((Lst, SimpleProc));  void            Lst_Destroy __P((Lst, SimpleProc));
   
 /* Create a new list */  
 Lst             Lst_New __P((void));  
 /* Destroy an old one */  
 void            Lst_Delete __P((Lst, SimpleProc));  
 /* Duplicate an existing list */  /* Duplicate an existing list */
 Lst             Lst_Duplicate __P((Lst, DuplicateProc));  Lst             Lst_Clone __P((Lst, Lst, DuplicateProc));
 /* True if list is empty */  /* True if list is empty */
 Boolean         Lst_IsEmpty __P((Lst));  Boolean         Lst_IsEmpty __P((Lst));
   
Line 137 
Line 132 
 void            Lst_Remove __P((Lst, LstNode));  void            Lst_Remove __P((Lst, LstNode));
 /* Replace a node with a new value */  /* Replace a node with a new value */
 void            Lst_Replace __P((LstNode, void *));  void            Lst_Replace __P((LstNode, void *));
 /* Concatenate two lists */  /* Concatenate two lists, destructive.  */
 void            Lst_Concat __P((Lst, Lst, int));  void            Lst_ConcatDestroy __P((Lst, Lst));
   /* Concatenate two lists, non destructive */
   void            Lst_Concat __P((Lst, Lst));
   
 /*  /*
  * Node-specific functions   * Node-specific functions

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16