Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M56Aq-0006ej-88 for mharc-grub-devel@gnu.org; Fri, 15 May 2009 18:46:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M56Ao-0006dm-Jo for grub-devel@gnu.org; Fri, 15 May 2009 18:46:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M56Aj-0006bl-8s for grub-devel@gnu.org; Fri, 15 May 2009 18:46:37 -0400 Received: from [199.232.76.173] (port=35944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M56Aj-0006bi-2Y for grub-devel@gnu.org; Fri, 15 May 2009 18:46:33 -0400 Received: from mail-ew0-f210.google.com ([209.85.219.210]:56932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M56Ai-0007nA-GB for grub-devel@gnu.org; Fri, 15 May 2009 18:46:32 -0400 Received: by ewy6 with SMTP id 6so2912129ewy.42 for ; Fri, 15 May 2009 15:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=myeuL1viHvq72MQTgby4tSEYXEMycPvPeqFuQ+izU+o=; b=ccJ9JFywBKpTrac2eddcB6EbDPsSMN48D8WvpI6D0s9flBcmWuf9XIfPN7C5vokb7E tLPdY5MwO1RlaiWV0joRF26HFVVOCcpKF+zYw0OzH6eDg52O0rHYw/WT0pJI9g5lOIls nIqWbOpzCErj5jg5af+/jBT0/tQ0tVXCLdnlc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=Bd9YkCGdZ7ZKsNhGE4Te3XtwtA5sJdASojdklF2d9772b+iUzkVkkpkU/VzOsenBx5 4IjZiJ8QGtQXCKZBo5NgvdkjQNqN3vNWBo3+vMuMxdkRvpbSsHQY3KoeEi6vEB73ZWol NaGgbu93kso2D1hjWi8ypqZg9UQ+wzMNEmzZE= Received: by 10.210.128.10 with SMTP id a10mr4676645ebd.45.1242427590700; Fri, 15 May 2009 15:46:30 -0700 (PDT) Received: from ?192.168.1.104? (213.37.226.100.dyn.user.ono.com [213.37.226.100]) by mx.google.com with ESMTPS id 7sm2341810eyg.47.2009.05.15.15.46.28 (version=SSLv3 cipher=RC4-MD5); Fri, 15 May 2009 15:46:28 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <49E3E0FB.1070907@verizon.net> <1241875621.22837.24.camel@accesodirecto.casa> <1241883761.22837.97.camel@accesodirecto.casa> <1242265918.21129.27.camel@mj> <1242309828.12546.15.camel@mj> <1242325022.6056.7.camel@mj> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-dd7SjL/47tlZVprWYv4k" Date: Sat, 16 May 2009 00:46:27 +0200 Message-Id: <1242427587.4281.6.camel@accesodirecto.casa> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: status grub2 port of grub-legasy map command 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: Fri, 15 May 2009 22:46:38 -0000 --=-dd7SjL/47tlZVprWYv4k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El jue, 14-05-2009 a las 20:38 +0200, Vladimir 'phcoder' Serbinenko escribi=C3=B3: > >> > I'm fine with the change from "const void" to "const char", but we n= eed > >> > to remove a preceding comment about void labels. > >> It's not that I'm opposed to void in principle. Just using the same > >> constructions to do the same things in different files makes code > >> easier to learn and port > > > > I wonder if we can go the other way and use void for all labels without > > storage. Indeed, it's too easy to misuse a char variable by forgetting > > the ampersand before it. > If you define it as char [] (as done everywhere in grub2), not char, > you need no ampersand. Indeed, but I think you are creating a tempest in a teapot. Your proposal only "saves" the ampersand in the code, while using "void" (or better, some grub_asmlabel_t typedef'ed to "void" with a comment explaining why) requires the ampersand - which is not illogic, since you are taking the address of the label - but protects against accidental modifications or the surprise factor of "why is mymod_interrupthandler a char array?". PS "for the audience": Sorry for being away from the list the days the patch was finally committed. I'm a bit tied up right now with finals preparation. --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-dd7SjL/47tlZVprWYv4k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esto es una parte de mensaje firmado digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJKDfC9AAoJEKSl+Fbdeo72o90QAIROjJVaKLHyrzgZSy1soRh9 z9Z+hZ+liaoWPHXLEmzi3feVJyLMv3R9MYtyrrNuZZKHPNJIylmXRfmIXPLRDoYh 9N5CoCNzot0z6Ljcgrvf7Ell0a/kqMwwfSPmSBwkRvtw+YPruy+0qoLPNMZXg42d rDhNO1ZRruS3AY+qnFPe/7/1RnAUPrvlD6it+8pHch7vnybSxR7rI5as5yxsvwe9 C/fwDxz0F6V4q47OMvvKsOjp6ktFe5LzFKM/e17r8+axaj2TXYIGAd+rFD/IefrZ CcN/EaYQgoUcDaHdVS5LlXOLucsaSdFxZfebOVGdxgB2rsOH8ak2M+tp+jqsfo/m NyH9Hzs+bGnDI164EwO0fMJGv9VVgGZvYwmXh+B2PXHLyozbZfxUti1MUyBpmH1m ngM+r7qcbe3296JAQz/e/UzmV/P05M6h+4+QnR+U5mCB7v9jkqp82JRF2ndUIVoZ munlrEoJ0KTB+YdiHNzfpndFgjBpGLX5L32qlcEG3frAiJnDg6pTeL2H8PwujvYT Z9V/3HhTGKwVc6X+0IlDI4Yw1H4iBjN8wyISoqx8uwqSvNoxifs8RLsKbW20FcTJ zIc4QliA1ItKI+7y+0UTEpWSXxfgy3jLgxIqQ/nj57FhX0a4VEshIjDBgBEOAqiM 8HDJGz9vzIZx/d3vXMzA =ULsI -----END PGP SIGNATURE----- --=-dd7SjL/47tlZVprWYv4k--