Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NCifm-0007Z6-Ut for mharc-grub-devel@gnu.org; Mon, 23 Nov 2009 18:50:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCifl-0007Yu-Hk for grub-devel@gnu.org; Mon, 23 Nov 2009 18:50:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCifh-0007Vx-UM for grub-devel@gnu.org; Mon, 23 Nov 2009 18:50:21 -0500 Received: from [199.232.76.173] (port=33030 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCifh-0007Vp-K1 for grub-devel@gnu.org; Mon, 23 Nov 2009 18:50:17 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:35611 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCifh-0007SY-24 for grub-devel@gnu.org; Mon, 23 Nov 2009 18:50:17 -0500 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTP id C0FF3288F3098 for ; Tue, 24 Nov 2009 00:50:14 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 6F915D43; Mon, 23 Nov 2009 23:50:20 +0000 (GMT) Date: Mon, 23 Nov 2009 23:50:20 +0000 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20091123235020.GA25886@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: should i18n.h include misc.h if internal ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 23:50:21 -0000 Hello, Imagine that I'm going to gettexttize commands/true.c . I need to add #include , but this include defines: # define _(str) grub_gettext(str) so I need #include Any problem with this patch: === modified file 'include/grub/i18n.h' --- include/grub/i18n.h 2009-11-23 20:34:42 +0000 +++ include/grub/i18n.h 2009-11-23 23:46:19 +0000 @@ -24,6 +24,7 @@ # include # define _(str) gettext(str) #else +# include # define _(str) grub_gettext(str) #endif Other option would be to move these: ---- const char *EXPORT_FUNC(grub_gettext_dummy) (const char *s); extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s); ---- from misc.h to i18n.h (internal). I haven't tested but if it works it includes less things of course and could be better if it's not needed. Thanks, -- Carles Pina i Estany http://pinux.info