This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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.

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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?

5 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

5 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

5 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

5 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.

5 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.

5 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

5 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.

5 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

5 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.

5 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,

5 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.

5 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

5 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.

5 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.

5 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.

5 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.

5 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.

5 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

5 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.

5 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

5 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.

5 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

5 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.

5 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().

5 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

6 months agoperlfunc.pod - describe that "x" and "b" work the same way as
TAKAI Kousuke [Thu, 1 Oct 2020 09:15:55 +0000 (18:15 +0900)]
perlfunc.pod - describe that "x" and "b" work the same way as
"0x" and "0b" in oct()

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

6 months agoMerge branch 'oct-doc-fix' of github.com:t-a-k/perl5 into t-a-k-oct-doc-fix
Karl Williamson [Sun, 4 Oct 2020 17:43:10 +0000 (11:43 -0600)]
Merge branch 'oct-doc-fix' of github.com:t-a-k/perl5 into t-a-k-oct-doc-fix

6 months agomro.xs: Fix compiler warning
Karl Williamson [Sun, 4 Oct 2020 17:07:19 +0000 (11:07 -0600)]
mro.xs: Fix compiler warning

Fixes GH #18155

6 months agoPerl_av_extend_guts: use Zero() rather than a while loop to set NULLs
Richard Leach [Tue, 18 Aug 2020 18:28:04 +0000 (19:28 +0100)]
Perl_av_extend_guts: use Zero() rather than a while loop to set NULLs

6 months agoPerl_av_extend_guts: tabs converted to spaces; unnecessary nesting removed
Richard Leach [Mon, 17 Aug 2020 22:41:00 +0000 (23:41 +0100)]
Perl_av_extend_guts: tabs converted to spaces; unnecessary nesting removed

6 months agoignore cygwin files that cannot be stat()ed in t/op/stat.t
Christian Walde [Sat, 3 Oct 2020 23:41:54 +0000 (01:41 +0200)]
ignore cygwin files that cannot be stat()ed in t/op/stat.t

This is a fix for github cygwin vm smoke runs, specifically the issue in:
https://github.com/Perl/perl5/issues/18193

The original cause of the issue was an update github did to their windows
vm image with version 20200920.1, wherein the status of a console being
attached is now unclear.

This has affected other projects as well
(example: https://github.com/actions/virtual-environments/issues/1679 )
and, relevant for us, shows itself as /dev/con(in|out|sole) not being
stat()able under cygwin.

As such, the fix for the test is to, under cygwin, identify such files,
and remove them from the dataset altogether before checking stat operations
on them.

(As a small freebie, this also dumps diagnostics of the check on failure.)

6 months agoTest split on empty pattern with varying field counts
Richard Leach [Fri, 2 Oct 2020 16:31:33 +0000 (17:31 +0100)]
Test split on empty pattern with varying field counts

This builds on commit 04b729c025 to add additional coverage of the null
pattern split. Specifically:
* Check that trailing element behaviour (LIMIT > length) is correct - this
is not currently tested
* Check that scalar & non-scalar context produce similar counts across
the possible the LIMIT-to-string-length relationships
* Check that negative and zero LIMITs produce the expected output

6 months agoIn tests, fix @INC before loading more stuff
Hugo van der Sanden [Sat, 3 Oct 2020 17:32:22 +0000 (18:32 +0100)]
In tests, fix @INC before loading more stuff

6 months agoforcibly check the timing of the regex/alarm test in bulk
Christian Walde (Mithaldu) [Mon, 29 Jun 2020 04:59:00 +0000 (06:59 +0200)]
forcibly check the timing of the regex/alarm test in bulk

As per github #18129, github test VMs occasionally fail this alarm test.

This commit implements a loop that forces those systems to always fail the
test.

On cygwin running directly on iron this doesn't fail even after 1000
iterations.

However in order to make github smokes a little more useful for now, this
also marks it TODO.

6 months agoFix typos
Samanta Navarro [Sat, 3 Oct 2020 12:39:08 +0000 (12:39 +0000)]
Fix typos

For: https://github.com/Perl/perl5/pull/18201

Committer: Samanta Navarro is now a Perl author.

To keep 'make test_porting' happy:  Increment $VERSION in several files.
Regenerate uconfig.h via './perl -Ilib regen/uconfig_h.pl'.

6 months agoUpdate File-Temp to CPAN version 0.2311
Karen Etheridge [Sat, 3 Oct 2020 04:07:27 +0000 (21:07 -0700)]
Update File-Temp to CPAN version 0.2311

  [DELTA]

0.2311    2020-10-03 04:04:15Z
          - Fix new PERMS test so as to also pass on root (RT#133443)

0.2310    2020-09-26 17:37:56Z
          - add AppVeyor CI
          - Add PERMS options to create temp file with given file permissions
          - remove remaining uses of indirect object syntax (#34, Nicolas R)

6 months agopp_split: RXf_NULL branch - separate out scalar & UTF8 branches
Richard Leach [Fri, 2 Oct 2020 23:32:32 +0000 (00:32 +0100)]
pp_split: RXf_NULL branch - separate out scalar & UTF8 branches

6 months agoUpdate Porting/Maintainers.pl for recent version.pm update to 0.9928
Todd Rinaldo [Fri, 2 Oct 2020 22:00:40 +0000 (17:00 -0500)]
Update Porting/Maintainers.pl for recent version.pm update to 0.9928

6 months agoFix Makefile.PL in Unicode-Normalize to be strict/warnings compliant
Todd Rinaldo [Fri, 2 Oct 2020 21:41:45 +0000 (16:41 -0500)]
Fix Makefile.PL in Unicode-Normalize to be strict/warnings compliant

6 months agoregen/regcomp.pl: Extract repeated format to a scalar
Karl Williamson [Thu, 7 May 2020 03:33:54 +0000 (21:33 -0600)]
regen/regcomp.pl: Extract repeated format to a scalar

So if change, only have to change it once.

6 months agoregcomp.sym: Reorder some entries
Karl Williamson [Wed, 3 Jun 2020 22:05:23 +0000 (16:05 -0600)]
regcomp.sym: Reorder some entries

These are mostly used in regexec.c in three functions.  Two of the
functions use less than half the available ones, as case labels in a
switch() statement.  By moving all the ones used by those functions to
be nearly contiguous at the beginning, compilers can generate smaller
jump tables for the switch().

6 months agoregexec.c: White-space only
Karl Williamson [Thu, 4 Jun 2020 17:53:43 +0000 (11:53 -0600)]
regexec.c: White-space only

Adjust indentation as a result of the previous commit.

6 months agoS_find_byclass() Restructure bounds checking
Karl Williamson [Thu, 4 Jun 2020 16:59:02 +0000 (10:59 -0600)]
S_find_byclass() Restructure bounds checking

There are five \b variants.  Plain \b (without braces) is the outlier as
far as implementation.  This commit moves the handling of plain \b to
outside the switch that handles the others.  That allows the duplicate
code that previously existed to be consolidated into one occurrence.

6 months agoUpdate version to CPAN version 0.9928
Todd Rinaldo [Thu, 1 Oct 2020 17:01:44 +0000 (12:01 -0500)]
Update version to CPAN version 0.9928

[DELTA]

0.9927
  * Released 0.99_26 as 0.9927

0.99_26
  * Add usage error to pure-perl vcmp
  * Quote version classname in test for 5.8 compatability
  * Use base instead of parent for tests
  * Update ppport.h for future compatibility

0.99_25
  * Fix stack usage in vcmp method
  * Drop Perl 5.5 compatibility
  * Use PERL_VERSION_GE for Perl 7 compatibility
  * Fix typo in pod example for comparing versions.

6 months agoTest split on empty pattern with field count
Hugo van der Sanden [Fri, 2 Oct 2020 02:24:46 +0000 (03:24 +0100)]
Test split on empty pattern with field count

Prompted by GH #18188

6 months agoRevert "pp_split: RXf_NULL branch [...]"
Hugo van der Sanden [Fri, 2 Oct 2020 01:59:28 +0000 (02:59 +0100)]
Revert "pp_split: RXf_NULL branch [...]"

"pp_split: RXf_NULL branch - separate out (gimme_scalar), reduce
unnecessary work" was causing CPAN failures such as github #18188,
which appear to be down to a change of behaviour in 'split //, $s, 2'.

This reverts commit 59892837454d0ca367c3f7c83b2a646c57333b9a.