Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: style question - includes Date: Sat, 30 Sep 2017 15:36:41 -0700 Organization: None to speak of Lines: 26 Message-ID: References: <9a15228d-c10f-4ca4-b1cc-ce4bac0cad57@googlegroups.com> <53b3579e-0720-48fc-8869-fde0c55f169a@googlegroups.com> <7e264fae-2cac-449a-a453-432302ea79ce@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="c456813dbd2a0b884a65c1e00e49f833"; logging-data="1616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZuQ2C9IcC+JnlBoBae9OR" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:IX0g6ZzNH/GbuiCdVxsH7X1o2YY= sha1:aHxUT9Vq14L+C2EjC7vxYrnglc4= Xref: csiph.com comp.lang.c:120633 supercat@casperkitty.com writes: > On Saturday, September 30, 2017 at 2:25:25 PM UTC-5, james...@verizon.net wrote: >> However, there are some things that you can say portably: the places that are >> searched fall into three categories (some of which might be empty): >> A. those that are searched only by #include "" >> B. Those that are searched by #include<>, and also during the first search done >> by #include "". >> C. Those that are searched by #include<>, but are only searched by #include "" >> during it's second search. > > By my understanding, an implementation would allow an implementation > to process e.g. #include by defining a bunch of macros and > outputting an intrinsic to define a bunch of identifiers. Right. N1570 6.10.2 says that #include <...> searches for a *header*, while #include "..." searches for a *source file* (and falls back to the <...> search). I don't think the standard defines what a "header" is, which means it can be anything that acts like an includable source file. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"