Print this page
11972 resync smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/test-parsing.c
          +++ new/usr/src/tools/smatch/src/test-parsing.c
↓ open down ↓ 56 lines elided ↑ open up ↑
  57   57          list = sparse_initialize(argc, argv, &filelist);
  58   58  
  59   59          // Simplification
  60   60          clean_up_symbols(list);
  61   61  
  62   62  #if 1
  63   63          show_symbol_list(list, "\n\n");
  64   64          printf("\n\n");
  65   65  #endif
  66   66  
  67      -        FOR_EACH_PTR_NOTAG(filelist, file) {
       67 +        FOR_EACH_PTR(filelist, file) {
  68   68                  list = sparse(file);
  69   69  
  70   70                  // Simplification
  71   71                  clean_up_symbols(list);
  72   72  
  73   73  #if 1
  74   74                  // Show the end result.
  75   75                  show_symbol_list(list, "\n\n");
  76   76                  printf("\n\n");
  77   77  #endif
  78      -        } END_FOR_EACH_PTR_NOTAG(file);
       78 +        } END_FOR_EACH_PTR(file);
  79   79  
  80   80  #if 0
  81   81          // And show the allocation statistics
  82   82          show_ident_alloc();
  83   83          show_token_alloc();
  84   84          show_symbol_alloc();
  85   85          show_expression_alloc();
  86   86          show_statement_alloc();
  87   87          show_string_alloc();
  88   88          show_bytes_alloc();
  89   89  #endif
  90   90          return 0;
  91   91  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX