diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-01-03 13:51:14 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-13 05:49:23 +0200 |
| commit | 320da0d6a1bfad5bad24600da763cdeabd30c5ba (patch) | |
| tree | 326671a082632fe62906e8f9f8e8f1d64fea3264 | |
| parent | 2fcbc805997630e533d2e85bd89291546b0e4398 (diff) | |
| download | sparse-dev-320da0d6a1bfad5bad24600da763cdeabd30c5ba.tar.gz | |
ptrlist: remove now unneeded add_ptr_list_notag()
Since add_ptr_list_notag() is now simply a define to add_ptr_list()
it's not anymore really needed and can be removed.
Remove add_ptr_list_notag()'s definition and replace its only call
by a call to add_ptr_list().
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | lib.c | 2 | ||||
| -rw-r--r-- | ptrlist.h | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -1352,7 +1352,7 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list args = handle_switch(arg+1, args); continue; } - add_ptr_list_notag(filelist, arg); + add_ptr_list(filelist, arg); } handle_switch_W_finalize(); handle_switch_v_finalize(); @@ -57,8 +57,6 @@ extern int linearize_ptr_list(struct ptr_list *, void **, int); MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list_tag((struct ptr_list **)(list), (entry), (tag)))) #define add_ptr_list(list,entry) \ MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list((struct ptr_list **)(list), (entry)))) -#define add_ptr_list_notag(list,entry) \ - add_ptr_list(list, entry) #define free_ptr_list(list) \ do { VRFY_PTR_LIST(*(list)); __free_ptr_list((struct ptr_list **)(list)); } while (0) |
