This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change white space to avoid C++ deprecation warning
authorKarl Williamson <khw@cpan.org>
Thu, 17 Nov 2016 13:21:54 +0000 (06:21 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 18 Nov 2016 16:41:07 +0000 (09:41 -0700)
commit147e38468b8279e26a0ca11e4efd8492016f2702
tree4d3c3b5b692937fc40e2fed20aaa1b7afd3ba56e
parent51d89e3583b4182c42c21b343376f2286f67fc3b
Change white space to avoid C++ deprecation warning

C++11 requires 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 warning when there isn't a space
(presumably so that future versions can support C++11).  Unfortunately
there are many such instances in the perl core.  This commit fixes
those, including those in ext/, but individual commits will be used for
the other modules, those in dist/ and cpan/.

This commit also inserts space at the end of a macro before a string
literal, even though that is not deprecated, and removes useless ""
literals following a macro (instead of inserting a blank).  The result
is easier to read, making the macro stand out, and be clearer as to the
intention.

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.
47 files changed:
av.c
deb.c
doio.c
dump.c
ext/B/B.pm
ext/B/B.xs
ext/Devel-Peek/Peek.xs
ext/DynaLoader/DynaLoader_pm.PL
ext/DynaLoader/dl_dlopen.xs
ext/Hash-Util/Util.xs
ext/Hash-Util/lib/Hash/Util.pm
ext/POSIX/POSIX.xs
ext/XS-APItest/APItest.xs
ext/XS-APItest/core_or_not.inc
ext/XS-Typemap/Typemap.pm
ext/XS-Typemap/Typemap.xs
ext/mro/mro.pm
ext/mro/mro.xs
gv.c
hv.c
inline.h
locale.c
malloc.c
mg.c
mro_core.c
op.c
pad.c
perl.c
perl.h
perlio.c
perly.c
pp.c
pp.h
pp_ctl.c
pp_hot.c
pp_pack.c
pp_sort.c
pp_sys.c
regcomp.c
regexec.c
scope.c
sv.c
taint.c
toke.c
universal.c
utf8.c
util.c