Re: [sv-ec] System include proposal


Subject: Re: [sv-ec] System include proposal
From: Stephen Williams (steve@icarus.com)
Date: Tue Mar 11 2003 - 15:42:04 PST


Neil.Korpusik@eng.sun.com said:

  Some C implementations allow <> to refer to user-written include files. When
  the user inadvertently chooses the same filename that happens to correspond
  to a file contained in the installation area the user-written file gets
  ignored.

All C implementations behave in this manner. In every C compiler I've
met, the <> search patch can be extended to include user supplied
directories using -I flags. The MSVC compiler in addition allows
that path to be extended by environment variable.

This ability to extend the <> search path is logically necessary,
because library vendors are users so far as the compiler writer is
concerned, but "system" so far as the end users are concerned.

My point was that there is a loooongstanding convention for the behavior
of <> and "" in include file search paths. Bucking that convention can
lead to confusion. (Or worse, outright, blind misinterpretation, because
it is C programmers who implement Verilog compilers:-)

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



This archive was generated by hypermail 2b28 : Tue Mar 11 2003 - 15:43:27 PST