Linus Torvalds wrote:-

> Ok. If there's always just one, then why not just keep it always there at 
> the beginning of the array, and then you have "quote_includepath" that is 
> initialized to point there, but "-I-" will do
> 
>       quote_includepath = include_paths + 1;
> 
> (which is idempotent, so you can have as many -I-'s as you want, without
> even worrying about it).
> 
> And then lookup makes tons of sense with the beginning just always being
> one of "angle_includepath", "quote_includepath" or "stream->next_path".

This is what GCC's CPP itself does internally.

Neil.
-
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

Reply via email to