Re: [AD] [TODO] About findfirst

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


On 10 Aug 2001, Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
> An unidentified Australian guy ;-) 

(sort of)

> has put an "Emulate findfirst" entry in the Win32 section of the
> todo file. I don't agree with him for the following reasons:

I thought you had agreed to the emulation.

> - findfirst() and struct ffblk are clearly DOS-isms, and the main goal of
> Allegro is not to propagate them ;-)
> - the Win32 libc has got its own version, dubbed _findfirst(),
> - findfirst() and its two sisters are superfluous in the API: the same
> results can be achieved with for_each_file(), file_size() and file_time(),

As bad as `findfirst' is, `for_each_file' is not as good.  You
cannot stop short of reading the entire list, for one.

> - code bloat.

... very little, I thought, since Win32 libc has already got it.

Anyway, I don't really care either way, but someone will have to
update the docs.  ("If your platform doesn't have the find* set
of functions, Allegro will emulate them.")



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