This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Karl Williamson [Wed, 22 Jul 2020 22:51:37 +0000 (16:51 -0600)]
Document INTMAX_C, UINTMAX_C
Karl Williamson [Sat, 18 Jul 2020 13:15:12 +0000 (07:15 -0600)]
Note that PERL_UINT_MIN is documented
Karl Williamson [Sat, 18 Jul 2020 13:13:29 +0000 (07:13 -0600)]
Document PERL_USE_GCC_BRACE_GROUPS
Karl Williamson [Sat, 18 Jul 2020 15:02:20 +0000 (09:02 -0600)]
Document PTR2foo
Karl Williamson [Sat, 18 Jul 2020 15:54:32 +0000 (09:54 -0600)]
Document ibcmp_utf8, and move to like-fcns hdr
James E Keenan [Sun, 16 Aug 2020 15:21:34 +0000 (11:21 -0400)]
lib/Symbol.t: Exercise qualify_to_ref()
Symbol::qualify_to_ref() has not previously been exercised in this test
file. Do so. Also, exercise certain usages of qualify() that are
documented in SYNOPSIS but were also previously unexercised.
Bring test file into compliance with stricture.
James E Keenan [Sat, 22 Aug 2020 20:44:29 +0000 (16:44 -0400)]
Correct typo in 'die' message.
Karl Williamson [Tue, 18 Aug 2020 01:40:18 +0000 (19:40 -0600)]
Document EXTERN_C macros
Karl Williamson [Sun, 26 Apr 2020 23:47:47 +0000 (17:47 -0600)]
util.c: Comment fix-up
H.Merijn Brand [Sat, 22 Aug 2020 14:12:58 +0000 (16:12 +0200)]
Merge Configure changes for z/OS and AIX
Thank you Karl!
Karl Williamson [Sun, 26 Apr 2020 23:47:47 +0000 (17:47 -0600)]
Refactor rninstr()
This function finds a needle in a haystack.
If memrchr() is available, use it to find the final byte in the needle;
If the needle is length 1, that's all we need, and this is special
cased. Otherwise it uses memEQ of the other bytes of the needle, from
where the needle would have to start, and if no match, repeats.
If no memrchr(), it emulates that by just looking backward from the end
until it finds the needle's final byte; then proceeds as above.
John Lightsey [Thu, 20 Aug 2020 20:53:57 +0000 (15:53 -0500)]
Add missing boundary check to grok_infnan
The grok_infnan() function was walking past the end of the string
while skipping over trailing '0' characters. This is another
variation of #17370.
Dagfinn Ilmari Mannsåker [Fri, 21 Aug 2020 21:35:37 +0000 (22:35 +0100)]
Add Merijn's new email address to Porting/checkAUTHORS.pl
Nicolas R [Fri, 14 Aug 2020 21:16:22 +0000 (16:16 -0500)]
die_unwind(): global destruction
Fix #18063
During global destruction make sure we preserve
the string by using mortalcopy.
This is an update on
8c86f0238ecb5f32c2e7fba36e3edfdb54069068
change which avoided sv_mortalcopy in favor of sv_2mortal.
H.Merijn Brand [Fri, 21 Aug 2020 13:53:11 +0000 (15:53 +0200)]
Make getverlist inside Configure strict/warnings safe and correctly sorted
Dagfinn Ilmari Mannsåker [Mon, 10 Aug 2020 19:21:08 +0000 (20:21 +0100)]
Remove 5005threads vestiges from Configure and friends
See https://github.com/Perl/metaconfig/pull/66/
Karen Etheridge [Thu, 20 Aug 2020 21:59:54 +0000 (14:59 -0700)]
Win32API::File::inc::ExtUtils::Myconst2perl is not indexed
..and Porting/corelist.pl warns about it
Karen Etheridge [Thu, 20 Aug 2020 21:57:50 +0000 (14:57 -0700)]
add new Module::CoreList entries
Karen Etheridge [Thu, 20 Aug 2020 21:23:32 +0000 (14:23 -0700)]
canonicalize more committer names and emails
Karen Etheridge [Thu, 20 Aug 2020 20:57:30 +0000 (13:57 -0700)]
bump Module::CoreList version
Karen Etheridge [Thu, 20 Aug 2020 20:55:38 +0000 (13:55 -0700)]
Bump the perl version in various places for 5.33.2
Karen Etheridge [Thu, 20 Aug 2020 20:53:16 +0000 (13:53 -0700)]
new perldelta for 5.33.2
Karen Etheridge [Thu, 20 Aug 2020 20:45:31 +0000 (13:45 -0700)]
tick off 5.33.1 release
Karen Etheridge [Thu, 20 Aug 2020 20:44:21 +0000 (13:44 -0700)]
fix version in release announcement template
Karen Etheridge [Thu, 20 Aug 2020 20:44:06 +0000 (13:44 -0700)]
commit epigraph for 5.33.1 release
Karen Etheridge [Thu, 20 Aug 2020 19:48:30 +0000 (12:48 -0700)]
add new release to perlhist
Karen Etheridge [Thu, 20 Aug 2020 18:32:25 +0000 (11:32 -0700)]
finalize perldelta for 5.33.1
Karen Etheridge [Thu, 20 Aug 2020 19:11:03 +0000 (12:11 -0700)]
Update Module::CoreList for 5.33.1
Dagfinn Ilmari Mannsåker [Thu, 20 Aug 2020 09:45:25 +0000 (10:45 +0100)]
perldelta: add missing =over/=item/=back around perldebguts entry
Karl Williamson [Thu, 20 Aug 2020 01:49:15 +0000 (19:49 -0600)]
regcomp.c: Silence compiler warning
This commit goes back to using av_top_index to silence the
signed/unsigned comparison warning. Other methods could have been used,
but the signed variable is actually used to fetch the array index, so I
decided to go this route.
Tony Cook [Thu, 20 Aug 2020 01:40:00 +0000 (11:40 +1000)]
fix broken perldelta links introduced in
5238875cf10
Tony Cook [Thu, 20 Aug 2020 01:25:33 +0000 (11:25 +1000)]
Karl Williamson [Thu, 20 Aug 2020 01:06:01 +0000 (19:06 -0600)]
Use av_top_index() instead of av_tindex()
I was never happy with this short form, and other people weren't either.
Now that most things are better expressed in terms of av_count, convert
the few remaining items that are clearer when referring to an index into
using the fully spelled out form
Karl Williamson [Wed, 19 Aug 2020 20:33:06 +0000 (14:33 -0600)]
pp_ctl.c: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:13:19 +0000 (18:13 -0600)]
Typemap.xs: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:12:45 +0000 (18:12 -0600)]
mro.xs: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:11:01 +0000 (18:11 -0600)]
APItest.xs: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:09:47 +0000 (18:09 -0600)]
Hash-Util-FieldHash: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:18:53 +0000 (18:18 -0600)]
pp.c: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:17:36 +0000 (18:17 -0600)]
PERL_FILTER_EXISTS: Convert to use av_count()
Karl Williamson [Thu, 20 Aug 2020 00:15:09 +0000 (18:15 -0600)]
os2.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 19:15:12 +0000 (13:15 -0600)]
Porting/makerel: Add a create EBCDIC option
So that the .gz and .xz files can be unpacked on EBCDIC platforms
without any muss or fuss
Karl Williamson [Wed, 19 Aug 2020 23:12:26 +0000 (17:12 -0600)]
perldelta: Add missing =item lines
Karl Williamson [Wed, 19 Aug 2020 23:08:20 +0000 (17:08 -0600)]
Add entry for fixing #16529
Nicolas R [Wed, 19 Aug 2020 23:06:22 +0000 (17:06 -0600)]
pod/perldelta: Improve formatting for dual life modules
Dagfinn Ilmari Mannsåker [Wed, 19 Aug 2020 23:03:37 +0000 (00:03 +0100)]
Add perldelta entry for perldebguts ${"_<$filename"} fix
See commit
6e764e36cf6a7c109e74ca4ccafbba27a0b422cd
Dagfinn Ilmari Mannsåker [Wed, 19 Aug 2020 22:59:58 +0000 (23:59 +0100)]
perldelta: alphabetise document list
Dagfinn Ilmari Mannsåker [Wed, 19 Aug 2020 22:56:22 +0000 (23:56 +0100)]
Note customized ExtUtils-Constant test
Commit
67b5e820b9462a832786fae47188b044c8fd42fb adjusted the test file
to avoid an indirect method call, but failed to update
Porting/Maintainers.pl and t/porting/customized.dat.
Dagfinn Ilmari Mannsåker [Wed, 19 Aug 2020 22:55:31 +0000 (23:55 +0100)]
Remove obsolete custimized.dat entry for Pod-Usage test
Commit
b9ab2ffe309876b1749351c4276565e2289c82ac updated Pod-Usage to
v1.70, which includes the test change, but failed to remove it from
t/porting/customized.dat.
Nicolas R [Wed, 19 Aug 2020 22:57:23 +0000 (16:57 -0600)]
Add perldetla entries for my_rpeep and range op
Changes for
39f7bd8a2f and
f4941eebb5
Nicolas R [Wed, 19 Aug 2020 22:50:08 +0000 (16:50 -0600)]
Add perldelta entries for dual life modules
Karen Etheridge [Wed, 19 Aug 2020 22:44:18 +0000 (15:44 -0700)]
add new rjbs email
Dagfinn Ilmari Mannsåker [Wed, 19 Aug 2020 22:40:46 +0000 (23:40 +0100)]
Add perldelta entry for Intel compiler detection fix
See commit
8ffcbbbe4a4411bb0971e61a39fa2608a4ef5145
Karl Williamson [Wed, 19 Aug 2020 22:35:42 +0000 (16:35 -0600)]
perldelta: Note GH #18019 is fixed
Karl Williamson [Wed, 19 Aug 2020 22:22:50 +0000 (16:22 -0600)]
perldelta: Note more doc changes
Karen Etheridge [Wed, 19 Aug 2020 22:18:29 +0000 (15:18 -0700)]
perldelta update for commit
3aa74965c0
Karen Etheridge [Wed, 19 Aug 2020 21:02:58 +0000 (14:02 -0700)]
whitespace fixes only
Karl Williamson [Wed, 19 Aug 2020 20:56:22 +0000 (14:56 -0600)]
vms.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:55:17 +0000 (14:55 -0600)]
universal.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:53:34 +0000 (14:53 -0600)]
sv.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:51:09 +0000 (14:51 -0600)]
regcomp.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:34:19 +0000 (14:34 -0600)]
pp_sys.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:11:13 +0000 (14:11 -0600)]
pp.h.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:09:17 +0000 (14:09 -0600)]
perl.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:07:06 +0000 (14:07 -0600)]
doio.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 20:03:55 +0000 (14:03 -0600)]
pp_hot.c: Convert to use av_count()
Karl Williamson [Wed, 19 Aug 2020 17:57:17 +0000 (11:57 -0600)]
Add av_count()
This returns the number of elements in an array in a clearly named
function.
av_top_index(), av_tindex() are clearly named, but are less than ideal,
and came about because no one back then thought of this one, until now
Paul Evans did.
Nicolas R [Wed, 19 Aug 2020 22:08:39 +0000 (16:08 -0600)]
perldelta: Plan9 and 9front i386
Relates: #17891
Add perldelta entry for Plan9 and 9front.
Karen Etheridge [Wed, 19 Aug 2020 21:17:37 +0000 (14:17 -0700)]
massage perldelta entries for perl5db.pl
Karl Williamson [Wed, 19 Aug 2020 21:22:53 +0000 (15:22 -0600)]
perlguts: Mention format display modifiers for nonstandards
You can print ptrdiff_t values just fine, for example
Karl Williamson [Wed, 19 Aug 2020 21:18:39 +0000 (15:18 -0600)]
perldelta: Note new z/OS locale categories
Ricardo Signes [Wed, 19 Aug 2020 20:40:41 +0000 (16:40 -0400)]
perldelta: explain
015b02fd303c and HistItemMinLength in perl5db (#18075)
Leon Timmermans [Wed, 19 Aug 2020 20:02:27 +0000 (22:02 +0200)]
Add perldelta entry for ExtUtils::PL2Bat
Paul "LeoNerd" Evans [Wed, 19 Aug 2020 14:26:52 +0000 (15:26 +0100)]
Add a note to perldelta about the recently-added SAVEt_HINTS_HH type
Nicolas R [Tue, 18 Aug 2020 15:20:17 +0000 (09:20 -0600)]
Update Pod-Usage to v1.70
Customized patch to t/pod/testp2pt.pl is now applied upstream
and part of the 1.70 release.
References:
88e4265ca263642612277ef33dd08ded69e4e4c5
Upstream-URL: https://rt.cpan.org/Ticket/Display.html?id=130418
Karl Williamson [Wed, 22 Jul 2020 11:41:52 +0000 (05:41 -0600)]
embed.fnc: Mark reg_named_buffFOO as Core only
These are pointers to Perl's internal regex engine functions. They ae
automatically used, unless overridden by setting a function pointer in
any custom engine installed.
Karl Williamson [Wed, 22 Jul 2020 12:47:18 +0000 (06:47 -0600)]
Document my_strftime
Karl Williamson [Tue, 18 Aug 2020 01:31:04 +0000 (19:31 -0600)]
perl.h: Add some pod formatting.
This somehow got left off the previous commit.
Karl Williamson [Sat, 18 Jul 2020 13:12:44 +0000 (07:12 -0600)]
Document several PERL_UNUSED_foo macros
Dagfinn Ilmari Mannsåker [Mon, 17 Aug 2020 22:55:44 +0000 (23:55 +0100)]
perlref.pod: Fix heading levels and ordering
Commit
cb1a09d0194fed9b905df7b04a4bc031d354609d (perl 5.002) promoted
the WARNING and SEE ALSO headings in perlref from `=head2` to
`=head1`, but subsequent changes added things that should have been
`=head2` before the WARNING as `=head1` between the two.
Commit
f0d9913136619e8b6716f2dfa6d8524a6df9e2c0 fixed some of those
heading levels, but left "Declaring a Reference to a Variable" as
`=head1`.
Dagfinn Ilmari Mannsåker [Mon, 17 Aug 2020 19:27:51 +0000 (20:27 +0100)]
regen_perly.pl: remove extraneous comments from bison 3.x
The script alrady stripped out comments from bison 2.4 on the form
/* Line 1234 of yacc.c */
But bison 3.0 changed the comment syntax to
/* yacc.c:1234 */
Let's remove those too.
Nicolas R [Wed, 12 Aug 2020 20:28:33 +0000 (15:28 -0500)]
dist/threads-shared: use PERL_VERSION compare macro
Nicolas R [Wed, 12 Aug 2020 20:24:49 +0000 (15:24 -0500)]
dist/Data-Dumper: use PERL_VERSION compare macro
Convert one 'else if' statement to a '#if' check
Nicolas R [Wed, 12 Aug 2020 17:32:44 +0000 (12:32 -0500)]
dist/Unicode-Normalize: use PERL_VERSION compare macro
Nicolas R [Wed, 12 Aug 2020 17:28:48 +0000 (12:28 -0500)]
dist/IO: use PERL_VERSION compare macro
Note: VERSION was already bumped as part of
e6aa2bc12e9cf0a0
Nicolas R [Wed, 12 Aug 2020 17:39:04 +0000 (12:39 -0500)]
dist/ExtUtils-ParseXS: use PERL_VERSION compare macro
Nicolas R [Mon, 17 Aug 2020 14:56:47 +0000 (08:56 -0600)]
Tweak IRC Notifications to #p5p-commits
Tony Cook [Thu, 13 Aug 2020 05:15:03 +0000 (15:15 +1000)]
bump $Data::Dumper::VERSION
Tony Cook [Wed, 12 Aug 2020 06:20:16 +0000 (16:20 +1000)]
Data::Dumper (XS): use mortals to prevent leaks if magic throws
For example:
use Tie::Scalar;
use Data::Dumper;
sub T::TIESCALAR { bless {}, shift}
sub T::FETCH { die }
my $x;
tie $x, "T" or die;
while(1) {
eval { () = Dumper( [ \$x ] ) };
}
would leak various work SVs.
I start a new scope (ENTER/LEAVE) for most recursive DD_dump() calls
so that the work SVs don't accumulate on the temps stack, for example
if we're dumping a large array we'd end up with several SVs on the
temp stack for each member of the array.
The exceptions are where I don't expect a large number of unreleased
temps to accumulate, as with scalar or glob refs.
Tony Cook [Tue, 11 Aug 2020 00:46:38 +0000 (10:46 +1000)]
make postav and valstr mortal so they're freed soonish
these can leak if the value being dumped (or any part of it)
had get magic and that magic throws an exception.
Several other SVs can also leak in that case, but cleaning those up
is more complex.
Tony Cook [Mon, 10 Aug 2020 06:26:30 +0000 (16:26 +1000)]
Data::Dumper: don't leak the working retval
do this by mortalizing the SV on creation, rather than when we
push it on the stack
James E Keenan [Mon, 17 Aug 2020 01:41:52 +0000 (21:41 -0400)]
Porting/Maintainers.pm: correct typo in name of file within test description
Increment $VERSION
Karl Williamson [Sat, 15 Aug 2020 23:01:44 +0000 (17:01 -0600)]
PL_signals is undocumented
Therefore there is no link to it.
Christian Walde (Mithaldu) [Mon, 29 Jun 2020 04:59:00 +0000 (06:59 +0200)]
skip flaky port test on windows
Fix #17992
The test being skipped there is unreliable on windows.
Possibly @leonerd has a better idea, but in the meantime
I think it's fine to simply skip that one.
(cherry picked from commit
10e96ffd8a056ee32854ea3dcb89d99d9411ac67)
Signed-off-by: Nicolas R <atoomic@cpan.org>
Karl Williamson [Wed, 22 Jul 2020 22:59:51 +0000 (16:59 -0600)]
Document PERL_SIGNALS_UNSAFE_FLAG
This is for the benefit of Devel::PPPort
Karl Williamson [Wed, 22 Jul 2020 23:21:13 +0000 (17:21 -0600)]
Note SV_UTF8_NO_ENCODING exists, but deprecated
Karl Williamson [Wed, 22 Jul 2020 23:04:34 +0000 (17:04 -0600)]
Note GIMME is deprecated
Karl Williamson [Wed, 22 Jul 2020 11:50:47 +0000 (05:50 -0600)]
embed.fnc: Mark various save_foo as Core only
There are documented macros for each, like SAVEBOOL, that one is
supposed to use for this functionality.
Karl Williamson [Wed, 22 Jul 2020 11:36:56 +0000 (05:36 -0600)]
embed.fnc: Mark unlnk as Core only
The macro UNLINK is what one is supposed to use for this functionality,
(though that isn't documented either)
Karl Williamson [Wed, 22 Jul 2020 11:05:32 +0000 (05:05 -0600)]
embed.fnc: Mark sys_init3?, sys_term as Core only
The ALL-CAPS macro names are what one is supposed to use for this
functionality.