From: Chip Salzenberg Date: Wed, 6 Aug 1997 12:00:00 +0000 (+1200) Subject: Fix double form() in XS version check X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=392e9e906921c3a7f1b3776746e71892a57863d3;p=p5sagit%2Fp5-mst-13.2.git Fix double form() in XS version check p5p-msgid: 199707210518.BAA13771@nielsenmedia.com --- diff --git a/XSUB.h b/XSUB.h index a7987f4..0b82a27 100644 --- a/XSUB.h +++ b/XSUB.h @@ -44,13 +44,15 @@ Sv = ST(1); \ else { \ /* XXX GV_ADDWARN */ \ - Sv = perl_get_sv(vn = form("%s::XS_VERSION", module), FALSE); \ + Sv = perl_get_sv(form("%s::%s", module, \ + vn = "XS_VERSION"), FALSE); \ if (!Sv || !SvOK(Sv)) \ - Sv = perl_get_sv(vn = form("%s::VERSION", module), FALSE); \ + Sv = perl_get_sv(form("%s::%s", module, \ + vn = "VERSION"), FALSE); \ } \ if (Sv && (!SvOK(Sv) || strNE(XS_VERSION, SvPV(Sv, na)))) \ - croak("%s object version %s does not match $%s %_", \ - module, XS_VERSION, vn, Sv); \ + croak("%s object version %s does not match $%s::%s %_", \ + module, XS_VERSION, module, vn, Sv); \ } STMT_END #else # define XS_VERSION_BOOTCHECK