summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorChip Salzenberg <salzench@nielsenmedia.com>1997-08-07 00:00:00 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commit392e9e906921c3a7f1b3776746e71892a57863d3 (patch)
treefadf28f44e13d9041df9a24cc897f7b442ac36ff /XSUB.h
parent08e9d68e93f9880dc9a1edcde3abb85026f49784 (diff)
downloadperl-392e9e906921c3a7f1b3776746e71892a57863d3.tar.gz
Fix double form() in XS version check
p5p-msgid: 199707210518.BAA13771@nielsenmedia.com
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/XSUB.h b/XSUB.h
index a7987f419e..0b82a270b4 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