Fw: [AD] [TODO] About findfirst

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


----- Original Message -----
From: "Matthew Smith" <matt@xxxxxxxxxx>
To: "Eric Botcazou" <ebotcazou@xxxxxxxxxx>   SORRY AGAIN ERIC
Sent: Saturday, August 11, 2001 9:05 AM
Subject: Re: [AD] [TODO] About findfirst


> > But the compiler would issue at least a warning (gcc without any -W
option
> > says "passing arg3 of for_each_file() from incompatible pointer type", I
> > think it's clear enough). Moreover it's a rather standard feature for
> > callback functions to acknowledge the call.
> >
> > However, I agree that's a true API breakage...
>
> how about having 'allegro_'for_file() which works this new way
> and for_each_file() as a wrapper (if it saves any space)
>
> 'each' and 'every' are fairly similar in meaning, so this will read well
in
> the docs.
>
> findfirst() this has been devalued, see for_file()
>
> for_file()  this is a function which replaces findfirst and findnext
>
> for_each_file() similar to for_file(), but the value of the callback is
> ignored, so all matches
> are compared.
>
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/