From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: GTK patches part 2 Date: Tue, 10 Dec 2002 21:44:24 +0100 (MET) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200212102040.gBAKe116016464@stubby.bodenonline.com> References: <15982.1039550899@remus.pretzelnet.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039553204 16244 80.91.224.249 (10 Dec 2002 20:46:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2002 20:46:44 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18LrH9-0004Dq-00 for ; Tue, 10 Dec 2002 21:46:43 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18LrRr-0004AR-00 for ; Tue, 10 Dec 2002 21:57:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LrGH-0006tN-01 for emacs-devel@quimby.gnus.org; Tue, 10 Dec 2002 15:45:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18LrFt-0006rb-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 15:45:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18LrFq-0006mf-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 15:45:23 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18LrFp-0006ma-00 for emacs-devel@gnu.org; Tue, 10 Dec 2002 15:45:21 -0500 Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44])gBAKe116016464; Tue, 10 Dec 2002 21:40:01 +0100 Original-To: epg@pretzelnet.org (Eric Gillespie) In-Reply-To: <15982.1039550899@remus.pretzelnet.org> from "Eric Gillespie" at dec 10, 2002 03:08:19 X-Mailer: ELM [version 2.5 PL0pre8] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10041 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10041 > > "Jan D." writes: > > > Well, I don't usually add include:s unless needed. For example, > > xterm.h includes X11 headers who in turn includes a lot of standard > > headers. If what is needed gets included that way, I'm fine with it. > > You can't rely on that. If *you* make reference to symbols or > macros, *you* need to include the appropriate header file, > regardless of whether or not some other header you include also > needs that header file. Sometimes people just dump all their There is no such requrement in the C standard, even if it makes sense for some people. > includes into one local header file and just include that. It > gets the job done, but then each file isn't explicitly declaring > what it needs. For example, stdlib.h is included by config.h, so it is clearly redundant to do so elsewhere. I can put in stdio.h just for the sake of portability. Jan D.