Yep, moving the statement up one line did the trick.

Thanks
T.J.

muppet wrote:
>  Try changing the code to this:
>
>     static void
>     gtk2perl_pango_cairo_shape_renderer_func (cairo_t *cr,
>                                               PangoAttrShape * attr,
>                                               gboolean do_path,
>                                               gpointer data)
>     {
>         GPerlCallback * callback = data;  /* Do this first in case the 
> next macro ends with a statement */
>         dGPERL_CALLBACK_MARSHAL_SP;
>
>         GPERL_CALLBACK_MARSHAL_INIT (callback);
>     ....
>
>
> This should give the same effect as what you did with changing the 
> argument's type, but will not require casting the function pointer at 
> its points of use, and will verify the theory that something about the 
> expansion of dGPERL_CALLBACK_MARSHAL_SP is amiss.

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to