[splint-discuss] baffled by sysdirs

Grant Edwards grante at visi.com
Tue Oct 26 20:41:13 EDT 2004


On Tue, Oct 26, 2004 at 07:36:13PM -0400, David Evans wrote:

> The -sysdirs flag doesn't effect the include path, just controls how
> checking is done for files found in those directories.

Oh.  That's not what I got from reading the manual, but now
that you state it plainly, I get it.

    [...] X.h is found in a directory that is a system
    directory (as set by the -sysdirs flag; the default is
    /usr/include),

> For your include files to be found, you would need to use
> -I/opt/gnu/h8300-elf-include

Right, but my question was how do I get splint to _not_ look in
/usr/include and /usr/local/include?

I think I've found the answer: +skip-sys-headers...

> > Why is it reading string.h from /usr/include???

The Manual also says something about "the system base include
path (read from the include environment variable if set", but I
can't find any mention of what the name of the environment
variable is.

-- 
Grant Edwards
grante at visi.com




More information about the splint-discuss mailing list