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 /token.h
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 'token.h')
-rw-r--r--token.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/token.h b/token.h
index 98f08f4..7e7d9de 100644
--- a/token.h
+++ b/token.h
@@ -17,7 +17,8 @@ struct stream {
const char *name;
/* Use these to check for "already parsed" */
- int constant;
+ int constant, nesting;
+ struct ident *protect;
dev_t dev;
ino_t ino;
};