On Tuesday, February 3, 2004, at 01:13 AM, muppet wrote:
On Tue, 2004-02-03 at 00:14, muppet wrote:i have asked the gtk-devel-list if there's something else we should be using instead of GPOINTER_TO_UINT for GType <=> pointer conversions. in the meantime, i propose that we define and use our own macros, #define GPOINTER_TO_GTYPE(p) (platform-dependent definition)attached is a patch that implements this, using the INT2PTR macro from the perl api.
according to timj[1], it's more correct just to cast directly, so i've committed that to cvs (without macro sugar).
ross, torsten, please test this out on x86_64 to make sure there are no regressions. i checked it out on alpha and all is well.
[1] http://lists.gnome.org/archives/gtk-devel-list/2004-February/ msg00005.html
-- "it's hard to be eventful when you have this much style." - me, rationalizing yet another night of sitting at home.