aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-18 13:44:15 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:24 -0700
commite94aa8a0001e135fef59c53001c96f5b50677631 (patch)
tree0987ff24f5a100538d72c25c74c8d0cb38a0cbe0 /test-parsing.c
parentCreate function to clear out the existing allocations. The (diff)
downloadsparse-e94aa8a0001e135fef59c53001c96f5b50677631.tar.gz
sparse-e94aa8a0001e135fef59c53001c96f5b50677631.tar.bz2
sparse-e94aa8a0001e135fef59c53001c96f5b50677631.zip
Whitespace and comment fixes for testers
Diffstat (limited to 'test-parsing.c')
-rw-r--r--test-parsing.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-parsing.c b/test-parsing.c
index 9f2d1dd..3abcbfd 100644
--- a/test-parsing.c
+++ b/test-parsing.c
@@ -20,11 +20,20 @@ int main(int argc, char **argv)
if (fd < 0)
die("No such file: %s", argv[1]);
init_symbols();
+
+ // Tokenize the input stream
token = tokenize(argv[1], fd, NULL);
+
+ // Pre-process the stream
token = preprocess(token);
+
+ // Parse the resulting C code
translation_unit(token, &list);
+
+ // Show the end result.
show_symbol_list(list);
+ // And show the allocation statistics
show_ident_alloc();
show_token_alloc();
show_symbol_alloc();