From: Chip Salzenberg Date: Tue, 3 Mar 1998 04:02:16 +0000 (+0000) Subject: [win32] manually apply another conflicting maintpatch X-Git-Tag: accepted/trunk/20130322.191538~37744^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae66e5c8da1e140f494c5cf16334db605c3aac5a;p=platform%2Fupstream%2Fperl.git [win32] manually apply another conflicting maintpatch #64: "Fix extension version mismatch message" Files: XSUB.h p4raw-id: //depot/win32/perl@638 --- diff --git a/XSUB.h b/XSUB.h index f01f497..6f9151b 100644 --- a/XSUB.h +++ b/XSUB.h @@ -6,13 +6,6 @@ #define XS(name) void name(cv) CV* cv; #endif -#if 0 /*defined(WIN32) && defined(__GNUC__)*/ /* this bug is gone in mingw32/gcc-2.8.0*/ -#define STRINGIFY_THINGY(x) #x -#define FORCE_ARG_STRING(x) STRINGIFY_THINGY(x) -#else -#define FORCE_ARG_STRING(x) x -#endif - #define dXSARGS \ dSP; dMARK; \ I32 ax = mark - stack_base + 1; \ @@ -50,8 +43,7 @@ #ifdef XS_VERSION # define XS_VERSION_BOOTCHECK \ STMT_START { \ - char *xs_version = FORCE_ARG_STRING(XS_VERSION); \ - char *vn = "", *module = SvPV(ST(0),na); \ + char *vn = Nullch, *module = SvPV(ST(0),na); \ if (items >= 2) /* version supplied as bootstrap arg */ \ Sv = ST(1); \ else { \ @@ -62,9 +54,11 @@ 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::%s %_", \ - module, xs_version, module, vn, Sv); \ + if (Sv && (!SvOK(Sv) || strNE(XS_VERSION, SvPV(Sv, na)))) \ + croak("%s object version %s does not match %s%s%s%s %_", \ + module, XS_VERSION, \ + vn ? "$" : "", vn ? module : "", vn ? "::" : "", \ + vn ? vn : "bootstrap parameter", Sv); \ } STMT_END #else # define XS_VERSION_BOOTCHECK