On Wed, 3 Aug 2005, Mitesh Shah wrote:
>
> I think something like this would be good - first call sparse_init(argc,
> argv) and do one time init things and options parsing and call
> sparse_file(filename) in a loop to get the file specific tree back. Somewhat
> similar to what you are doing now but the caller stores the tree separately
> somewhere.
Ok, done.
The way it is done, "sparse_init(argc, argv)" will overwrite "argv" with a
NULL-terminated list of files, and then "sparse(argv)" will pop off the
first entry from that list. It may not be the most beautiful interface
ever, but it's _very_ simple to use:
int main(int argc, char **argv)
{
sparse_init(argc, argv);
while (*argv) {
struct symbol_list *list = sparse(argv);
..
}
}
Pushed out.
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