All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] fix flickering timeout message for slow terminals (gfxterm)
Date: Tue, 15 Jan 2008 13:51:23 +0100	[thread overview]
Message-ID: <87wsqbz1ys.fsf@xs4all.nl> (raw)
In-Reply-To: <20080115124115.GC924@thorin> (Robert Millan's message of "Tue, 15 Jan 2008 13:41:15 +0100")

Robert Millan <rmh@aybabtu.com> writes:

> On Tue, Jan 15, 2008 at 01:25:25PM +0100, Marco Gerards wrote:
>> Robert Millan <rmh@aybabtu.com> writes:
>> 
>> > On Mon, Jan 14, 2008 at 09:32:39PM +0100, Yoshinori K. Okuji wrote:
>> >> On Monday 14 January 2008 15:10, Robert Millan wrote:
>> >> > As subject says.  Based on suggestions from Vesa.
>> >> 
>> >> Why do you want to use a nested function?
>> >
>> > No special reason;  just to restrict the namespace use to the scope where
>> > it'll be needed, and avoid passing of parameters (offset, timeout).
>> >
>> > I'm fine with moving it out if that's preferred.
>> 
>> If it doesn't uglify your code, that's usually a better thing to do.
>
> Ok, here's a new patch.

Here's a review :)

> -- 
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> What use is a phone call, if you are unable to speak?
> (as seen on /.)
>
>
> 	* normal/menu.c (run_menu): Move timeout message from here ...
> 	(print_timeout): ... to here.
> 	(run_menu): Use print_timeout() once during initial draw to print
> 	the whole message, and again in every clock tick to update only
> 	the number of seconds.
>
> diff -x '*~' -x configure -x config.h.in -ur grub2/normal/menu.c flickery/normal/menu.c
> --- grub2/normal/menu.c	2008-01-05 13:10:28.000000000 +0100
> +++ flickery/normal/menu.c	2008-01-15 13:37:54.000000000 +0100
> @@ -308,12 +308,27 @@
>    return entry;
>  }
>  
> +void
> +print_timeout (int timeout, int offset, int second_stage)

please make this function static.

Otherwise, I do not see any problems.

--
Marco




  reply	other threads:[~2008-01-15 12:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 14:10 [PATCH] fix flickering timeout message for slow terminals (gfxterm) Robert Millan
2008-01-14 20:32 ` Jordi Mallach
2008-01-14 23:18   ` Robert Millan
2008-01-15 22:54     ` Jordi Mallach
2008-01-21 10:33       ` Marco Gerards
2008-01-21 14:18         ` Pavel Roskin
2008-01-21 14:47           ` Robert Millan
2008-01-21 15:10           ` Marco Gerards
2008-01-21 15:44             ` Robert Millan
2008-01-21 16:52               ` Marco Gerards
2008-01-21 16:59                 ` Robert Millan
2008-01-14 20:32 ` Yoshinori K. Okuji
2008-01-14 20:47   ` Robert Millan
2008-01-15 12:25     ` Marco Gerards
2008-01-15 12:41       ` Robert Millan
2008-01-15 12:51         ` Marco Gerards [this message]
2008-01-15 14:04           ` Robert Millan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wsqbz1ys.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.