This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Data-Dumper: Rmv impediment to compiling under C++11
authorKarl Williamson <khw@cpan.org>
Fri, 18 Nov 2016 21:41:17 +0000 (14:41 -0700)
committerKarl Williamson <khw@cpan.org>
Sat, 19 Nov 2016 21:00:50 +0000 (14:00 -0700)
commit562c1ab952f7c8534d6ce411de983a056de08a7f
tree69504f875942026769327df1d606b314717d7720
parent741002cc5c243352a3db99665e989daddc83b996
Data-Dumper: Rmv 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).

Although not required by the C++11 change, this patch also makes sure
there is space after a macro call, before a string literal.  This makes
the macro stand out, and is easier to read.  As part of this, useless ""
following the macro are removed.

This patch also changes the affected lines to not 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.
dist/Data-Dumper/Dumper.pm
dist/Data-Dumper/Dumper.xs