8 Dec
2003
8 Dec
'03
4:33 a.m.
On Sun, 2003-12-07 at 22:27, MenTaLguY wrote:
Looking into this, it appears that GClosure actually uses a gpointer for the callback function.
Update: I've filed a bug against GLib/GObject.
http://bugzilla.gnome.org/show_bug.cgi?id=128782
Indeed, it appears that even with the explicit cast, it would be valid for a compiler to generate an error in this case.
From the ANSI C Rationale document:
* Even with an explicit cast, it is invalid to convert a function pointer to an object pointer or a pointer to void, or vice-versa.
-mental