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 |