Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ldpq1-000069-M5 for mharc-grub-devel@gnu.org; Sun, 01 Mar 2009 12:52:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ldppz-00005s-VA for grub-devel@gnu.org; Sun, 01 Mar 2009 12:52:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ldppx-000054-RD for grub-devel@gnu.org; Sun, 01 Mar 2009 12:52:27 -0500 Received: from [199.232.76.173] (port=47223 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ldppx-00004z-Kx for grub-devel@gnu.org; Sun, 01 Mar 2009 12:52:25 -0500 Received: from ti-out-0910.google.com ([209.85.142.186]:45485) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ldppw-00067e-Cm for grub-devel@gnu.org; Sun, 01 Mar 2009 12:52:25 -0500 Received: by ti-out-0910.google.com with SMTP id j3so2491491tid.10 for ; Sun, 01 Mar 2009 09:52:21 -0800 (PST) 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=+KxAlv2XJ5d5EYH1b5SfY+rq/XscrFr0FjVmVmMDeis=; b=dhz6sq3mkZMMB2NBo7Af9Dun+uHRLP8Rmto/JrrFaTHg6mYG5Ui/++Y2Oq+TjCDvlB f7bsa9QKiRL4aTLkaQrKkil323YUeRY4I20mjqVbxZh4nVYYHlnxA+zU6hIcLrSYN5vg AKGK5p328rzBHr8MNlk9AwBx+z7HW/yE16aUA= 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=WzG0XHKgBOtK1A17V6ebRuyiHo68gQBk+76iLWofi2JaRdMFsQHKdzP5/w20hJyaGe d8av0GXYJE0tuKMYSByQz7DXRm8t+VD6TVhLX3yB9JF6QpcqsKsPvR0d2OzuuK5YEt32 Kun3buXGVa5M/qCeabIkodzSIrKnHpRVfcsp4= MIME-Version: 1.0 Received: by 10.110.47.17 with SMTP id u17mr7107468tiu.34.1235929941175; Sun, 01 Mar 2009 09:52:21 -0800 (PST) In-Reply-To: References: <1234624271.3443.2.camel@fz.local> <4997C512.8040808@nic.fi> <20090227195422.GB31629@thorin> Date: Mon, 2 Mar 2009 01:52:21 +0800 Message-ID: From: Bean 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: [PATCH] Handler support 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: Sun, 01 Mar 2009 17:52:28 -0000 On Sat, Feb 28, 2009 at 1:41 PM, Bean wrote: > On Sat, Feb 28, 2009 at 3:54 AM, Robert Millan wrote: >> On Sun, Feb 15, 2009 at 11:14:18PM +0800, Bean wrote: >>> diff --git a/conf/sparc64-ieee1275.rmk b/conf/sparc64-ieee1275.rmk >>> index 640ceda..18c108e 100644 >>> --- a/conf/sparc64-ieee1275.rmk >>> +++ b/conf/sparc64-ieee1275.rmk >> >> Don't bother updating sparc64-ieee1275.rmk, it's completely broken by no= w. >> >>> =A0void >>> =A0grub_term_register_input (grub_term_input_t term) >>> =A0{ >>> - =A0term->next =3D grub_term_list_input; >>> - =A0grub_term_list_input =3D term; >>> - =A0if (! grub_cur_term_input) >>> - =A0 =A0grub_term_set_current_input (term); >>> + =A0grub_handler_register (&grub_term_input_class, GRUB_AS_HANDLER (te= rm)); >>> =A0} >> >> Is grub_handler_register() always used this way? =A0Perhaps it should be >> inline. > > Hi, > > Good point. In fact, I change all occurrence of > grub_term_register_input to grub_handler_register previously, but > considered the amount of code to change, I decide to provide the > wrapper function grub_term_register_input. Using inline function would > utilize the new handler infrastructure while retaining code > compatibility. Hi, Fixed and committed. --=20 Bean