[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bulk] [PATCH] Small unicode problem fix in normal/menu.c
From: |
Yoshinori K. Okuji |
Subject: |
Re: [Bulk] [PATCH] Small unicode problem fix in normal/menu.c |
Date: |
Tue, 5 Jul 2005 01:10:42 +0200 |
User-agent: |
KMail/1.7.2 |
On Monday 04 July 2005 16:45, Vincent Pelletier wrote:
> ncurses-like (not macros !) :
>
> void grub_getyx (unsigned int &y, unsigned int &x)
> void grub_getmaxyx (unsigned int &y, unsigned int &x) /* to get the term
> size */
My feeling is that it is not convenient to use pointers. For example, when I
just want to know if the position is 0 or not in the x axis, I can do this in
the current API:
if (grub_getxy () >> 8)
But if I need to use a pointer, this becomes:
unsigned x;
grub_getyx (0, &x);
if (x)
Well, this might be just a preference.
Okuji