aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-06-21 10:12:23 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-06-21 10:12:23 +0200
commitd99e1c4b72b2fda1bae2db1ba72385d9f380c160 (patch)
tree094fb9306b2f62eea99042257987d4d5d4dcccad /lib.c
parentb837ca11382b66da3c62aacef013ab4c9bcb3297 (diff)
parent3da4f16d318283544dc99588e27c0ac69058d012 (diff)
downloadsparse-dev-d99e1c4b72b2fda1bae2db1ba72385d9f380c160.tar.gz
Merge branch 'ptrlist-cleanup' into tip
This series contains a number of cleanups of the list walking macros. The main changes are: * make untagged pointers the normal case * use structurally equivalent struct for all pointer lists to avoid needless casting to and fro struct ptrlist * simplify PREPARE/NEXT/RESET logic by using common PTR_NEXT()
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 33e40128..7d9f4f91 100644
--- a/lib.c
+++ b/lib.c
@@ -1385,7 +1385,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();
@@ -1395,7 +1395,7 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list
fdump_ir = PASS_FINAL;
list = NULL;
- if (!ptr_list_empty(filelist)) {
+ if (filelist) {
// Initialize type system
init_ctype();