+1 On Mar 18, 2010, at 5:06 AM, Domingo Alvarez Duarte wrote:
> I'm trying to bind fltk with http://daovm.net/ DAO scripting language > and I have some problems with the idle functions been declared with full > pointers declaration instead of a typedef, I propose to modify Fl.H and > Fl_add_idle.cxx to the following: > > ------- > /** signature of some idle callback functions passed as parameters */ > typedef void (*Fl_Idle_Handler)(void*); > > ... > > static void add_idle(Fl_Idle_Handler cb, void* data = 0); > static int has_idle(Fl_Idle_Handler cb, void* data = 0); > static void remove_idle(Fl_Idle_Handler cb, void* data = 0); > ----- > > This way it becomes more in line with other parts of fltk where instead > of full pointer declaration typedefs are used, also it reduces > duplication of code since only one place define the function type used > by idle functions. > _______________________________________________ > fltk-dev mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk-dev ________________________________________ Michael Sweet, Easy Software Products _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
