Mail Archives: djgpp-workers/2001/10/11/07:51:34
On Thu, 11 Oct 2001, Eric Botcazou wrote:
> > The return arguments and data structures might be different, but at a
> > quick glance I didn't see anything unique to either set of calls.
>
> Maybe the use of the handle: when findfirst() detects no wildcard in the
> pathname or findnext() doesn't find any more files, they automatically
> release the handle. I don't think that's the semantics of _findfirst() and
> _findnext(), given that there is precisely _findclose() to do it (although
> the Watcom docs doesn't say anything about that case).
If this is the reason, you could rewrite findfirst so that it calls
_findfirst.
> > Making the new routines a wrapper around the current ones would seem
> > to minimize low level code (improve maintenance), decrease code size.
>
> A wrapper would certainly minimize low-level code but I don't understand why
> it would decrease code size: we are talking about a library and IMHO the
> size that matters is the size of code that gets linked to the user program.
Think about programs which call both findfirst and _findfirst (this can
happen, since some library functions call findfirst internally).
- Raw text -