aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2003-09-07 14:10:34 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:04 -0700
commita9a94cfd3e49bca5097467e0be19781ad7ecc567 (patch)
tree7982142a247813ebe104228638241c0052e07f93 /lib.h
parento create create_builtin_stream (diff)
downloadsparse-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 1d2549b..5409e2c 100644
--- a/lib.h
+++ b/lib.h
@@ -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, ...);