"MacArthur, Ian (Selex ES, UK)" wrote:
> 
> > To include the new code into FLTK I would consider the following
> > things:
> > 1) Import new code to 'src/scandir.c'
> 
> Yes - I guess this takes it back to being "similar" to
> what it was prior to STR #2687 or so...

I have added the new code to 'scandir_posix.c'.
'scandir.c' now includes nothing, 'scandir_posix.c' or
'scandir_win32.c'.
This way it should be more obvious what is happening.

> > [...]
> > 6) Change the switching code in 'src/filename_list.cxx' like this:
> > [...]
> 
> Though we need to be cautious about not breaking
> the alternate implementation of fl_scandir()
> given in scandir_win32.c also.
> Maybe the win32 version needs tweaked to match
> the more const-correct prototype anyway?

I have made the default prototypes for all 'scandir()'s and the sort
functions to be POSIX compliant. Leaving typecasts only for the cases
this doesn't match.

> Anyway - if you have the bits for this working, would
> it be possible for you to create an STR and upload the
> files there?

After testing it inside the source tree I will open an STR.


Regards,

Micha
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to