This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: default include files only included in main file ?
- From: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 19 Jan 2014 22:13:08 +0530
- Subject: Re: default include files only included in main file ?
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsA9oh2GBR47tuJ1-LNrFcK+0NCwkzykpwrMuFoBofsSCg at mail dot gmail dot com>
Sorry, please ignore the question.
On Sun, Jan 19, 2014 at 9:58 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Hi, sorry to ask a daft question, but are default include files (eg:
> stdc-predef.h) only included in the main file ?
>
> So can I safely assume that if a particular file's include type is
> IT_DEFAULT or IT_CMDLINE (passed by -include), then the file
> #including it, shall be the main file (ie _cpp_file->main_file shall
> be true for that file) ?
>
> Thanks and Regards,
> Prathamesh