aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-10 10:47:01 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:51 -0700
commit105f3530d45906ff3789447182bd0d8853eff800 (patch)
tree021f47b57de7fd4170907b62898e883be10675ee /lib.h
parentPHI pseudos aren't supposed to show up on the liveness (diff)
downloadsparse-105f3530d45906ff3789447182bd0d8853eff800.tar.gz
sparse-105f3530d45906ff3789447182bd0d8853eff800.tar.bz2
sparse-105f3530d45906ff3789447182bd0d8853eff800.zip
When removing/replacing pointer list entries, return the final
count. The caller want to know how many got removed if they didn't specify an exact count to begin with.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index c27dfb6..aafd126 100644
--- a/lib.h
+++ b/lib.h
@@ -87,8 +87,8 @@ struct ptr_list {
#define ptr_list_empty(x) ((x) == NULL)
void * delete_ptr_list_last(struct ptr_list **head);
-void delete_ptr_list_entry(struct ptr_list **, void *, int);
-void replace_ptr_list_entry(struct ptr_list **, void *old, void *new, int);
+int delete_ptr_list_entry(struct ptr_list **, void *, int);
+int replace_ptr_list_entry(struct ptr_list **, void *old, void *new, int);
extern void sort_list(struct ptr_list **, int (*)(const void *, const void *));
extern void **__add_ptr_list(struct ptr_list **, void *, unsigned long tag);