Sujet : Re: Word For Today: “Uglification”
De : nbowler (at) *nospam* draconx.ca (Nick Bowler)
Groupes : comp.lang.cDate : 13. Mar 2024, 18:01:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ussm67$108sl$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
On Tue, 12 Mar 2024 16:00:05 -0700, Keith Thompson wrote:
(The standard does mention the possibility that the "foo.h" search is
not supported. Any such implementation would not be able to handle
user-defined header files; perhaps they would have to be installed as
"headers" somehow. In every implementation I know about, the compiler
will *at least* find the foo.h file if it's in the same directory as
the file that includes it.
The POSIX-standard compiler commands (c89, c99) require #include
searches to work this way so it's not surprising that today, most
compilers work like this.
However some traditional compilers (for example, VAX C) search relative
to the current working directory of the running compiler for #include
"foo.h", rather than the directory containing the source file.
Standard C does not forbid such behaviour and standard C predates the
first version of POSIX.2 by a few years so there are probably some
standard C compilers that work like VAX C.