aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2003-03-19 18:55:25 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:29 -0700
commit6b6ce5ca1dd61c0a73bf855846ad2b02991825e7 (patch)
tree0a27fc040f039839139a511b4dc850b6ffe973fa /test-lexing.c
parentStart tracking whether a stream may be constant or not. Very experimental. (diff)
downloadsparse-6b6ce5ca1dd61c0a73bf855846ad2b02991825e7.tar.gz
sparse-6b6ce5ca1dd61c0a73bf855846ad2b02991825e7.tar.bz2
sparse-6b6ce5ca1dd61c0a73bf855846ad2b02991825e7.zip
Avoid re-tokenizing header files that are protected by
#ifndef X ... #endif X if X is already defined. This avoids doing unnecessary work on duplicate includes.
Diffstat (limited to 'test-lexing.c')
-rw-r--r--test-lexing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c
index e412e15..64f9e56 100644
--- a/test-lexing.c
+++ b/test-lexing.c
@@ -16,6 +16,7 @@ int main(int argc, char **argv)
if (fd < 0)
die("No such file: %s", argv[1]);
+ init_symbols();
token = tokenize(argv[1], fd, NULL);
close(fd);
token = preprocess(token);