* Menus and Functions
@ 2009-03-02 19:22 Kevin Lacquement
2009-03-03 20:07 ` Marco Gerards
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Lacquement @ 2009-03-02 19:22 UTC (permalink / raw)
To: The development of GRUB 2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings all,
I was browsing through the recent SVN head, and noticed that functions
and menu items are implemented separately. I was wondering if there's
actually a reason for that.
It seems to me that a menu entry is nothing more than a function that,
instead of being referred to by a function name, is referred to by a
menu title.
Would it be difficult to re-implement menu entries to hold a function
pointer? This should simplify the scripting engine, as it can all be
put into one place.
Cheers,
Kevin
- --
Sic non confunctus, non reficiat.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkmsMfEACgkQASQ0HFKCohNQYACfSs1SNshxsp/nD8S/yqZL3/f2
kVwAoIG4JEJIXp2Oqc4pTAHytfvdkusb
=ANIt
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Menus and Functions
2009-03-02 19:22 Menus and Functions Kevin Lacquement
@ 2009-03-03 20:07 ` Marco Gerards
2009-03-04 2:22 ` Kevin Lacquement
0 siblings, 1 reply; 3+ messages in thread
From: Marco Gerards @ 2009-03-03 20:07 UTC (permalink / raw)
To: The development of GRUB 2
Hi,
Kevin Lacquement <kevin@lacqui.com> writes:
> I was browsing through the recent SVN head, and noticed that functions
> and menu items are implemented separately. I was wondering if there's
> actually a reason for that.
>
> It seems to me that a menu entry is nothing more than a function that,
> instead of being referred to by a function name, is referred to by a
> menu title.
This was on purpose. My idea was that menu entries can be generated
in a macro like fashion.
--
Marco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Menus and Functions
2009-03-03 20:07 ` Marco Gerards
@ 2009-03-04 2:22 ` Kevin Lacquement
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Lacquement @ 2009-03-04 2:22 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
Marco Gerards wrote:
> Hi,
>
> Kevin Lacquement <kevin@lacqui.com> writes:
[...]
>>
>> It seems to me that a menu entry is nothing more than a function that,
>> instead of being referred to by a function name, is referred to by a
>> menu title.
>
> This was on purpose. My idea was that menu entries can be generated
> in a macro like fashion.
OK, it just seemed odd to me, but that makes sense. I was looking at
adding some of the missing shell features (like loops) and came across
that separation.
--
Sic non confunctus, non reficiat.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-04 2:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 19:22 Menus and Functions Kevin Lacquement
2009-03-03 20:07 ` Marco Gerards
2009-03-04 2:22 ` Kevin Lacquement
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.