Print this page
11972 resync smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/smatch/src/test-inspect.c
+++ new/usr/src/tools/smatch/src/test-inspect.c
1 1
2 2 #include <stdarg.h>
3 3 #include <stdlib.h>
4 4 #include <stdio.h>
5 5 #include <string.h>
6 6 #include <ctype.h>
7 7 #include <unistd.h>
8 8 #include <fcntl.h>
9 9
10 10 #include "lib.h"
11 11 #include "allocate.h"
12 12 #include "token.h"
13 13 #include "parse.h"
14 14 #include "symbol.h"
15 15 #include "expression.h"
16 16
17 17 #include "ast-view.h"
18 18
19 19 static void expand_symbols(struct symbol_list *list)
20 20 {
21 21 struct symbol *sym;
22 22 FOR_EACH_PTR(list, sym) {
23 23 expand_symbol(sym);
24 24 } END_FOR_EACH_PTR(sym);
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
25 25 }
26 26
27 27 int main(int argc, char **argv)
28 28 {
29 29 struct string_list *filelist = NULL;
30 30 char *file;
31 31 struct symbol_list *view_syms = NULL;
32 32
33 33 gtk_init(&argc,&argv);
34 34 expand_symbols(sparse_initialize(argc, argv, &filelist));
35 - FOR_EACH_PTR_NOTAG(filelist, file) {
35 + FOR_EACH_PTR(filelist, file) {
36 36 struct symbol_list *syms = sparse(file);
37 37 expand_symbols(syms);
38 38 concat_symbol_list(syms, &view_syms);
39 - } END_FOR_EACH_PTR_NOTAG(file);
39 + } END_FOR_EACH_PTR(file);
40 40 treeview_main(view_syms);
41 41 return 0;
42 42 }
43 43
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX