On Tue, 2 Aug 2005, Mitesh Shah wrote:
>
> Well, apart from the scope there are other issues as well. For example, with
> the identifiers, input_streams, includepaths, hash_table, etc. All the
> static initialization of idents and symbol_table_init is also causing
> trouble. I think the correct approach would be to not initialize all these
> things statically and cleanup before starting the next file. What do you
> suggest?
Ok, I've got something that almost kind-of-works.
It takes multiple files and will actually parse them and I think it keeps
the scopes right. However, since it actually has one global scope for
global variables, and since I put _types_ in there too, it will complain
if the two files it parses have the same type re-defined (which they often
have because they include the same header files ;).
I should make types always have "file scope", but I'm leaving it for now.
I think it's actually very close to working apart from that issue.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html