diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-21 10:12:23 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-21 10:12:23 +0200 |
| commit | d99e1c4b72b2fda1bae2db1ba72385d9f380c160 (patch) | |
| tree | 094fb9306b2f62eea99042257987d4d5d4dcccad /lib.c | |
| parent | b837ca11382b66da3c62aacef013ab4c9bcb3297 (diff) | |
| parent | 3da4f16d318283544dc99588e27c0ac69058d012 (diff) | |
| download | sparse-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |
