This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
3 months agoBump copyright to 2021 in perl.c and README.
Steve Hay [Thu, 7 Jan 2021 10:23:06 +0000 (10:23 +0000)]
Bump copyright to 2021 in perl.c and README.

Check that porting/copyright.t is passing when run with --now:

  ../perl -I../lib porting/copyright.t --now

3 months agoAdd .gitignore to the list of files that are safe to ignore in make_ext.pl
Steve Hay [Thu, 7 Jan 2021 10:22:27 +0000 (10:22 +0000)]
Add .gitignore to the list of files that are safe to ignore in make_ext.pl

Without this the build on Windows was failing, presumably since cfb249103f:

FATAL - ..\make_ext.pl has Carp in the list of simple extensions, but it
now contains file '.gitignore' which we can't handle at ..\make_ext.pl
line 498.

3 months agoreinstate USE_LARGE_FILES for the packaged win32 config.h files
Tony Cook [Thu, 7 Jan 2021 00:32:36 +0000 (11:32 +1100)]
reinstate USE_LARGE_FILES for the packaged win32 config.h files

8b3db1a0c enabled this, but a change based on the old disable-
use-large-file rule in my d9f9953f74 disabled it, so re-enable it.

This prevents some build warnings when building miniperl.

3 months agoGenerate lib/Config.pod with unix format to be read with pod/buildtoc
Daniel Laügt [Tue, 5 Jan 2021 15:48:24 +0000 (16:48 +0100)]
Generate lib/Config.pod with unix format to be read with pod/buildtoc

3 months agoGDBM_File: minor changes
Sergey Poznyakoff [Wed, 6 Jan 2021 08:51:17 +0000 (10:51 +0200)]
GDBM_File: minor changes

* ext/GDBM_File/GDBM_File.xs (rcvr_errfun): Use dTHX
(gdbm_GDBM_version): Don't declare package.
* ext/GDBM_File/typemap: Map gdbm_count_t to T_UV.

* ext/GDBM_File/t/count.t: Use File::Temp to create db in
a temporary directory.
* ext/GDBM_File/t/fatal.t: Likewise.
* ext/GDBM_File/t/opt.t: Likewise.

3 months agoImprove GDBM_File
Sergey Poznyakoff [Thu, 24 Dec 2020 13:33:23 +0000 (15:33 +0200)]
Improve GDBM_File

This patch implements new functions and improves compatibility with
new versions of GDBM.

* ext/GDBM_File/GDBM_File.xs: Define interface methods for
functions in newer GDBM versions.
(GDBM_version): New static method.  Return the version number
(string in scalar, array of numbers in list context).  Provide
heurisics for determining the library version for GDBM prior
to 1.9.
(gdbm_close): Propagate return value from the library call.
(gdbm_DESTROY): Croak if closing the database fails.
(gdbm_UNTIE): New method.
(gdbm_FETCH): Check database validity. Croak if gdbm_fetch returns
error (except GDBM_ITEM_NOT_FOUND).
(gdbm_STORE,gdbm_DELETE): Likewise.
(gdbm_FIRSTKEY,gdbm_NEXTKEY): Likewise.
(gdbm_EXISTS): Check database validity.
(gdbm_errno): New function.
(gdbm_syserrno): New function.
(gdbm_strerror): New function.
(gdbm_clear_error): New function.
(gdbm_needs_recovery): New function.
(gdbm_recover): New function.
(gdbm_count): New function.
* ext/GDBM_File/typemap (gdbm_count_t): Map to T_COUNT.
* ext/GDBM_File/GDBM_File.pm: Document everything. Raise $VERSION.

* MANIFEST: Update.
* AUTHORS: Update.

3 months agopl2bat.pl now needs access to ExtUtils::PL2Bat
Tony Cook [Wed, 6 Jan 2021 23:11:30 +0000 (10:11 +1100)]
pl2bat.pl now needs access to ExtUtils::PL2Bat

This could cause failures in parallel builds.

3 months agofix a typo
Tony Cook [Wed, 6 Jan 2021 00:43:16 +0000 (11:43 +1100)]
fix a typo

3 months agofix issue references in tests from 282d9dfeb4
Hugo van der Sanden [Tue, 5 Jan 2021 15:33:54 +0000 (15:33 +0000)]
fix issue references in tests from 282d9dfeb4

Some cut-n-paste errors.

3 months agoUpdate comment after 5b354d2a8a
Hugo van der Sanden [Tue, 5 Jan 2021 15:26:53 +0000 (15:26 +0000)]
Update comment after 5b354d2a8a

The specified commit fixed a bug by treating ($x, undef) on the LHS
as 2 scalars; this comment should have been updated to match.

3 months agoDaniel Laügt is now a perl author
Tony Cook [Tue, 5 Jan 2021 00:03:18 +0000 (11:03 +1100)]
Daniel Laügt is now a perl author

3 months agoDefine RSFP_FILENO before using it
dlaugt [Mon, 4 Jan 2021 20:35:36 +0000 (21:35 +0100)]
Define RSFP_FILENO before using it

3 months agoexport the win32 symlink related symbols
Tony Cook [Mon, 4 Jan 2021 23:44:04 +0000 (10:44 +1100)]
export the win32 symlink related symbols

I couldn't make the build fail due to these missing exports
while I was developing the win32 symlink() support, but I did
have it fail while testing an unrelated change, and reproduced it,
so export them.

3 months agoAdd ChangeLog entry for IO version 1.45
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 22:18:57 +0000 (22:18 +0000)]
Add ChangeLog entry for IO version 1.45

3 months agoregen META.yml
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 17:43:00 +0000 (17:43 +0000)]
regen META.yml

3 months agoregen META.json
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 17:16:55 +0000 (17:16 +0000)]
regen META.json

3 months agoBump VERSION of every file in dist/IO to 1.45 consistently
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 15:10:27 +0000 (15:10 +0000)]
Bump VERSION of every file in dist/IO to 1.45 consistently

3 months agoAdd a unit test that IO::Socket constructor uses error variables as specified
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 15:07:10 +0000 (15:07 +0000)]
Add a unit test that IO::Socket constructor uses error variables as specified

3 months agoActually document the IO::Socket constructor's behaviour on failure, pointing out...
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 12:24:15 +0000 (12:24 +0000)]
Actually document the IO::Socket constructor's behaviour on failure, pointing out the $IO::Socket::errstr package var

3 months agoRemote note from IO::Socket::INET's docs about a change that predates even perl v5.6.0
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 12:04:21 +0000 (12:04 +0000)]
Remote note from IO::Socket::INET's docs about a change that predates even perl v5.6.0

3 months agoUpdate IO::Socket unit test for $IO::Socket::errstr
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 11:59:18 +0000 (11:59 +0000)]
Update IO::Socket unit test for $IO::Socket::errstr

3 months agoBump IO::Socket version number
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 11:25:54 +0000 (11:25 +0000)]
Bump IO::Socket version number

3 months agoHave IO's socket code write errors also into $IO::Socket::errstr
Paul "LeoNerd" Evans [Mon, 4 Jan 2021 11:25:32 +0000 (11:25 +0000)]
Have IO's socket code write errors also into $IO::Socket::errstr

3 months agoperldelta for 0f2beabb0803
Tony Cook [Mon, 4 Jan 2021 00:39:17 +0000 (11:39 +1100)]
perldelta for 0f2beabb0803

3 months agoadd a bareword_filehandles feature, which is enabled by default
Tony Cook [Mon, 8 Jun 2020 00:13:35 +0000 (10:13 +1000)]
add a bareword_filehandles feature, which is enabled by default

This disables use of bareword filehandles except for the built-in handles

3 months agoRemove trailing semicolon from ALIGNED_TYPE definition
Craig A. Berry [Sat, 2 Jan 2021 23:09:20 +0000 (17:09 -0600)]
Remove trailing semicolon from ALIGNED_TYPE definition

Every use of it already has its own semicolon, and duplicating it
can lead to warnings like this:

ALIGNED_TYPE(XPVGV);
...................^
%CC-I-EXTRASEMI, Extraneous semicolon.
at line number 894 in file D0:[craig.blead]sv.c;1

3 months agoRevert "Fix Time::HiRes compile probe on VMS"
Craig A. Berry [Sat, 2 Jan 2021 22:48:21 +0000 (16:48 -0600)]
Revert "Fix Time::HiRes compile probe on VMS"

This reverts commit 9eebd4ca7bb8610f51a27d96c12e9b1676958d55.

It turns out that probing for the existence of functions also
only generates informational messages (and thus a successful
exit status) when the function is missing, e.g.:

    ret = clock_nanosleep(CLOCK_REALTIME, 0, &ts1, &ts2);
..........^
%CC-I-IMPLICITFUNC, In this statement, the identifier "clock_nanosleep" is implicitly declared as a function.
at line number 13 in file D0:[craig.blead.dist.Time-HiRes]try.c;1

And we aren't linking in Time::HiRes's probes on VMS since making
that work both in and out of core in a general way is no small
feat.

So we go back to requiring no compiler messages in the test
compiles.

3 months agosprintf does not display 54 digits on VMS
Craig A. Berry [Sat, 2 Jan 2021 22:37:39 +0000 (16:37 -0600)]
sprintf does not display 54 digits on VMS

It displays 17, which is what Perl and apparently just about
everybody else used to do. I'm not convinced there was ever a
bug here as no standard I can find says you have to display 3
times as many digits as are necessary to provide a non-lossy
round trip from double to character and back.

3 months agoSignatures: add argument counts to count-mismatch error messages.
Felipe Gasper [Tue, 29 Dec 2020 08:22:40 +0000 (03:22 -0500)]
Signatures: add argument counts to count-mismatch error messages.

Issue #18405

3 months agoDocument various CopSTASHfoo functions
Karl Williamson [Sat, 29 Aug 2020 16:55:47 +0000 (10:55 -0600)]
Document various CopSTASHfoo functions

3 months agoUse perl.h versions of PERL_UNUSED_foo in XSUB.h
Karl Williamson [Sat, 26 Dec 2020 15:44:08 +0000 (08:44 -0700)]
Use perl.h versions of PERL_UNUSED_foo in XSUB.h

This commit was applied to perl.h, but not to XSUB.h:

commit a730e3f230f364cffe49370f816f975ae7c9c403
Author: Jarkko Hietaniemi <jhi@iki.fi>
Date:   Thu Sep 4 09:08:33 2014 -0400

Use sizeof() in UNUSED_ARG and UNUSED_VAR to avoid accessing the values.

The values might even be uninitialized in the case of PERL_UNUSED_VAR.

3 months agoregexec.c: Fix assertion failure GH #18451
Karl Williamson [Sat, 2 Jan 2021 22:42:25 +0000 (15:42 -0700)]
regexec.c: Fix assertion failure GH #18451

This was caused by copying too many characters for the size of the
buffer.  Only one character is needed.

3 months agoregexec.c: Clarify comments
Karl Williamson [Sat, 2 Jan 2021 19:45:09 +0000 (12:45 -0700)]
regexec.c: Clarify comments

3 months agoregexp.h: Clarify how a computed value is derived.
Karl Williamson [Sat, 2 Jan 2021 17:18:26 +0000 (10:18 -0700)]
regexp.h: Clarify how a computed value is derived.

3 months agoDelete Porting/cherrymaint
James E Keenan [Fri, 1 Jan 2021 18:31:37 +0000 (13:31 -0500)]
Delete Porting/cherrymaint

Per discussion in https://github.com/Perl/perl5/issues/18028

3 months agoUse SSize_t for read lock counter
Karl Williamson [Thu, 31 Dec 2020 16:08:21 +0000 (09:08 -0700)]
Use SSize_t for read lock counter

We have tests to make sure this doesn't go negative, but wrongly
declared the variable as unsigned.

Spotted by Craig Berry.

3 months agoop.c: croak on "my $_" when "use utf8" is in effect
Tomasz Konojacki [Wed, 30 Dec 2020 13:03:02 +0000 (14:03 +0100)]
op.c: croak on "my $_" when "use utf8" is in effect

Fixes #18449

3 months agoFix buggy fc() in Turkish locale
Karl Williamson [Wed, 30 Dec 2020 12:55:08 +0000 (05:55 -0700)]
Fix buggy fc() in Turkish locale

When Turkish handling was added, fc() wasn't properly updated

3 months agoDocument regexp, regmatch_info
Karl Williamson [Sat, 17 Oct 2020 13:26:56 +0000 (07:26 -0600)]
Document regexp, regmatch_info

3 months agoperlapi: link to SvPV
Karl Williamson [Thu, 8 Oct 2020 20:20:48 +0000 (14:20 -0600)]
perlapi: link to SvPV

3 months agoperlapi: Consolidate newRV and newRV_inc pod
Karl Williamson [Thu, 8 Oct 2020 19:53:47 +0000 (13:53 -0600)]
perlapi: Consolidate newRV and newRV_inc pod

3 months agoperldelta.pod: Document "Lost precision" warning changes
TAKAI Kousuke [Tue, 29 Dec 2020 15:03:19 +0000 (00:03 +0900)]
perldelta.pod: Document "Lost precision" warning changes

[GH #18333, #18388]

3 months agosv.c: Delete irrelevant preprocessor conditionals
TAKAI Kousuke [Mon, 28 Dec 2020 17:46:30 +0000 (02:46 +0900)]
sv.c: Delete irrelevant preprocessor conditionals

66435b24ea changed Perl_isnan to Perl_isinfnan, but I forgot to update
corresponding preprocessor conditionals.

3 months agosv.c: Suppress imprecision warnings on Inf.
TAKAI Kousuke [Tue, 22 Dec 2020 18:56:12 +0000 (03:56 +0900)]
sv.c: Suppress imprecision warnings on Inf.

This commit will partially revert the effect of the commit
c33ee94ba2086d48e3750cfdeb51402b61bb1ac7. [GH #18388]

3 months agosv.c: more imprecision warnings on increment/decrement
TAKAI Kousuke [Mon, 7 Dec 2020 14:47:07 +0000 (23:47 +0900)]
sv.c: more imprecision warnings on increment/decrement

Previously, imprecision warnings on increment (Lost precision when
incrementing %f by 1) were only issued on positive finite values,
and, on decrement, only issued on negative finite values.
This commit extends this warnings on both sign and infinite values.

This fixes GH #18333.

3 months agoMerge branch 'perlgov-related-edits' into blead
Ricardo Signes [Mon, 28 Dec 2020 18:43:24 +0000 (13:43 -0500)]
Merge branch 'perlgov-related-edits' into blead

3 months agopod: update a few documents for perlgov changes 18434/head
Ricardo Signes [Thu, 24 Dec 2020 03:28:44 +0000 (22:28 -0500)]
pod: update a few documents for perlgov changes

3 months agoperlapi: More fully document gv_stashpvn
Karl Williamson [Sat, 29 Aug 2020 18:25:00 +0000 (12:25 -0600)]
perlapi: More fully document gv_stashpvn

3 months agoperlapi: Turn reference to SvSHARED_HASH into a link
Karl Williamson [Thu, 27 Aug 2020 21:23:41 +0000 (15:23 -0600)]
perlapi: Turn reference to SvSHARED_HASH into a link

3 months agoMerge branch 'sisyphus-gcvt' into blead
Karl Williamson [Sun, 27 Dec 2020 19:10:40 +0000 (12:10 -0700)]
Merge branch 'sisyphus-gcvt' into blead

3 months agowin32/GNUmakefile - define __USE_MINGW_ANSI_STDIO by default
sisyphus [Sat, 7 Nov 2020 01:05:42 +0000 (12:05 +1100)]
win32/GNUmakefile - define __USE_MINGW_ANSI_STDIO by default

3 months agowin32/makefile.mk - define __USE_MINGW_ANSI_STDIO by default
sisyphus [Sat, 7 Nov 2020 01:05:14 +0000 (12:05 +1100)]
win32/makefile.mk - define __USE_MINGW_ANSI_STDIO by default

3 months agoAPItest.xs - suppress valid -Wformat-overflow warning (Issue 18170)
sisyphus [Tue, 20 Oct 2020 23:54:22 +0000 (10:54 +1100)]
APItest.xs - suppress valid -Wformat-overflow warning (Issue 18170)

3 months agot/op/sprintf2.t - append new test (Issue 18170)
sisyphus [Tue, 20 Oct 2020 23:53:38 +0000 (10:53 +1100)]
t/op/sprintf2.t - append new test (Issue 18170)

3 months agosv.c - suppress bogus -Wformat-overflow warnings (Issue 18170)
sisyphus [Tue, 20 Oct 2020 23:52:53 +0000 (10:52 +1100)]
sv.c - suppress bogus -Wformat-overflow warnings (Issue 18170)

3 months agoConfigure - test that gcvt/qgcvt are not buggy (Issue 18170)
sisyphus [Tue, 20 Oct 2020 23:52:11 +0000 (10:52 +1100)]
Configure - test that gcvt/qgcvt are not buggy (Issue 18170)

3 months agopod/buildtoc: documentation in POD format
James E Keenan [Sun, 20 Dec 2020 00:10:41 +0000 (19:10 -0500)]
pod/buildtoc:  documentation in POD format

In partial satisfaction of https://github.com/Perl/perl5/issues/18413

3 months agoAvoid indirect object notation
James E Keenan [Mon, 21 Dec 2020 20:26:37 +0000 (15:26 -0500)]
Avoid indirect object notation

Small touch-ups to inline documentation.

Shorten spelling of one nested 'if' block.

3 months agolib/B/Deparse-core.t: Tidy leading whitespace
James E Keenan [Mon, 21 Dec 2020 20:17:18 +0000 (15:17 -0500)]
lib/B/Deparse-core.t: Tidy leading whitespace

The loops-within-loops structure of this program means that irregular
leading whitespace makes it difficult to follow the control flow.

Convert leading tabs to whitespace.  Rebreak some lines to show
structure of nested ternaries more clearly.  Join short lines in a
couple of instances.

3 months agoPOSIX.xs: Use Perl_signbit unconditionally for POSIX::signbit().
TAKAI Kousuke [Sun, 27 Dec 2020 12:42:59 +0000 (21:42 +0900)]
POSIX.xs: Use Perl_signbit unconditionally for POSIX::signbit().

Previously POSIX::signbit() had a fallback implementation for the case
Perl_signbit is not defined, but this is apparently broken
because it returns wrongly non-zero (true) value for signbit(+0.0).
Currently Perl_signbit is always defined (either as a macro or as
a function), so it can be used unconditionally.

Additionally, unused macro c99_signbit is deleted, which is also
apparently broken because there is no signbitl() in C99.

3 months agoperlapi: Two references aren't yet links
Karl Williamson [Sun, 27 Dec 2020 17:26:57 +0000 (10:26 -0700)]
perlapi: Two references aren't yet links

This was causing a podcheck error

3 months agoDocument gv_autoload4
Karl Williamson [Thu, 27 Aug 2020 15:18:53 +0000 (09:18 -0600)]
Document gv_autoload4

3 months agoDocument safesys...alloc fcns; safesysfree
Karl Williamson [Thu, 27 Aug 2020 15:40:53 +0000 (09:40 -0600)]
Document safesys...alloc fcns; safesysfree

3 months agoDocument gv_fetchfile(_flags)?
Karl Williamson [Thu, 27 Aug 2020 15:11:23 +0000 (09:11 -0600)]
Document gv_fetchfile(_flags)?

3 months agoperlapi: Document line_t
Karl Williamson [Sat, 17 Oct 2020 12:52:08 +0000 (06:52 -0600)]
perlapi: Document line_t

3 months agoUse explicit %empty
Branislav Zahradník [Fri, 11 Dec 2020 16:19:22 +0000 (17:19 +0100)]
Use explicit %empty

3 months agoCleanup remnants of 'KEY_err' removal
Branislav Zahradník [Fri, 11 Dec 2020 16:19:21 +0000 (17:19 +0100)]
Cleanup remnants of 'KEY_err' removal

f23102e2d6 removed DOROP token (KEY_err) but related grammar remained

3 months agoDistinguish C- and perly- literals - PERLY_DOLLAR
Branislav Zahradník [Fri, 11 Dec 2020 16:19:20 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_DOLLAR

3 months agoDistinguish C- and perly- literals - PERLY_SLASH
Branislav Zahradník [Fri, 11 Dec 2020 16:19:19 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_SLASH

3 months agoDistinguish C- and perly- literals - PERLY_STAR
Branislav Zahradník [Fri, 11 Dec 2020 16:19:18 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_STAR

3 months agoDistinguish C- and perly- literals - PERLY_PAREN_CLOSE
Branislav Zahradník [Fri, 11 Dec 2020 16:19:17 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_PAREN_CLOSE

3 months agoDistinguish C- and perly- literals - PERLY_PAREN_OPEN
Branislav Zahradník [Fri, 11 Dec 2020 16:19:16 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_PAREN_OPEN

3 months agoDistinguish C- and perly- literals - PERLY_PERCENT_SIGN
Branislav Zahradník [Fri, 11 Dec 2020 16:19:15 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_PERCENT_SIGN

3 months agoDistinguish C- and perly- literals - PERLY_SNAIL
Branislav Zahradník [Fri, 11 Dec 2020 16:19:14 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_SNAIL

3 months agoDistinguish C- and perly- literals - PERLY_PLUS
Branislav Zahradník [Fri, 11 Dec 2020 16:19:12 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_PLUS

3 months agoDistinguish C- and perly- literals - PERLY_MINUS
Branislav Zahradník [Fri, 11 Dec 2020 16:19:11 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_MINUS

3 months agoDistinguish C- and perly- literals - PERLY_QUESTION_MARK
Branislav Zahradník [Fri, 11 Dec 2020 16:19:10 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_QUESTION_MARK

3 months agoDistinguish C- and perly- literals - PERLY_COLON
Branislav Zahradník [Fri, 11 Dec 2020 16:19:09 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_COLON

3 months agoDistinguish C- and perly- literals - PERLY_TILDE
Branislav Zahradník [Fri, 11 Dec 2020 16:19:08 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_TILDE

3 months agoDistinguish C- and perly- literals - PERLY_EXCLAMATION_MARK
Branislav Zahradník [Fri, 11 Dec 2020 16:19:07 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_EXCLAMATION_MARK

3 months agoDistinguish C- and perly- literals - PERLY_COMMA
Branislav Zahradník [Fri, 11 Dec 2020 16:19:06 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_COMMA

3 months agoDistinguish C- and perly- literals - PERLY_AMPERSAND
Branislav Zahradník [Fri, 11 Dec 2020 16:19:05 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_AMPERSAND

3 months agoDistinguish C- and perly- literals - PERLY_EQUAL_SIGN
Branislav Zahradník [Fri, 11 Dec 2020 16:19:04 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_EQUAL_SIGN

3 months agoDistinguish C- and perly- literals - PERLY_DOT
Branislav Zahradník [Fri, 11 Dec 2020 16:19:03 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_DOT

3 months agoDistinguish C- and perly- literals - PERLY_SEMICOLON
Branislav Zahradník [Fri, 11 Dec 2020 16:19:02 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_SEMICOLON

3 months agoDistinguish C- and perly- literals - PERLY_BRACKET_CLOSE
Branislav Zahradník [Fri, 11 Dec 2020 16:19:01 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_BRACKET_CLOSE

3 months agoDistinguish C- and perly- literals - PERLY_BRACKET_OPEN
Branislav Zahradník [Fri, 11 Dec 2020 16:19:00 +0000 (17:19 +0100)]
Distinguish C- and perly- literals - PERLY_BRACKET_OPEN

3 months agoDistinguish C- and perly- literals - PERLY_BRACE_CLOSE
Branislav Zahradník [Fri, 11 Dec 2020 16:18:59 +0000 (17:18 +0100)]
Distinguish C- and perly- literals - PERLY_BRACE_CLOSE

3 months agoDistinguish C- and perly- literals - PERLY_BRACE_OPEN
Branislav Zahradník [Fri, 11 Dec 2020 16:18:57 +0000 (17:18 +0100)]
Distinguish C- and perly- literals - PERLY_BRACE_OPEN

regardless of the fact that both have same value
their meaning is different and should not be mixed

3 months agoembed.fnc: Mark gv_check as internal
Karl Williamson [Fri, 24 Jul 2020 14:09:26 +0000 (08:09 -0600)]
embed.fnc: Mark gv_check as internal

The purpose of this function is to raise a parse warning; not something
something outside core should be doing.

3 months agoDocument SvPV_renew
Karl Williamson [Wed, 22 Jul 2020 15:41:34 +0000 (09:41 -0600)]
Document SvPV_renew

3 months agoProvide code example for 'my' declared in initialization of 'for' loop
James E Keenan [Thu, 5 Nov 2020 02:11:53 +0000 (21:11 -0500)]
Provide code example for 'my' declared in initialization of 'for' loop

For: https://github.com/Perl/perl5/issues/18260

3 months agoList all programs which require regen/embed_lib.pl
James E Keenan [Sun, 27 Dec 2020 00:00:48 +0000 (19:00 -0500)]
List all programs which require regen/embed_lib.pl

3 months agonewSVsv_flags is now documented
Karl Williamson [Fri, 25 Dec 2020 01:09:13 +0000 (18:09 -0700)]
newSVsv_flags is now documented

3 months agoFix Time::HiRes compile probe on VMS
Craig A. Berry [Thu, 24 Dec 2020 14:48:47 +0000 (08:48 -0600)]
Fix Time::HiRes compile probe on VMS

The probe was checking the severity bits of the compiler exit
status and requiring the value to be 1, which is what they are
for SS$_NORMAL. But actually any true (odd) value is considered
successful. So, for example, if the compile succeeds but emits
"informational messages" that do not rise to the level of warnings
or errors, the severity bits have a value of 3, not 1. The probe
should not fail (and end up halting the build) in this case, so
allow any successful value.

3 months agoDon't define Perl_regcurly in re extension
Craig A. Berry [Thu, 24 Dec 2020 14:41:13 +0000 (08:41 -0600)]
Don't define Perl_regcurly in re extension

This makes the linker have to decide (or guess) which of the
identically-named symbols to include.  The VMS linker refuses
and throws a multiply-defined symbol error.

3 months agopod_rules.pl: document (in a comment) --tap
Ricardo Signes [Thu, 24 Dec 2020 16:32:49 +0000 (11:32 -0500)]
pod_rules.pl: document (in a comment) --tap

3 months agoTest regexp optimizations for substrings
Hugo van der Sanden [Sat, 14 Nov 2020 12:42:31 +0000 (12:42 +0000)]
Test regexp optimizations for substrings

3 months agoBetter skipping for regexp optimization tests
Hugo van der Sanden [Fri, 13 Nov 2020 16:15:10 +0000 (16:15 +0000)]
Better skipping for regexp optimization tests

Say why we're skipping; skip min/max tests for substrings if we didn't
get the substring; skip checking test for substrings if we didn't get
the substring we expect to be checked.

3 months agoNo plan for regexp optimization tests
Hugo van der Sanden [Fri, 13 Nov 2020 16:13:52 +0000 (16:13 +0000)]
No plan for regexp optimization tests

With a varying number of tests per data line, the plan is too much work
to maintain.