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 _______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
