Subject: | Remove impediement to compiling under C++11 |
See attached patch
Subject: | 0011-ExtUtils-Constant-Remove-impediment-to-compiling-und.patch |
From 8c0e51fa98bc4a8f582c173fb4cdcce40dde7e04 Mon Sep 17 00:00:00 2001
From: Karl Williamson <khw@cpan.org>
Date: Sat, 19 Nov 2016 07:14:29 -0700
Subject: [PATCH 11/11] ExtUtils::Constant: Remove impediment to compiling
under C++11
C++11 changed from earlier versions to require space between the end of
a string literal and a macro, so that a feature can unambiguously be
added to the language. Starting in g++ 6.2, the compiler emits a
deprecation warning when there isn't a space (presumably so that future
versions can support C++11). This commit fixes ExtUtils::Constant
This patch also changes any affected lines that exceed 79 columns, as
specified by perlhack.
Code and modules included with the Perl core need to be compilable using
C++. This is so that perl can be embedded in C++ programs. (Actually,
only the hdr files need to be so compilable, but it would be hard to
test that just the hdrs are compilable.) So we need to accommodate
changes to the C++ language.
---
cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
index 545d322..c8f8c0f 100644
--- a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
+++ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ProxySubs.pm
@@ -9,7 +9,7 @@ require ExtUtils::Constant::XS;
use ExtUtils::Constant::Utils qw(C_stringify);
use ExtUtils::Constant::XS qw(%XS_TypeSet);
-$VERSION = '0.08';
+$VERSION = '0.09';
@ISA = 'ExtUtils::Constant::XS';
%type_to_struct =
@@ -634,8 +634,10 @@ EOA
} else
#endif
{
- sv = newSVpvf("%"SVf" is not a valid $package_sprintf_safe macro at %"
- COP_FILE_F " line %d\\n", sv, COP_FILE(cop), CopLINE(cop));
+ sv = newSVpvf("%" SVf
+ " is not a valid $package_sprintf_safe macro at %"
+ COP_FILE_F " line %d\\n",
+ sv, COP_FILE(cop), CopLINE(cop));
}
croak_sv(sv_2mortal(sv));
EOC
@@ -671,7 +673,7 @@ $xs_subname(sv)
} else
#endif
{
- sv = newSVpvf("%"SVf" is not a valid $package_sprintf_safe macro",
+ sv = newSVpvf("%" SVf " is not a valid $package_sprintf_safe macro",
sv);
}
PUSHs(sv_2mortal(sv));
--
2.7.4