Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 890178
Collapse All | Expand All

(-)a/XCB.xs (-2 / +1 lines)
Lines 180-186 _connect_and_attach_struct(self) Link Here
180
  PREINIT:
180
  PREINIT:
181
    XCBConnection *xcbconnbuf;
181
    XCBConnection *xcbconnbuf;
182
  CODE:
182
  CODE:
183
    assert(sv_derivered_from(self, __PACKAGE__));
183
    assert(sv_derivered_from(self, HvNAME(PL_curstash)));
184
    SV **disp = hv_fetch((HV*)SvRV(self), "display", strlen("display"), 0);
184
    SV **disp = hv_fetch((HV*)SvRV(self), "display", strlen("display"), 0);
185
    if(!disp)
185
    if(!disp)
186
        croak("Attribute 'display' is required");
186
        croak("Attribute 'display' is required");
187
--
188
XCB.xs | 2 +-
187
XCB.xs | 2 +-
189
1 file changed, 1 insertion(+), 1 deletion(-)
188
1 file changed, 1 insertion(+), 1 deletion(-)
(-)a/XCB.xs (-1 / +1 lines)
Lines 180-186 _connect_and_attach_struct(self) Link Here
180
  PREINIT:
180
  PREINIT:
181
    XCBConnection *xcbconnbuf;
181
    XCBConnection *xcbconnbuf;
182
  CODE:
182
  CODE:
183
    assert(sv_derivered_from(self, HvNAME(PL_curstash)));
183
    assert(sv_derived_from(self, HvNAME(PL_curstash)));
184
    SV **disp = hv_fetch((HV*)SvRV(self), "display", strlen("display"), 0);
184
    SV **disp = hv_fetch((HV*)SvRV(self), "display", strlen("display"), 0);
185
    if(!disp)
185
    if(!disp)
186
        croak("Attribute 'display' is required");
186
        croak("Attribute 'display' is required");

Return to bug 890178