2 * Parse and linearize the tree for testing.
4 * Copyright (C) 2003 Transmeta Corp.
5 * 2003-2004 Linus Torvalds
7 * Licensed under the Open Software License version 1.1
22 #include "expression.h"
23 #include "linearize.h"
25 static void clean_up_symbols(struct symbol_list
*list
)
29 FOR_EACH_PTR(list
, sym
) {
30 struct entrypoint
*ep
;
33 ep
= linearize_symbol(sym
);
36 } END_FOR_EACH_PTR(sym
);
39 int main(int argc
, char **argv
)
41 struct string_list
*filelist
= NULL
;
44 clean_up_symbols(sparse_initialize(argc
, argv
, &filelist
));
45 FOR_EACH_PTR_NOTAG(filelist
, file
) {
46 clean_up_symbols(sparse(file
));
47 } END_FOR_EACH_PTR_NOTAG(file
);