/[anubis]/anubis/src/misc.c
ViewVC logotype

Diff of /anubis/src/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by gray, Sun Jul 20 08:34:52 2003 UTC revision 1.9 by gray, Sun Aug 24 16:14:04 2003 UTC
# Line 25  Line 25 
25  #include "headers.h"  #include "headers.h"
26  #include "extern.h"  #include "extern.h"
27    
28  /* String lists */  /* General-purpose function for use with list_destroy when deallocating
29       simple lists */
30  static int  int
31  _mem_free(void *item, void *data)  anubis_free_list_item(void *item, void *data)
32  {  {
33          free(item);          free(item);
34          return 0;          return 0;
35  }  }
36    
37    /* String lists */
38    
39  void  void
40  destroy_string_list(LIST **plist)  destroy_string_list(LIST **plist)
41  {  {
42          list_destroy(plist, _mem_free, NULL);          list_destroy(plist, anubis_free_list_item, NULL);
43  }  }
44    
45  static int  static int

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26