Print this page
11972 resync smatch


  47                 expand_symbol(sym);
  48         } END_FOR_EACH_PTR(sym);
  49 }
  50 
  51 int main(int argc, char **argv)
  52 {
  53         struct symbol_list * list;
  54         struct string_list * filelist = NULL;
  55         char *file;
  56 
  57         list = sparse_initialize(argc, argv, &filelist);
  58 
  59         // Simplification
  60         clean_up_symbols(list);
  61 
  62 #if 1
  63         show_symbol_list(list, "\n\n");
  64         printf("\n\n");
  65 #endif
  66 
  67         FOR_EACH_PTR_NOTAG(filelist, file) {
  68                 list = sparse(file);
  69 
  70                 // Simplification
  71                 clean_up_symbols(list);
  72 
  73 #if 1
  74                 // Show the end result.
  75                 show_symbol_list(list, "\n\n");
  76                 printf("\n\n");
  77 #endif
  78         } END_FOR_EACH_PTR_NOTAG(file);
  79 
  80 #if 0
  81         // And show the allocation statistics
  82         show_ident_alloc();
  83         show_token_alloc();
  84         show_symbol_alloc();
  85         show_expression_alloc();
  86         show_statement_alloc();
  87         show_string_alloc();
  88         show_bytes_alloc();
  89 #endif
  90         return 0;
  91 }


  47                 expand_symbol(sym);
  48         } END_FOR_EACH_PTR(sym);
  49 }
  50 
  51 int main(int argc, char **argv)
  52 {
  53         struct symbol_list * list;
  54         struct string_list * filelist = NULL;
  55         char *file;
  56 
  57         list = sparse_initialize(argc, argv, &filelist);
  58 
  59         // Simplification
  60         clean_up_symbols(list);
  61 
  62 #if 1
  63         show_symbol_list(list, "\n\n");
  64         printf("\n\n");
  65 #endif
  66 
  67         FOR_EACH_PTR(filelist, file) {
  68                 list = sparse(file);
  69 
  70                 // Simplification
  71                 clean_up_symbols(list);
  72 
  73 #if 1
  74                 // Show the end result.
  75                 show_symbol_list(list, "\n\n");
  76                 printf("\n\n");
  77 #endif
  78         } END_FOR_EACH_PTR(file);
  79 
  80 #if 0
  81         // And show the allocation statistics
  82         show_ident_alloc();
  83         show_token_alloc();
  84         show_symbol_alloc();
  85         show_expression_alloc();
  86         show_statement_alloc();
  87         show_string_alloc();
  88         show_bytes_alloc();
  89 #endif
  90         return 0;
  91 }