From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17341 invoked by alias); 19 Jan 2014 16:28:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17332 invoked by uid 89); 19 Jan 2014 16:28:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f175.google.com Received: from mail-ob0-f175.google.com (HELO mail-ob0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 19 Jan 2014 16:28:37 +0000 Received: by mail-ob0-f175.google.com with SMTP id wn1so696824obc.20 for ; Sun, 19 Jan 2014 08:28:35 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.148.197 with SMTP id tu5mr11348122oeb.11.1390148915174; Sun, 19 Jan 2014 08:28:35 -0800 (PST) Received: by 10.182.162.36 with HTTP; Sun, 19 Jan 2014 08:28:35 -0800 (PST) Date: Sun, 19 Jan 2014 16:28:00 -0000 Message-ID: Subject: default include files only included in main file ? From: Prathamesh Kulkarni To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00073.txt.bz2 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