> Small addition:
>
> > void cb_smth(Fl_Widget*,void *);
> >
> > Fl_Menu_Item itm[]={
> > ...
> > {"abra",0,(Fl_Callback*)cb_smth,(void *)1},
> > ...
>
> you wouldn't even need the cast (Fl_Callback*) here, because
> your callback function then matches Fl_Callback anyway.
>
> -> {"abra",0,cb_smth,(void *)1},
> ...
>
> What I want to say: you are writing (appl.) code that uses a
> different callback prototype than given for Fl_Menu_Item, then
> you need a cast, and then the compiler complains... ;-)
>
> But again, maybe I'm missing something?
>
> Albrecht
in case of cb_smth(Fl_Widget*,long) i don't need casting in callback in some
cases it's more convenient.
I post patch to STR. it has been testing on ming64 and MSVC and for
verification on linux. seeems to work well.
it doesn't change FLTK interfaces.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev