Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MU53Z-0006Fq-80 for mharc-grub-devel@gnu.org; Thu, 23 Jul 2009 16:38:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU53X-0006ES-0c for grub-devel@gnu.org; Thu, 23 Jul 2009 16:38:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU53S-0006BL-FN for grub-devel@gnu.org; Thu, 23 Jul 2009 16:38:22 -0400 Received: from [199.232.76.173] (port=55236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU53S-0006BE-8Y for grub-devel@gnu.org; Thu, 23 Jul 2009 16:38:18 -0400 Received: from mail-fx0-f216.google.com ([209.85.220.216]:63807) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MU53R-0004Tp-Ph for grub-devel@gnu.org; Thu, 23 Jul 2009 16:38:18 -0400 Received: by fxm12 with SMTP id 12so388459fxm.42 for ; Thu, 23 Jul 2009 13:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/h0jyTWeXxLz5cqRWxGc2nLauI9XHTGClktnXERRgtA=; b=pVcatMJRS8u8miqIGD0UdVIt55HqhiURCtQ16WTkAODwww/WRkC7iLr88NrU3K9GCI I08q99DUDzhGoN6zb9xTwNMih2EiYGGlmbhWwfV8tflaVoLwwe4MF7KGqLZ5SdKPNbPh Td44OVZ8EuIjHRqvdIORkeCbQOZW+ifeStbLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YFaZvHNBgZtVjl+9xfi4biKG9YACcIu50g6xCjSdOmJRn9EuDrcn4GkkMyJO6nDWTE TgSR8pQoSZDZmAVZvR5lRXYB60xLyVY9eELru8MlGtN7+qt1oZLvmEeBxL6+IlyXMiqh haG3ogma5P3q40vIvqu+1CZiSSQaxsJS8RK38= MIME-Version: 1.0 Received: by 10.204.103.209 with SMTP id l17mr2408708bko.152.1248381496489; Thu, 23 Jul 2009 13:38:16 -0700 (PDT) In-Reply-To: <1248380168.2661.71.camel@mj> References: <1248289850.10302.57.camel@accesodirecto.casa> <1248375298.4660.174.camel@accesodirecto.casa> <1248380168.2661.71.camel@mj> Date: Thu, 23 Jul 2009 22:38:16 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC, PATCH] C99 format specifiers for fixed-length integer types X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 20:38:23 -0000 On Thu, Jul 23, 2009 at 10:16 PM, Pavel Roskin wrote: > On Thu, 2009-07-23 at 21:51 +0200, Vladimir 'phcoder' Serbinenko wrote: >> 2009/7/23 Javier Mart=EDn : >> > Here is a new version which also incorporates the C99 integer constant >> > macros. To avoid excess verbosity, all macros have now names like Gx, >> > where x is the standard name. Thus, PRIx64, UINT64_C(a) --> GPRIx64, >> > GUINT64_C(a). >> Please respect current convention of using GRUB_ as prefix for macros >> Are the macros *_C really useful? Anyway it's to be discussed >> separately. Could you not do increase previous patch bt make a new one >> to separate what is already in discussion from new things. >> @Pavel: do you have any further comments? > > I believe it's not worth the trouble at this point. > > There are many patches that I make and never send or never commit > because I'm not sure that the change is valuable enough. =A0Every change > comes with a risk of breaking something. I also agree that *_C macros are not very useful and make code less readable however I want to let JAvier speak why he wants this in GRUB > > Javier mentioned -Wconversion. =A0It makes the compiler very noisy, but > some issues it found are real, such as the problem with ALIGN_UP. =A0It's > more important than pushing the same patch. > There is also -Wdeclaration-after-statement which reports style problems. I have currently a branch named nomixed which fixes all these parts but may introduce bugs > One day we may find a nice solution to the issue of file formats. =A0Mayb= e > a new C standard appears with new format specifications. =A0Maybe gcc wil= l > add some checks. =A0But as it stands now, we won't benefit from it enough > to justify less readable code. =A0Let's move on and work on the issues > where we can make the difference now. > Ok. Let's look at video subsystem? My framebuffer changes are necessary to get graphics support on EFI-based platforms (including GOP). I know it's big but it's mostly moving the code around and benefit would be easy implementation of new graphical drivers. Then we could merge Collin D Benett's patches as much as is already ready to go in > -- > Regards, > Pavel Roskin > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git