Fix double form() in XS version check
Chip Salzenberg [Wed, 6 Aug 1997 12:00:00 +0000 (00:00 +1200)]
p5p-msgid: 199707210518.BAA13771@nielsenmedia.com

XSUB.h

diff --git a/XSUB.h b/XSUB.h
index a7987f4..0b82a27 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
            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