diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2003-09-07 14:10:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:01:04 -0700 |
commit | a9a94cfd3e49bca5097467e0be19781ad7ecc567 (patch) | |
tree | 7982142a247813ebe104228638241c0052e07f93 /lib.h | |
parent | o create create_builtin_stream (diff) | |
download | sparse-a9a94cfd3e49bca5097467e0be19781ad7ecc567.tar.gz sparse-a9a94cfd3e49bca5097467e0be19781ad7ecc567.tar.bz2 sparse-a9a94cfd3e49bca5097467e0be19781ad7ecc567.zip |
[PATCH] free_ptr_list() lib function
I allocate a pointer list for each function, and free it after I'm done,
using a new function, free_ptr_list(). That's what this patch adds.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -62,6 +62,7 @@ struct ptr_list { #define ITERATE_LAST 2 void iterate(struct ptr_list *,void (*callback)(void *, void *, int), void*); extern void add_ptr_list(struct ptr_list **, void *); +extern void free_ptr_list(struct ptr_list **); extern int ptr_list_size(struct ptr_list *); extern char **handle_switch(char *arg, char **next); extern void add_pre_buffer(const char *fmt, ...); |