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

3 years 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

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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.

3 years 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().

3 years 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

3 years 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

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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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.

3 years 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.

3 years 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).

3 years 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)

3 years 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

3 years 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

3 years 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.

3 years 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.

3 years 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

3 years 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

3 years 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.

3 years 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.

3 years 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

3 years 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

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

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

3 years 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

3 years 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.

3 years 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

3 years 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.

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

and fill in details about GvSV

3 years 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

3 years 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

3 years 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.

3 years 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

3 years 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

3 years 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

3 years 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()

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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.)

3 years 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

3 years 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

3 years 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.

3 years 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'.

3 years 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)

3 years 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

3 years 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

3 years 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

3 years 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.

3 years 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().

3 years 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.

3 years 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.

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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()

3 years 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

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

3 years 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)

3 years 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.

3 years 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

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

after 6b6e83fce2074294ac11d547c8a75bc106bebab9

3 years 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)

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

3 years 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

3 years 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

3 years 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.

3 years 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

3 years 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.

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

3 years 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

3 years 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

3 years 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

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

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

Spotted by James Keenan

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

3 years 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

3 years 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.

3 years 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)

3 years 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

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

3 years 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