diff options
author | 2005-08-03 18:36:00 -0700 | |
---|---|---|
committer | 2005-08-03 18:36:00 -0700 | |
commit | 2c36119df5a9bf9ad04f665961721fdeb7ca7551 (patch) | |
tree | 295dc51738bf051de50b581c7ccb5c5fe220e146 /pre-process.c | |
parent | Get closer to parsing multiple files correctly. (diff) | |
download | sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.tar.gz sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.tar.bz2 sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.zip |
Update the calling interface to "sparse()".
Start off with
sparse_initialize(argc, argv);
which will return the number of filenames found. You can then use that,
or just check if *argv is NULL in a loop like
while (*argv)
list = sparse(argv);
where you get the declaration list for each file in turn.
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-process.c b/pre-process.c index 6894f1d..cb99365 100644 --- a/pre-process.c +++ b/pre-process.c @@ -1135,7 +1135,7 @@ static int handle_undef(struct stream *stream, struct token **line, struct token while (*sym) { struct symbol *t = *sym; if (t->namespace == NS_MACRO) { - *sym = t->next_id; + t->namespace = NS_INVISIBLEMACRO; return 1; } sym = &t->next_id; |