This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
6 months agoChange name of intermediary macro, and #undef it
Karl Williamson [Fri, 16 Oct 2020 03:28:33 +0000 (21:28 -0600)]
Change name of intermediary macro, and #undef it

Instead of using an underscore to mark this as private, we can #undef
this intermediary after use, as it isn't needed to be defined outside
the small area is is used in in perl.h

6 months agoFix __builtin_unreachable
Karl Williamson [Fri, 16 Oct 2020 03:25:32 +0000 (21:25 -0600)]
Fix __builtin_unreachable

Tomasz Konojacki pointed out on #irc that the formulation in
5d5b9c460e2a06563d2b5e35a1a79991460696eb was wrong, and the correction
here is the right way of doing it.

6 months agoversion - Fixes from recent CPAN update (966a34475a)
Steve Hay [Thu, 15 Oct 2020 17:19:40 +0000 (18:19 +0100)]
version - Fixes from recent CPAN update (966a34475a)

The customization of vutil.c in 51b56f5c7c was lost.

The customization of vxs.inc restored by 2351bb7334 was not recorded in
the usual places, which is probably why it got lost before.

6 months agoMemoize - t/expmod_t.t and t/speed.t were CUSTOMIZED by 53379bfd2f and f0206e8198
Steve Hay [Thu, 15 Oct 2020 16:40:45 +0000 (17:40 +0100)]
Memoize - t/expmod_t.t and t/speed.t were CUSTOMIZED by 53379bfd2f and f0206e8198

6 months agoMath::Complex - t/underbar.t was CUSTOMIZED by cde2523b3a
Steve Hay [Thu, 15 Oct 2020 16:34:55 +0000 (17:34 +0100)]
Math::Complex - t/underbar.t was CUSTOMIZED by cde2523b3a

6 months agoTie::RefHash - Some files are EXCLUDED from blead
Steve Hay [Thu, 15 Oct 2020 16:30:37 +0000 (17:30 +0100)]
Tie::RefHash - Some files are EXCLUDED from blead

6 months agoregcomp.c: Zero width constructs shouldn't be SIMPLE
Karl Williamson [Thu, 15 Oct 2020 13:30:58 +0000 (07:30 -0600)]
regcomp.c: Zero width constructs shouldn't be SIMPLE

This is reserved for length-1 constructs.

6 months agoRefactor and document ASSUME()
Karl Williamson [Wed, 7 Oct 2020 03:50:16 +0000 (21:50 -0600)]
Refactor and document ASSUME()

The blead definition doesn't compile when I use Devel::PPPort earlier than
some point in the 5.19 series.

Examining the code, I noticed that there was a potential cyclic
definition: ASSUME can call NOTREACHED, and NOTREACHED can call assume.

Blead also assumed without checking that __builtin_unreachable() exists.

So, I refactored things so that there is no cycle, and changed a few
words in the comments to turn them into pod, and the new version
compiles all the way back.

6 months agoDocument NOOP, dNOOP, dVAR
Karl Williamson [Wed, 22 Jul 2020 22:50:23 +0000 (16:50 -0600)]
Document NOOP, dNOOP, dVAR

This commit also moves the definition of dVAR down so its
controlling #ifdef is combined with the next #ifdef

6 months agowin32: use the same manifest for Visual C++ and gcc builds
Tomasz Konojacki [Sun, 11 Oct 2020 00:13:09 +0000 (02:13 +0200)]
win32: use the same manifest for Visual C++ and gcc builds

Before this commit, MSVC builds were using /manifestdependency flag
instead of embedding perlexe.manifest. That was causing issues like
GetVersionEx() returning the wrong version number on Windows 10.

6 months agopod/perlfunc.pod: Remove misleading code example (#18105)
James E Keenan [Wed, 14 Oct 2020 14:51:36 +0000 (10:51 -0400)]
pod/perlfunc.pod:  Remove misleading code example (#18105)

* pod/perlfunc.pod:  Remove misleading code example

For: GH 18016

* Additional correction suggested by Dan Book

6 months agoperlsub - Link to constant pragma
Dan Book [Wed, 14 Oct 2020 01:58:14 +0000 (21:58 -0400)]
perlsub - Link to constant pragma

6 months agoregexec.c: Macroize another common paradigm
Karl Williamson [Sat, 6 Jun 2020 22:10:11 +0000 (16:10 -0600)]
regexec.c: Macroize another common paradigm

6 months agoregexec.c: Macroize a common paradigm
Karl Williamson [Sat, 6 Jun 2020 22:19:43 +0000 (16:19 -0600)]
regexec.c: Macroize a common paradigm

6 months agoregexec.c: Rename a static variable
Karl Williamson [Sat, 6 Jun 2020 21:55:37 +0000 (15:55 -0600)]
regexec.c: Rename a static variable

This is to distinguish it from a similar variable being added in a
future commit

6 months agoregexec.c: find_byclass(): Restructure
Karl Williamson [Sat, 6 Jun 2020 14:10:31 +0000 (08:10 -0600)]
regexec.c: find_byclass(): Restructure

This is a follow-on to the previous commit.  The case number of the main
switch statement now includes three things: the regnode op, the UTF8ness
of the target, and the UTF8ness of the pattern.

This allows the conditionals within the previous cases (which only
encoded the op), to be removed, and things to be moved around so that
there is more fall throughs and fewer gotos, and the macros that are
called no longer have to test for UTF8ness; so I teased the UTF8 ones
apart from the non_UTF8 ones.

6 months agoregexec.c: S_find_byclass(): utf8ness in switch()
Karl Williamson [Tue, 2 Jun 2020 21:50:02 +0000 (15:50 -0600)]
regexec.c: S_find_byclass(): utf8ness in switch()

This uses the #defines created in the previous commit to make the switch
statement in this function incorporate the UTF8ness of both the pattern
and the target string.

The reason for this is that the first statement in nearly every case of
the switch is to test if the target string being matched is UTF-8 or
not.  By putting that information into the the case number, those
conditionals can be eliminated, leading to cleaner, more modular code.
I had hoped that this would also improve performance since there are
fewer conditionals, but Sergey Aleynikov did performance testing of this
change for me, and found no real noticeable gain nor loss.

Further, the cases involving matching EXACTish nodes have to also test
if the pattern is UTF-8 or not before doing anything else.  I added that
information as well to the case number, so that those conditionals can
be eliminated.  For the non-EXACTish nodes, it simply means that that
two case statements execute the same code.

This is an intermediate commit, which only does the expansion of the
current cases into four for each.  The refactoring that takes advantage
of this is in the following commit.

6 months agoregen/regcomp.pl: Generate #defines for UTF8ness
Karl Williamson [Wed, 14 Oct 2020 14:27:41 +0000 (08:27 -0600)]
regen/regcomp.pl: Generate #defines for UTF8ness

This causes #defines to be generated for regexec.c to use in switch
statements, so that for each opcode there that is a case: there are
actually 4 cases, for the the target being UTF-8 or not, combined with
the pattern being UTF-8 or not.

This will be used in future commits to simplify things.

6 months agoregen/regcomp.pl: Change variable name
Karl Williamson [Wed, 14 Oct 2020 14:17:03 +0000 (08:17 -0600)]
regen/regcomp.pl: Change variable name

The more specific name this is changed to will make code clearer in
future commits.

6 months agoregen_lib: Output blanks; not tabs
Karl Williamson [Wed, 14 Oct 2020 13:50:15 +0000 (07:50 -0600)]
regen_lib: Output blanks; not tabs

This makes it easier to calculate widths; and our policy is to not use
tabs anyway.

6 months agoAdd exec bit to Porting/Maintainers.pl
Karl Williamson [Wed, 14 Oct 2020 14:34:35 +0000 (08:34 -0600)]
Add exec bit to Porting/Maintainers.pl

This was inadvertently recently cleared

6 months agoFix t/porting/cmp_version.t following Pod-Usage update
Steve Hay [Wed, 14 Oct 2020 12:02:59 +0000 (13:02 +0100)]
Fix t/porting/cmp_version.t following Pod-Usage update

6 months agoUpdate DB_File from version 1.854 to 1.855
Steve Hay [Wed, 14 Oct 2020 07:23:21 +0000 (08:23 +0100)]
Update DB_File from version 1.854 to 1.855

6 months agoNo need for empty CUSTOMIZED section
Steve Hay [Wed, 14 Oct 2020 07:15:29 +0000 (08:15 +0100)]
No need for empty CUSTOMIZED section

6 months agoUpdate Pod-Usage from version 1.70 to 2.01
Steve Hay [Wed, 14 Oct 2020 07:07:08 +0000 (08:07 +0100)]
Update Pod-Usage from version 1.70 to 2.01

6 months agot/opbasic/arith.t - extra tests to better exercise dleft/dright paths in pp_modulo
Richard Leach [Fri, 18 Sep 2020 22:10:24 +0000 (23:10 +0100)]
t/opbasic/arith.t - extra tests to better exercise dleft/dright paths in pp_modulo

6 months agoperl5db.pl - remove redundant share()
Richard Leach [Sun, 11 Oct 2020 09:44:11 +0000 (10:44 +0100)]
perl5db.pl - remove redundant share()

6 months agoAdd alternate email for Eric Lindblad
Karl Williamson [Wed, 14 Oct 2020 02:58:55 +0000 (20:58 -0600)]
Add alternate email for Eric Lindblad

6 months agoReplace ssh with https (#18229)
apparluk [Wed, 14 Oct 2020 02:09:03 +0000 (04:09 +0200)]
Replace ssh with https (#18229)

* use https in perlhack.pod

* https and ssh in perlhack.pod

* closing angle bracket

* links

* author

6 months agoFix t/test.pl and t/TEST to be strict compliant.
Todd Rinaldo [Tue, 13 Oct 2020 17:30:32 +0000 (12:30 -0500)]
Fix t/test.pl and t/TEST to be strict compliant.

So tests can run with -Dusedefaultstrict

6 months agoUpdate Digest to CPAN version 1.19
Todd Rinaldo [Tue, 13 Oct 2020 20:13:32 +0000 (15:13 -0500)]
Update Digest to CPAN version 1.19

[DELTA]

1.19 Tue 2020-10-13
- Merge blead change: Remove . from @INC when loading optional modules.

1.18 Tue 2020-10-13
- Correct documentation for add_bits
- Explain $args,... in constructor prototypes
- Add base64_padded_digest method
- Add support for the SHA3 digests
- Update .gitignore and get make manifest working
- Github CI
- Move Digest to a more modern directory tree layout
- Enable strict/warnings for code and tests
- Drop use vars
- Provide a consistent tidy to the code base
- Get rid of the use of bareword file handles
- Modernize the changelog
- Use File::Temp for temporary test files

6 months agoFix enough code to get make test_prep working with -dDusedefaultstrict
Todd Rinaldo [Fri, 11 Sep 2020 22:19:17 +0000 (17:19 -0500)]
Fix enough code to get make test_prep working with -dDusedefaultstrict

This change fixes enough code that it's possible to run make test_prep when perl is compiled with -Dusedefaultstrict.

There are 2 caveats to this:

 - Does not address XSLoader/DynaLoader already submitted in another PR.
 - Does not address cpan/Pod-Usage or cpan/Text-Tabs which continue to be outstanding upstream.

6 months agoremove deprecated GitHub Actions Command and some improvements
Ichinose Shogo [Tue, 13 Oct 2020 15:07:06 +0000 (00:07 +0900)]
remove deprecated GitHub Actions Command and some improvements

Don't use add-path GitHub Action Command
The `add-path` command is deprecated.
For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

* bump up actions/checkout@v1
* enable cache of GitHub Actions
* don't use pre-installed git on cygwin
* split lines for readability

6 months agoTime-HiRes is nearer version 1.9764 than 1.9760
Steve Hay [Tue, 13 Oct 2020 07:36:06 +0000 (08:36 +0100)]
Time-HiRes is nearer version 1.9764 than 1.9760

6 months agoUpdate Pod-Simple from version 3.40 to 3.41
Steve Hay [Tue, 13 Oct 2020 07:28:46 +0000 (08:28 +0100)]
Update Pod-Simple from version 3.40 to 3.41

6 months agoUpdate Win32 from version 0.53 to 0.54
Steve Hay [Mon, 12 Oct 2020 16:36:24 +0000 (17:36 +0100)]
Update Win32 from version 0.53 to 0.54

6 months agoUpdate Unicode-Collate from version 1.28 to 1.29
Steve Hay [Mon, 12 Oct 2020 16:34:02 +0000 (17:34 +0100)]
Update Unicode-Collate from version 1.28 to 1.29

6 months agoUpdate Time-Local from version 1.28 to 1.30
Steve Hay [Mon, 12 Oct 2020 16:26:34 +0000 (17:26 +0100)]
Update Time-Local from version 1.28 to 1.30

6 months agoUpdate Getopt-Long from version 2.51 to 2.52
Steve Hay [Mon, 12 Oct 2020 16:21:50 +0000 (17:21 +0100)]
Update Getopt-Long from version 2.51 to 2.52

6 months agoUpdate ExtUtils-PL2Bat from version 0.002 to 0.003
Steve Hay [Mon, 12 Oct 2020 12:58:18 +0000 (13:58 +0100)]
Update ExtUtils-PL2Bat from version 0.002 to 0.003

Retain the blead customization of t/make_executable.t (b8884e7078).

Exclude the new script/pl2bat.pl for now. Presumably this should replace
blead's win32/bin/pl2bat.pl at some point?

6 months agoUpdate experimental from version 0.020 to 0.022
Steve Hay [Mon, 12 Oct 2020 12:39:34 +0000 (13:39 +0100)]
Update experimental from version 0.020 to 0.022

6 months agoUpdate Encode from version 3.06 to 3.07
Steve Hay [Mon, 12 Oct 2020 12:36:53 +0000 (13:36 +0100)]
Update Encode from version 3.06 to 3.07

6 months agoUpdate CPAN from vesion 2.27 to 2.28
Steve Hay [Mon, 12 Oct 2020 12:33:40 +0000 (13:33 +0100)]
Update CPAN from vesion 2.27 to 2.28

6 months agoregcomp.c: regpiece: swap order of conditionals
Karl Williamson [Mon, 5 Oct 2020 04:15:17 +0000 (22:15 -0600)]
regcomp.c: regpiece: swap order of conditionals

Its a bit more clearer to test the 0 case before the 1 case, and by
doing so it becomes visually easier to compare and contrast the the two
cases.

6 months agoregcomp.c: regpiece: Move chunk of code for clarity
Karl Williamson [Mon, 5 Oct 2020 03:54:06 +0000 (21:54 -0600)]
regcomp.c: regpiece: Move chunk of code for clarity

This changes an error branch to be goto'd out of the mainline code.  The
large chunk being in the middle obscured the comonality of the slightly
different non-error cases.

The branch is moved to the bottom of the routine, and croaks, so there
is no return.

This is a modification to a suggestion by Hugo van der Sanden.

6 months agoregcomp.c: White-space only
Karl Williamson [Sun, 4 Oct 2020 22:25:14 +0000 (16:25 -0600)]
regcomp.c: White-space only

Change indentation to correspond with new blocks formed by the previous
commit

6 months agoregcomp.c: regpiece(): Convert to a switch() stmt
Karl Williamson [Sun, 4 Oct 2020 22:15:53 +0000 (16:15 -0600)]
regcomp.c: regpiece(): Convert to a switch() stmt

This makes the code easier to understand, I think.

6 months agoregcomp.c: regpiece(): More comments; white-space
Karl Williamson [Fri, 24 Apr 2020 18:03:44 +0000 (12:03 -0600)]
regcomp.c: regpiece(): More comments; white-space

6 months agoregcomp.c: regpiece(): Refactor two 'if's
Karl Williamson [Fri, 24 Apr 2020 17:56:39 +0000 (11:56 -0600)]
regcomp.c: regpiece(): Refactor two 'if's

I think this makes it clearer the commonalities of the * and +
quantifiers.

6 months agoregcomp.c: regpiece: Consolidate code
Karl Williamson [Fri, 24 Apr 2020 17:50:02 +0000 (11:50 -0600)]
regcomp.c: regpiece: Consolidate code

There is a common place these three occurrences can be placed at,

6 months agoregcomp.c: Change label name; rmv extraneous goto
Karl Williamson [Fri, 24 Apr 2020 17:41:31 +0000 (11:41 -0600)]
regcomp.c: Change label name; rmv extraneous goto

The name was misleading.  There are other things being done here.  And
previous restructuring led to a goto immediately prior to where it went
to.

6 months agoregcomp.c: regpiece(): Pass along that is a code block
Karl Williamson [Sun, 4 Oct 2020 23:20:31 +0000 (17:20 -0600)]
regcomp.c: regpiece(): Pass along that is a code block

regpiece was failing to pass up to its caller that a piece of code
contained a code block, if that code was quantified.

I don't know what the consequences of this are

6 months agoregcomp.c: regpiece() 0 times anything is 0
Karl Williamson [Fri, 24 Apr 2020 17:27:33 +0000 (11:27 -0600)]
regcomp.c: regpiece() 0 times anything is 0

Prior to this commit, regpiece() gave width to many quantified values.
This is wrong.  If something is zero width, repeating it doesn't cause
it to gain width.  I don't know if this led to wrong pattern matching
results, but I imagine it led to slower results in some cases.

6 months agoregcomp.c: regpiece() Don't match 0 length more than once
Karl Williamson [Sun, 4 Oct 2020 22:46:51 +0000 (16:46 -0600)]
regcomp.c: regpiece() Don't match 0 length more than once

There's no point in matching something more than once that doesn't
advance the parse, as long as there are no side effects beyond those
from the first match.  Those could only happen in code blocks, which
this code doesn't have.

6 months agoregcomp.c: Rmv #if 0 bitrotted code
Karl Williamson [Fri, 24 Apr 2020 14:22:25 +0000 (08:22 -0600)]
regcomp.c: Rmv #if 0 bitrotted code

This code has been #ifdef'd out for 20 years, and shows bit rot.  It was
kept around in case there was a problem with the replacement for it, but
that hasn't happened and is very unlikely to happen; in the meantime
this is a visual distraction to the code flow.

6 months agoregcomp.c: Move code to earlier in regpiece()
Karl Williamson [Fri, 24 Apr 2020 13:41:20 +0000 (07:41 -0600)]
regcomp.c: Move code to earlier in regpiece()

This is in preparation for a future commit that will change things so
this would need to be done earlier than the changes.

6 months agoregcomp.c: Rmv misleading comment
Karl Williamson [Fri, 24 Apr 2020 13:26:15 +0000 (07:26 -0600)]
regcomp.c: Rmv misleading comment

This NOTREACHED's presence just before an else would make one think
there is something funny going one, when there isn't.

6 months agoregcomp.c: White-space only
Karl Williamson [Tue, 21 Apr 2020 13:11:30 +0000 (07:11 -0600)]
regcomp.c: White-space only

Outdent since the previous commit removed a surrounding block.
And convert some tabs to blanks

6 months agoregcomp.c: Move some code in regpiece()
Karl Williamson [Tue, 21 Apr 2020 13:05:23 +0000 (07:05 -0600)]
regcomp.c: Move some code in regpiece()

This moves some code, making it part of an if/else.  As a result, several
gotos are eliminated, and the code is in a more logical order.

6 months agoregcomp.c: White-space only
Karl Williamson [Tue, 21 Apr 2020 13:01:05 +0000 (07:01 -0600)]
regcomp.c: White-space only

Outdent since the previous commit removed a surrounding block

6 months agoregcomp.c: Combine common code
Karl Williamson [Tue, 21 Apr 2020 12:41:22 +0000 (06:41 -0600)]
regcomp.c: Combine common code

This bit of code occurs in two places.  Move it so that it gets executed
before the split, so it only has to be specified once.

6 months agoregcomp.c: Move test earlier in regpiece()
Karl Williamson [Tue, 21 Apr 2020 12:26:58 +0000 (06:26 -0600)]
regcomp.c: Move test earlier in regpiece()

Prior to this commit, the code checked if this was a particular
quantifier; if so handled that, then checked if it were some other
quantifier, returning if not.

This commit changes to check first if it is any quantifier, using the
macro that checks for all of them, returning if not.

Thus after the new code we know it is a quantifier and this allows later
commits to simplify

6 months agot/op/inc.t: Test incrementing UV with and without upgrading to NV.
TAKAI Kousuke [Thu, 8 Oct 2020 10:48:51 +0000 (19:48 +0900)]
t/op/inc.t: Test incrementing UV with and without upgrading to NV.

6 months agosv.c: Added missing braces in Perl_sv_inc_nomg().
TAKAI Kousuke [Thu, 8 Oct 2020 10:02:10 +0000 (19:02 +0900)]
sv.c: Added missing braces in Perl_sv_inc_nomg().

6 months agoUpdate Tie-RefHash to CPAN version 1.40
Karen Etheridge [Sat, 10 Oct 2020 20:41:33 +0000 (13:41 -0700)]
Update Tie-RefHash to CPAN version 1.40

  [DELTA]

1.40      2020-10-10 20:38:32Z
  - switch from "use vars" to "our", raising minimum perl to 5.6
  - tooling improvements

6 months agoperlapi: Consolidate sv_utf8_upgrade-ish entries
Karl Williamson [Sat, 5 Sep 2020 18:32:01 +0000 (12:32 -0600)]
perlapi: Consolidate sv_utf8_upgrade-ish entries

6 months agoperlapi: svtype is a typedef
Karl Williamson [Thu, 8 Oct 2020 20:10:40 +0000 (14:10 -0600)]
perlapi: svtype is a typedef

6 months agoUpdate Test-Simple to CPAN version 1.302181
Todd Rinaldo [Thu, 8 Oct 2020 23:40:08 +0000 (18:40 -0500)]
Update Test-Simple to CPAN version 1.302181

[DELTA]

1.302182  2020-10-05 22:02:28-07:00 America/Los_Angeles

 - Fix 5.6 support
 - Fix fragile %INC handling in a test

6 months agocv.h: Note CV is documented here
Karl Williamson [Wed, 7 Oct 2020 23:31:25 +0000 (17:31 -0600)]
cv.h: Note CV is documented here

6 months agogv.c: Note GV is documented here
Karl Williamson [Wed, 7 Oct 2020 23:35:34 +0000 (17:35 -0600)]
gv.c: Note GV is documented here

6 months agoAdd details to pod for foo(MAX|INT)_C entries
Karl Williamson [Wed, 7 Oct 2020 04:09:19 +0000 (22:09 -0600)]
Add details to pod for foo(MAX|INT)_C entries

6 months agoperlguts: Note that various typedefs are documented here
Karl Williamson [Thu, 8 Oct 2020 13:50:13 +0000 (07:50 -0600)]
perlguts: Note that various typedefs are documented here

And fill in the descriptions for things like U8

6 months agomg.c: Note that MAGIC is documented here
Karl Williamson [Wed, 7 Oct 2020 23:37:44 +0000 (17:37 -0600)]
mg.c: Note that MAGIC is documented here

6 months agoautodoc: Add ability to specify typedefs
Karl Williamson [Thu, 8 Oct 2020 12:37:40 +0000 (06:37 -0600)]
autodoc: Add ability to specify typedefs

Typedefs are part of the API; this allows us to document basic things
such as CV, U8 that aren't currently covered.

6 months agoregexec: disallow zero-width nodes in regrepeat
Hugo van der Sanden [Tue, 21 Apr 2020 10:50:18 +0000 (11:50 +0100)]
regexec: disallow zero-width nodes in regrepeat

GH #17594: the logic here expects the node to have width 1 (except for
LNBREAK), it is not expected to do the right thing on zero-width nodes.

6 months agoregcomp: do not mark zero-width constructs SIMPLE
Hugo van der Sanden [Tue, 21 Apr 2020 10:49:10 +0000 (11:49 +0100)]
regcomp: do not mark zero-width constructs SIMPLE

GH #17594: avoid marking them SIMPLE during compile so they will not
wrongly be permitted in STAR/PLUS/CURLY nodes: a SIMPLE node is supposed
to have width 1 (with the exception of LNBREAK as a special case).

6 months agopp_split: reify using NULL rather than PL_sv_undef (gh#18077)
Richard Leach [Tue, 22 Sep 2020 23:28:21 +0000 (00:28 +0100)]
pp_split: reify using NULL rather than PL_sv_undef (gh#18077)

6 months agoAdd crosslinks between perl5db.pl and perldebug-related docs
Dan Book [Wed, 7 Oct 2020 00:06:32 +0000 (20:06 -0400)]
Add crosslinks between perl5db.pl and perldebug-related docs

6 months agoperl.h: White-space only
Karl Williamson [Thu, 8 Oct 2020 03:09:52 +0000 (21:09 -0600)]
perl.h: White-space only

Indent preprocessor directives now enclosed within a new #ifdef block
from the previous commit

6 months agoperl.h: Restrict to core likely to conflict macro names
Karl Williamson [Thu, 8 Oct 2020 02:52:28 +0000 (20:52 -0600)]
perl.h: Restrict to core likely to conflict macro names

This header defines symbols like N0, N1 that could easily be used
innocently by some XS code for its own purposes.  We shouldn't pollute
the name space with names the likes of these.

6 months agoRename internal macros in warnings.h
Karl Williamson [Thu, 8 Oct 2020 00:27:05 +0000 (18:27 -0600)]
Rename internal macros in warnings.h

This header defines 3 macros that are visible to XS code, but not for
direct use of that code (they are not API).  At least two of them are
so short and generic that they could quite possibly conflict with
symbols in that code 'Bit' and 'Off'.  The third is somewhat less
likely, 'IsSet', but not great.

Rename them so that they contain 'Perl', so don't pollute the XS
namespace.

6 months agoperlclib: Use proper reference
Karl Williamson [Wed, 7 Oct 2020 23:53:04 +0000 (17:53 -0600)]
perlclib: Use proper reference

It was referring to the wrong function

6 months agoperlapi: Consolidate sv_copypv-ish entries
Karl Williamson [Sat, 5 Sep 2020 18:18:27 +0000 (12:18 -0600)]
perlapi: Consolidate sv_copypv-ish entries

6 months agoRemove the need for add_my_to_dump helper in Data::Dumper.
Todd Rinaldo [Thu, 1 Oct 2020 16:31:07 +0000 (11:31 -0500)]
Remove the need for add_my_to_dump helper in Data::Dumper.

6 months agoRemove unnecessary need for Data::Dumper Config{extensions} check.
Todd Rinaldo [Thu, 1 Oct 2020 16:09:54 +0000 (11:09 -0500)]
Remove unnecessary need for Data::Dumper Config{extensions} check.

These unit test checks are unnecessary since the entire module
isn't tested if Data::Dumper is excluded.

6 months agoMake Data::Dumper strict and warnings compliant
Todd Rinaldo [Wed, 30 Sep 2020 16:25:01 +0000 (11:25 -0500)]
Make Data::Dumper strict and warnings compliant

6 months agoperlutil updates and cleanup
Dan Book [Tue, 6 Oct 2020 23:34:33 +0000 (19:34 -0400)]
perlutil updates and cleanup

- Add missing encguess, json_pp, and streamzip utilities
- Normalize item entries for utilities so they are equally visible and linkable
- Normalize usage of F<> on unlinked executables
- Normalize linking to referenced modules
- Simplify links with duplicate text
- Clean up SEE ALSO

6 months agoDocument XSPROTO
Karl Williamson [Thu, 27 Aug 2020 13:54:02 +0000 (07:54 -0600)]
Document XSPROTO

6 months agoDocument newSUB, newATTRSUB
Karl Williamson [Thu, 27 Aug 2020 15:27:28 +0000 (09:27 -0600)]
Document newSUB, newATTRSUB

6 months agoUpdate ExtUtils-MakeMaker to CPAN version 7.48
Todd Rinaldo [Mon, 5 Oct 2020 19:40:53 +0000 (14:40 -0500)]
Update ExtUtils-MakeMaker to CPAN version 7.48

[DELTA]

7.48    Sun  4 Oct 11:39:22 BST 2020

    No changes since v7.47_12

7.47_12 Wed 30 Sep 16:19:25 BST 2020

    Bug fixes:
    - Make Mkbootstrap.pm strict

    Test fixes:
    - Skip the failing dynamic vs static tests on Win32

7.47_11 Sun 20 Sep 10:02:15 BST 2020

    Enhancements:
    - Hint file loading returned to using eval() as documented

7.47_10 Tue 15 Sep 19:30:32 BST 2020

    Test fixes:
    - BareV2String should also be skipped on v5.8.0

7.47_09 Mon 14 Sep 14:33:52 BST 2020

    Bug fixes:
    - Removed duplicated NOOP on pure_all

    Test fixes:
    - Remove tests for invalid version declarations
    - Make windows specific code for NoXS compile under strict

7.47_08 Mon 31 Aug 09:43:01 BST 2020

    Test fixes:
    - Resolved race conditions so the whole testsuite
      can be run in parallel safely again

    QA Fixes:
    - Added github action for Strawberry Perl
    - Added github action for Ubuntu/Linux

7.47_07 Mon  3 Aug 22:34:08 BST 2020

    Bug fixes:
    - Ensure all modules have 'use warnings'
    - Resolve revealed problems with warnings

    Test fixes:
    - Ensure all tests have strict and warnings
    - Resolve revealed problems with strict and warnings

7.47_06 Sat  1 Aug 14:36:00 BST 2020

    Bug fixes:
    - Refine archname to use abi_version and abi_revision

7.47_05 Fri 31 Jul 10:35:54 BST 2020

    Bug fixes:
    - use $^V instead of PERL_VERSION after Perl 5.10

7.47_04 Tue 28 Jul 19:34:00 BST 2020

    Test fixes:
    - Skip static tests on AIX and z/OS when in
      core

    QA fixes:
    - Added v5.30 and v5.32 to travis build

7.47_03 Wed  8 Jul 21:58:29 BST 2020

    Test fixes:
    - Correct skip count in MM_Cygwin.t

7.47_02 Tue  7 Jul 01:40:13 BST 2020

    OS390 Enhancements:
    - Added MM subclass for OS390
    - Override xs_make_dynamic_lib() for os390

7.47_01 Fri 26 Jun 10:55:42 BST 2020

    Bug fixes:
    - Sanitise provided VERSION and VERSION_FROM
      ( RT#132875 )

7.46  Tue 23 Jun 10:19:40 BST 2020

    No changes since v7.45_01

7.45_01 Thu 28 May 17:29:45 BST 2020

    Bug fixes:
    - Always link to $Config{libs} on cygwin

    Test fixes:
    - Fix testing how some versions should be parsed

    QA fixes:
    - Add libnsl-devel to Cygwin packages we need

6 months agoCustom timeout to detect conflicts
Nicolas R [Tue, 6 Oct 2020 16:18:30 +0000 (10:18 -0600)]
Custom timeout to detect conflicts

Give more time to the action detecting merge conflicts.

To detect conflicts we rely on the `mergeable` state
from GitHub API. GitHub uses an async job to compute
this state. We have no other way than patience before
being able to detect a conflict.

6 months agoAUTHORS: Fix capitalization of TAKAI Kousuke
Karl Williamson [Tue, 6 Oct 2020 15:34:41 +0000 (09:34 -0600)]
AUTHORS: Fix capitalization of TAKAI Kousuke

6 months agoUpdate Digest::MD5 to CPAN version 2.57
Todd Rinaldo [Mon, 5 Oct 2020 17:48:37 +0000 (12:48 -0500)]
Update Digest::MD5 to CPAN version 2.57

[DELTA]

2.58 Mon Oct 5 2020
- Update repo location.
- Update recent changelog entries. Let's see if that's enough to make metacpan happy.

2.57 Mon Oct 5 2020
- Merge change submitted to blead

2.56 Mon Oct 5 2020
- Github CI Perl 5.6..5.32
- Fixup MANIFEST/MANIFEST.SKIP/.gitignore
- Enable strict and warnings on all code. Drop vars.pm
- Preserve OPTIMIZE in hints/irix_6.pl
- Don't return context buffer if there isn't one.
- Silence possible loss of data warnings on Win32.

6 months agoDocument GvSVn
Karl Williamson [Thu, 27 Aug 2020 15:16:36 +0000 (09:16 -0600)]
Document GvSVn

and fill in details about GvSV

6 months agoCorrect build time warning for vxs.inc
Todd Rinaldo [Mon, 5 Oct 2020 22:56:04 +0000 (17:56 -0500)]
Correct build time warning for vxs.inc

Fixes #18202

This fix was present previously and was clobbered by a cpan sync of
version.pm It is now reported into that repo via
https://github.com/toddr/version.pm/pull/1

6 months agoUpdate Pod::Checker to CPAN version 1.74
Todd Rinaldo [Mon, 5 Oct 2020 19:23:23 +0000 (14:23 -0500)]
Update Pod::Checker to CPAN version 1.74

[DELTA]

+ CPAN#133312: Add strict compliance to Pod-Checker
  Thanks TODDR for the patch to make the code "use strict" compliant
+ CPAN#98326: Can we make “A non-empty Z<>” a warning and not an error
  This is a corner case... and since Pod::Simple anyway "nixes" anything
  inside Z<...>, this is a warning, not an error. Mind the caveats.
+ Added an additional test to achieve 100% statement coverage and added
  some POD to also have 100% POD coverage
+ Made all text files unixish, no CRLF

6 months agoMake Exporter strict and warnings compliant
Todd Rinaldo [Fri, 2 Oct 2020 19:12:23 +0000 (14:12 -0500)]
Make Exporter strict and warnings compliant

Update optree_specials since OptreeCheck.pm uses Exporter.

6 months agoMake FindBin strict and warnings compliant
Todd Rinaldo [Fri, 2 Oct 2020 21:01:07 +0000 (16:01 -0500)]
Make FindBin strict and warnings compliant

6 months agoMerge branch 't-a-k-oct-doc-fix' into blead
Karl Williamson [Sun, 4 Oct 2020 19:34:09 +0000 (13:34 -0600)]
Merge branch 't-a-k-oct-doc-fix' into blead

6 months agoTakai Kousuke is now a Perl author
Karl Williamson [Sun, 4 Oct 2020 18:06:19 +0000 (12:06 -0600)]
Takai Kousuke is now a Perl author