diff options
author | 2003-03-18 13:44:15 -0700 | |
---|---|---|
committer | 2005-04-07 20:59:24 -0700 | |
commit | e94aa8a0001e135fef59c53001c96f5b50677631 (patch) | |
tree | 0987ff24f5a100538d72c25c74c8d0cb38a0cbe0 /test-parsing.c | |
parent | Create function to clear out the existing allocations. The (diff) | |
download | sparse-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.c | 9 |
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(); |