aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--pre-process.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pre-process.c b/pre-process.c
index 603cc00c..6d12f173 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -655,10 +655,12 @@ static const char *token_name_sequence(struct token *token, int endop, struct to
static int already_tokenized(const char *path)
{
- int i;
- struct stream *s = input_streams;
+ int stream, next;
+
+ for (stream = *hash_stream(path); stream >= 0 ; stream = next) {
+ struct stream *s = input_streams + stream;
- for (i = input_stream_nr; --i >= 0; s++) {
+ next = s->next_stream;
if (s->constant != CONSTANT_FILE_YES)
continue;
if (strcmp(path, s->name))