Here is the diff for Fl.H and Fl.cxx with the mentioned changes.
719c719
< void Fl::add_handler(Fl_Event_Handler ha) {
---
> void Fl::add_handler(int (*ha)(int)) {
729c729
< void Fl::remove_handler(Fl_Event_Handler ha) {
---
> void Fl::remove_handler(int (*ha)(int)) {
70,90d69
< /** signature of add_idle callback functions passed as parameters */
< typedef void (*Fl_Idle_Handler)(void*);
< 
< /** signature of set_idle callback functions passed as parameters */
< typedef void (*Fl_Old_Idle_Handler)();
< 
< /** signature of add_fd functions passed as parameters */
< typedef void (*Fl_FD_Handler)(int,void*);
< 
< /** signature of add_handler functions passed as parameters */
< typedef int (*Fl_Event_Handler)(int);
< 
< /** signature of set_abort functions passed as parameters */
< typedef void (*Fl_Abort_Handler)(const char*,...);
< 
< /** signature of set_atclose functions passed as parameters */
< typedef void (*Fl_Atclose_Handler)(Fl_Window*,void*);
< 
< /** signature of args functions passed as parameters */
< typedef int (*Fl_Args_Handler)(int,char**,int&);
< 
162c141
<   static int args(int, char**, int&, Fl_Args_Handler ah = 0);
---
>   static int args(int, char**, int&, int (*)(int,char**,int&) = 0);
281,283c260,262
<   static void add_fd(int fd, int when, Fl_FD_Handler cb,void* =0); // 
platform dependent
<   /** See void add_fd(int fd, int when, Fl_fd_Handler cb,void* =0) */
<   static void add_fd(int fd, Fl_FD_Handler cb, void* = 0); // platform 
dependent
---
>   static void add_fd(int fd, int when, void (*cb)(int,void*),void* =0); // 
> platform dependent
>   /** See void add_fd(int fd, int when, void (*cb)(int,void*),void* =0) */
>   static void add_fd(int fd, void (*cb)(int, void*), void* = 0); // platform 
> dependent
289,291c268,270
<   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);
---
>   static void add_idle(void (*cb)(void*), void* data = 0);
>   static int  has_idle(void (*cb)(void*), void* data = 0);
>   static void remove_idle(void (*cb)(void*), void* data = 0);
627,628c606,607
<   static void add_handler(Fl_Event_Handler h);
<   static void remove_handler(Fl_Event_Handler h);
---
>   static void add_handler(int (*h)(int));
>   static void remove_handler(int (*h)(int));
788c767
<   static void set_abort(Fl_Abort_Handler f) {fatal = f;}
---
>   static void set_abort(void (*f)(const char*,...)) {fatal = f;}
794c773
<   static void set_atclose(Fl_Atclose_Handler f) {atclose = f;}
---
>   static void set_atclose(void (*f)(Fl_Window*,void*)) {atclose = f;}
838c817
<   static void set_idle(Fl_Old_Idle_Handler cb) {idle = cb;}
---
>   static void set_idle(void (*cb)()) {idle = cb;}
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to