RFC: case insensitive for #include

David Daney ddaney@caviumnetworks.com
Wed Jan 28 20:15:00 GMT 2009


H.J. Lu wrote:
> Hi,
> 
> I got a request to try "FOO.H" if foo.h doesn't exist when dealing
> with
> 
> #include "foo.h"
> 
> Any comments?
> 

How about "Foo.h", "FOo.H", etc.?

I have found as many errors with mixed case screw-ups as with the 
'single case' variety you mention.

Would you want to make it fully case insensitive or only try the 
lower->upper case?

David Daney



More information about the Gcc mailing list