On Fri, 2007-11-16 at 03:22 +0900, Kim Do-hyoung Keedi wrote:
Thanks for reply. This is the code snippet in xs directory.
There's only one difference to what my version of xsubpp (1.9508) generates:
xs/PangoLayout.c:
XS(XS_Gtk2__Pango__LayoutLine_x_to_index); /* prototype to pass
-Wmissing-prototypes */
XS(XS_Gtk2__Pango__LayoutLine_x_to_index)
{
#ifdef dVAR
dVAR; dXSARGS;
#else
dXSARGS;
#endif
if (items != 2)
Perl_croak(aTHX_ "Usage: %s(%s)",
"Gtk2::Pango::LayoutLine::x_to_index", "line, x_pos");
PERL_UNUSED_VAR(cv); /* -W */
{
gboolean RETVAL;
PangoLayoutLine * line = SvPangoLayoutLine (ST(0));
int x_pos = (int)SvIV(ST(1));
int index_;
int trailing;
RETVAL = pango_layout_line_x_to_index(line, x_pos, &index_, &trailing);
ST(0) = boolSV(RETVAL);
sv_2mortal(ST(0));
XSprePUSH; EXTEND(SP,2);
XSprePUSH; ++SP; EXTEND(SP,2);
PUSHs(sv_newmortal());
sv_setiv(ST(1), (IV)index_);
PUSHs(sv_newmortal());
sv_setiv(ST(2), (IV)trailing);
}
XSRETURN(3);
}
Let's see what happens if we avoid OUTLIST altogether: when you apply the attached patch, do you still see the problem after recompilation? -- Bye, -Torsten
Attachment:
layout.patch
Description: Text Data