Subject: | [PATCH] Avoid a C++ comment |
Please see the attached patch. You should be able to feed it straight to ‘git am’.
Subject: | open_fGt2ICkX.txt |
From: Father Chrysostomos <sprout@cpan.org>
Avoid a C++-style comment
Perl still guarantees that it will compile under strict C89 compilers,
which do not support // comments, and Encode is a core module.
diff -rup Encode-2.85-Xc_TX5-orig/Encode.xs Encode-2.85-Xc_TX5/Encode.xs
--- Encode-2.85-Xc_TX5-orig/Encode.xs 2016-08-03 20:16:05.000000000 -0700
+++ Encode-2.85-Xc_TX5/Encode.xs 2016-08-09 22:15:33.000000000 -0700
@@ -499,7 +499,9 @@ CODE:
dSP; ENTER; SAVETMPS;
if (src == &PL_sv_undef || SvROK(src)) src = sv_2mortal(newSV(0));
check = SvROK(check_sv) ? ENCODE_PERLQQ|ENCODE_LEAVE_SRC : SvIV(check_sv);
- if (!(check & ENCODE_LEAVE_SRC) && SvIsCOW(src)) sv_force_normal(src); // disassociate from any other scalars before doing in-place modifications
+ if (!(check & ENCODE_LEAVE_SRC) && SvIsCOW(src))
+ /* disassociate from any other scalars before doing in-place modifications */
+ sv_force_normal(src);
s = (U8 *) SvPV(src, slen);
e = (U8 *) SvEND(src);
/*