Eric Salomé wrote:
> Hi Vincent,
>
> I picked up your email from the archive as I didn't received it yet.
>
> As you see, it's very easy with a simple #define to create simple code
> for simple cases and yet be powerful for more complex cases :
> #define grub_iterate_list_brk(list, func, context,
useless blank lines for nothing.
________
Eric Salomé Paris, France
From:
vincent guffens
Subject:
Re: RE : a simple list
Date:
Tue, 09 May 2006 10:08:24 +0100
User-agent:
Debian Thunderbird 1.0.7 (X11/20051017)
Thank you for this information. Adding t
Thank you for this information. Adding the concept of context is indeed
the right idea. I was doing it as follows
void function (grub_device_t dev)
{
grub_device_t it;
auto int look_for_dev (grub_device_t);
int look_for_dev (grub_device_t grub_device_t other_dev)
{
return compare (dev,
Title: a simple list
Hi,
I didn’t take a good look
at current iterate functions in Grub 2, yet.
Most iterations needs a “init”
(before treatment of first item) and a “fini” (after treatment of
last item).
Further more, one might want to
make iteration functions “re-entrant” (or recur