diff options
author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-18 13:44:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:24 -0700 |
commit | e94aa8a0001e135fef59c53001c96f5b50677631 (patch) | |
tree | 0987ff24f5a100538d72c25c74c8d0cb38a0cbe0 | |
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
-rw-r--r-- | test-lexing.c | 1 | ||||
-rw-r--r-- | test-parsing.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c index 6797609..cb04e6a 100644 --- a/test-lexing.c +++ b/test-lexing.c @@ -18,6 +18,7 @@ int main(int argc, char **argv) token = tokenize(argv[1], fd, NULL); token = preprocess(token); + while (!eof_token(token)) { struct token *next = token->next; char separator = ' '; 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(); |