From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#21707: include-file cleanup for src directory Date: Tue, 20 Oct 2015 11:50:34 -0700 Organization: UCLA Computer Science Department Message-ID: <56268CFA.6040708@cs.ucla.edu> References: <56249650.5050804@cs.ucla.edu> <83vba3gw4p.fsf@gnu.org> <5625D71F.402@cs.ucla.edu> <83oaftfulj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1445367099 10983 80.91.229.3 (20 Oct 2015 18:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Oct 2015 18:51:39 +0000 (UTC) Cc: 21707@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 20 20:51:23 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zoc08-0004kg-Fw for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Oct 2015 20:51:12 +0200 Original-Received: from localhost ([::1]:47562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoc07-00055J-Sr for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Oct 2015 14:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoc02-00052H-Ee for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2015 14:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zobzy-0004r5-Eg for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2015 14:51:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zobzy-0004qs-As for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2015 14:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zobzx-0003mp-Uy for bug-gnu-emacs@gnu.org; Tue, 20 Oct 2015 14:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Oct 2015 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21707 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 21707-submit@debbugs.gnu.org id=B21707.144536705714545 (code B ref 21707); Tue, 20 Oct 2015 18:51:01 +0000 Original-Received: (at 21707) by debbugs.gnu.org; 20 Oct 2015 18:50:57 +0000 Original-Received: from localhost ([127.0.0.1]:58392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zobzs-0003mX-Uz for submit@debbugs.gnu.org; Tue, 20 Oct 2015 14:50:57 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46181) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZobzY-0003m6-ME for 21707@debbugs.gnu.org; Tue, 20 Oct 2015 14:50:55 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 33F191601AD; Tue, 20 Oct 2015 11:50:35 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Bnnh6BXRuA33; Tue, 20 Oct 2015 11:50:34 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 822171608CE; Tue, 20 Oct 2015 11:50:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zZkvuqRmw7Pr; Tue, 20 Oct 2015 11:50:34 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 63D491601AD; Tue, 20 Oct 2015 11:50:34 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <83oaftfulj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107785 Archived-At: Eli Zaretskii wrote: > Would it help if we avoid including any of our headers in any > other of our headers, so that the headers included by a particular C > file are visible by just looking at that single C file? That would run afoul of a more important design goal, which is that we should be able to include headers in any order. And anyway, compiling a typical C file ordinarily brings in oodles of system headers that the C file doesn't explicitly ask for, so regardless of our style the only practical way to see what headers a C file includes is to compile it and see what gcc -E outputs. Ideally a C source file should include all headers that define symbols the source file directly uses, and no headers other than that. This should be true for both .h and .c files. We're not there by a long shot, but that should be the goal.