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

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

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

8 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

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

8 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

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

8 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

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

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

8 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

8 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

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

8 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

8 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

8 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

8 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

8 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

8 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

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

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

8 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).

8 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)

8 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

8 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

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

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

8 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

8 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

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

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

8 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

8 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

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

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

8 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

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

8 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

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

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

and fill in details about GvSV

8 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

8 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

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

8 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

8 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

8 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

8 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()

8 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

8 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

8 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

8 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

8 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

8 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.)

8 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

8 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

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

8 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'.

8 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)

8 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

8 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

8 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

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

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

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

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

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

8 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

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

8 months agoSleep before running auto-label-merge-conflicts
Nicolas R [Thu, 1 Oct 2020 20:52:05 +0000 (14:52 -0600)]
Sleep before running auto-label-merge-conflicts

Alternatively we could retry on errors.

This is a known limitation as we use the mergeable
status which is computed async by GitHub.

Upstream-URL: https://github.com/mschilde/auto-label-merge-conflicts/issues/37

8 months agoperlfunc.pod - describe that "x" and "b" work the same way as 18185/head
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()

8 months agoNote that CvGV is now documented
Karl Williamson [Wed, 30 Sep 2020 21:29:25 +0000 (15:29 -0600)]
Note that CvGV is now documented

8 months agoMake dist/Carp strict compliant.
Todd Rinaldo [Mon, 21 Sep 2020 20:38:19 +0000 (15:38 -0500)]
Make dist/Carp strict compliant.

8 months agoUpdate Module-Load to CPAN version 0.36
Todd Rinaldo [Wed, 30 Sep 2020 13:12:03 +0000 (08:12 -0500)]
Update Module-Load to CPAN version 0.36

[DELTA]

0.36    Tue Sep 29 11:55:01 BST 2020
* Fixed E<gt> in POD (https://github.com/jib/module-load/pull/6)
* Make Module-Load strict compliant (https://github.com/jib/module-load/pull/7)

8 months agoperlapi: croak_nocontext is preferred over plain croak
Karl Williamson [Mon, 7 Sep 2020 15:27:28 +0000 (09:27 -0600)]
perlapi: croak_nocontext is preferred over plain croak

When you are about to die, the time/space tradeoff may tilt towards space.

8 months agopp_split: RXf_NULL branch - separate out (gimme_scalar), reduce unnecessary work
Richard Leach [Sun, 9 Aug 2020 21:18:54 +0000 (22:18 +0100)]
pp_split: RXf_NULL branch - separate out (gimme_scalar), reduce unnecessary work

8 months agoErrno: Bump version
Karl Williamson [Tue, 29 Sep 2020 17:30:42 +0000 (11:30 -0600)]
Errno: Bump version

after 6b6e83fce2074294ac11d547c8a75bc106bebab9

8 months agoFix build on Haiku beta, set correct Haiku usrinc and locinc, add -fno-stack-protecto...
Thibault DUPONCHELLE [Fri, 12 Jun 2020 12:19:52 +0000 (14:19 +0200)]
Fix build on Haiku beta, set correct Haiku usrinc and locinc, add -fno-stack-protector to hints for amigaos.sh
and haiku.sh (and disable accordingly -fstack-protector* in Configure)

8 months agoAdd POD for AvARRAY.
Felipe Gasper [Fri, 25 Sep 2020 12:57:02 +0000 (08:57 -0400)]
Add POD for AvARRAY.

8 months agoDocument NV to int cast macros
Karl Williamson [Thu, 27 Aug 2020 12:49:48 +0000 (06:49 -0600)]
Document NV to int cast macros

8 months agoRemove Perl_av_top_index
Karl Williamson [Tue, 29 Sep 2020 06:48:19 +0000 (00:48 -0600)]
Remove Perl_av_top_index

I created this in 87306e0674dfe3af29804b4641347cd5ac9b0521, thinking it
was needed to preserve backward compatibility if someone were using this
instead of the macro.  But it turned out that there never was such a
function, it was inlined, and the name was S_av_top_index, so there is
no reason to create a new function that no one has ever been able to
call.  So just remove it, and let all accesses go through the macro

8 months agosv.h: sv_collxfrm didn't work properly
Karl Williamson [Tue, 22 Sep 2020 14:47:52 +0000 (08:47 -0600)]
sv.h: sv_collxfrm didn't work properly

It is supposed to be a wrapper for sv_collxfrm_flags, but it was just
calling sv_cmp_flags instead.  The consequences are none except under
'use locale' in which case you always got the C locale.  I did not add
tests, because it is really a pain to write portable locale tests, and
this doesn't seem to be much used.  In core the '_flags' form was always
used.

8 months agoFix return type in pod for HvNAMELEN_get
Karl Williamson [Tue, 22 Sep 2020 13:58:40 +0000 (07:58 -0600)]
Fix return type in pod for HvNAMELEN_get

37738dd69b1 set it incorrectly

8 months agoperlvar: Remove mention of WIFCONTINUED
Karl Williamson [Wed, 23 Sep 2020 23:21:33 +0000 (17:21 -0600)]
perlvar: Remove mention of WIFCONTINUED

This is not supported.

8 months agoDocument CvGV
Karl Williamson [Thu, 27 Aug 2020 15:22:02 +0000 (09:22 -0600)]
Document CvGV

8 months agoRevert "Update File-Temp to CPAN version 0.2310"
Sawyer X [Mon, 28 Sep 2020 18:15:35 +0000 (20:15 +0200)]
Revert "Update File-Temp to CPAN version 0.2310"

This reverts commit e11449403fd20c119b4b38b99079f993f24f15e8.

Please see GH #18172: https://github.com/Perl/perl5/issues/18172

8 months agoUpdate MIME-Base64 to CPAN version 3.16
Todd Rinaldo [Mon, 28 Sep 2020 16:15:26 +0000 (11:15 -0500)]
Update MIME-Base64 to CPAN version 3.16

[DELTA]

3.16 2020-09-26
  - Convert the build to Dist::Zilla to ensure we're releasing well built packages
  - Ensure all tests are using strict and warnings (thanks, Nicolas R).
  - Cleanup this change log
  - Add a .mailmap to cleanup our contributors list
  - Use `our` instead of `use vars`
  - Bump the required Perl version to v5.6.2

8 months agoutf8.pm: Add decoding example to pod
Karl Williamson [Sun, 27 Sep 2020 21:47:53 +0000 (15:47 -0600)]
utf8.pm: Add decoding example to pod

Thanks to Dagfinn Ilmari Mannsåker and H.Merijn Brand

8 months agoAPItest.xs: Silence compiler warning
Karl Williamson [Sun, 27 Sep 2020 21:46:36 +0000 (15:46 -0600)]
APItest.xs: Silence compiler warning

8 months agoSilence compiler warning
Karl Williamson [Sun, 27 Sep 2020 21:45:22 +0000 (15:45 -0600)]
Silence compiler warning

Spotted by James Keenan

8 months agoGH #12937: document perldb.ini
Sawyer X [Sun, 27 Sep 2020 20:26:03 +0000 (22:26 +0200)]
GH #12937: document perldb.ini

8 months agoperlcommunity - replace reference to Raku development with pointer to Raku community...
Dan Book [Sat, 26 Sep 2020 00:37:56 +0000 (20:37 -0400)]
perlcommunity - replace reference to Raku development with pointer to Raku community resources

8 months agoGH #18109: Detect failures with HTTP::Tiny in sync-with-cpan:
Sawyer X [Fri, 25 Sep 2020 22:29:24 +0000 (00:29 +0200)]
GH #18109: Detect failures with HTTP::Tiny in sync-with-cpan:

The original code uses HTTP::Tiny and if it fails, we try alternatives.

This isn't the best strategy because it might fail for legitimate
reasons and we need to separate whether it failed for a reason that
other user agents will fail or if it failed without crashing.

But, meh. We try to detect whether it succeeded in the function call
(as in, didn't crash) but failed in the request itself, and then we
surface it.

I've enabled an unavailable proxy configuration and tested it. This
is what it looks like:

    $ perl Porting/sync-with-cpan CPAN
    Cannot retrieve file: http://www.cpan.org/modules/02packages.details.txt
    Status: 599
    Reason: Internal Exception
    Content: Could not connect to 'proxy.xxx.yyy.com:8080': No address associated with hostname

Removing the proxy configuration, it succeeded.

8 months agoUpdate File-Temp to CPAN version 0.2310
Karen Etheridge [Sat, 26 Sep 2020 17:38:50 +0000 (10:38 -0700)]
Update File-Temp to CPAN version 0.2310

  [DELTA]

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)

8 months agoGH #17947: Clarify Perl modules versus library
Sawyer X [Fri, 25 Sep 2020 23:35:54 +0000 (01:35 +0200)]
GH #17947: Clarify Perl modules versus library

8 months agoRemove Parrot reference
Sawyer X [Fri, 25 Sep 2020 18:49:24 +0000 (20:49 +0200)]
Remove Parrot reference

8 months agoLast bits of Perl 6 -> Raku
Sawyer X [Fri, 25 Sep 2020 18:05:47 +0000 (20:05 +0200)]
Last bits of Perl 6 -> Raku

8 months agoAdd missing aTHX_
Hugo van der Sanden [Fri, 25 Sep 2020 14:02:03 +0000 (15:02 +0100)]
Add missing aTHX_

Somehow dropped in 49781baac3.

8 months agoAdd re::optimization()
Hugo van der Sanden [Wed, 16 Sep 2020 13:08:42 +0000 (14:08 +0100)]
Add re::optimization()

Given a compiled regexp object, this returns a hashref of the optimization
information discovered for it.

8 months agoreorder re.pm docs
Hugo van der Sanden [Thu, 17 Sep 2020 14:34:45 +0000 (15:34 +0100)]
reorder re.pm docs

regmust() is about internals, it should go at the end; move docs for
functions interrogating match results above it.

8 months agoUpdate Unicode-Collate to CPAN version 1.28
Todd Rinaldo [Wed, 23 Sep 2020 22:36:35 +0000 (17:36 -0500)]
Update Unicode-Collate to CPAN version 1.28

[DELTA]

1.28  Tue Sep 22 22:14:48 2020
 - DUCET is updated (for Unicode 12.1.0) as Collate/allkeys.txt.
 - The default UCA_Version is 41.
 - UCA_Version 38 & 40 (for Unicode 11.0.0 & 12.0.0) are also supported.
 - [rt.cpan.org #133311] Make Makefile.PL strict