This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
9 years agot/run/locale.t: Fix typos
Karl Williamson [Fri, 16 Jan 2015 04:20:54 +0000 (21:20 -0700)]
t/run/locale.t: Fix typos

9 years ago Update Devel-PPPort to CPAN version 3.28
Matthew Horsfall [Fri, 16 Jan 2015 12:53:16 +0000 (07:53 -0500)]
Update Devel-PPPort to CPAN version 3.28

      [DELTA]

    3.28 - 2015-01-16

        * Update MANIFEST for regened base/todo files

9 years agoUpdate Unicode-Collate to CPAN version 1.10
Chris 'BinGOs' Williams [Fri, 16 Jan 2015 10:18:41 +0000 (10:18 +0000)]
Update Unicode-Collate to CPAN version 1.10

  [DELTA]

1.10  Thu Jan 15 21:37:58 2015
    - XS: const &c [rt.cpan.org #101170] [PATCH]
    - Makefile.PL: [rt.cpan.org #101500] [PATCH]

9 years agoUpdate Test-Harness to CPAN version 3.35
Chris 'BinGOs' Williams [Fri, 16 Jan 2015 10:17:25 +0000 (10:17 +0000)]
Update Test-Harness to CPAN version 3.35

  [DELTA]

3.35    2015-01-14
        - Fix prove --version to actually print the version (Leon Timmermans, #101216)
        - Add --version to usage message (Leon Timmermans, #101215)

9 years agoperl5216delta correction - IO::Socket has connected(), not isconnected()
Steve Hay [Thu, 15 Jan 2015 13:43:35 +0000 (13:43 +0000)]
perl5216delta correction - IO::Socket has connected(), not isconnected()

9 years agoepigraphs - Fix a broken I<>
Steve Hay [Thu, 15 Jan 2015 09:01:38 +0000 (09:01 +0000)]
epigraphs - Fix a broken I<>

9 years agoepigraphs - Consistent -RCn style
Steve Hay [Thu, 15 Jan 2015 08:57:10 +0000 (08:57 +0000)]
epigraphs - Consistent -RCn style

9 years agoepigraphs - Sort by Perl version number
Steve Hay [Thu, 15 Jan 2015 08:56:33 +0000 (08:56 +0000)]
epigraphs - Sort by Perl version number

This was originally the case, then resorted chronologically by commit
2831a86cee, then back to version order by commit c7bed2601e, since when
some inconsistencies have crept back in (entries inserted in chronological
order again).

I really don't care what order it is in, just so long as there is
consistency in whatever order is chosen.

9 years agoepigraphs - Remove trailing whitespace
Steve Hay [Thu, 15 Jan 2015 08:31:06 +0000 (08:31 +0000)]
epigraphs - Remove trailing whitespace

9 years agoepigraphs - Consistent quoting of titles
Steve Hay [Thu, 15 Jan 2015 08:28:08 +0000 (08:28 +0000)]
epigraphs - Consistent quoting of titles

9 years agoepigraphs - No need to repeat authors/titles after the epigraphs
Steve Hay [Wed, 14 Jan 2015 18:43:12 +0000 (18:43 +0000)]
epigraphs - No  need to repeat authors/titles after the epigraphs

9 years agoepigraphs - Standardize two-space indent for poetry etc; no indent for prose
Steve Hay [Wed, 14 Jan 2015 18:33:36 +0000 (18:33 +0000)]
epigraphs - Standardize two-space indent for poetry etc; no indent for prose

9 years agoepigraphs - Remove use of =over/=back in six cases since no others do that
Steve Hay [Wed, 14 Jan 2015 18:07:36 +0000 (18:07 +0000)]
epigraphs - Remove use of =over/=back in six cases since no others do that

9 years agoepigraphs - No need to break up long L<> lines
Steve Hay [Wed, 14 Jan 2015 18:03:17 +0000 (18:03 +0000)]
epigraphs - No need to break up long L<> lines

9 years agoepigraphs - Prefer http://www.nntp.perl.org/ links, and fill in a missing one
Steve Hay [Wed, 14 Jan 2015 17:59:58 +0000 (17:59 +0000)]
epigraphs - Prefer nntp.perl.org/ links, and fill in a missing one

Also correct a couple more dates in the process, and fill in a missing
epigraph.

9 years agoepigraphs - Correct some dates and links and fill in a couple of missing names
Steve Hay [Wed, 14 Jan 2015 13:40:53 +0000 (13:40 +0000)]
epigraphs - Correct some dates and links and fill in a couple of missing names

9 years agoAdd text about EBCDIC to pods: perlhack* perlport
Karl Williamson [Wed, 14 Jan 2015 20:45:40 +0000 (13:45 -0700)]
Add text about EBCDIC to pods: perlhack* perlport

9 years agoperlhacktips: Fix typo
Karl Williamson [Wed, 14 Jan 2015 18:16:50 +0000 (11:16 -0700)]
perlhacktips: Fix typo

9 years agot/charset_tools.pl: Improve function names
Karl Williamson [Wed, 14 Jan 2015 18:01:21 +0000 (11:01 -0700)]
t/charset_tools.pl: Improve function names

'latin1_to_native' and 'native_to_latin1' actually operate on all code
points, not just the ranges implied by their names.  This commit changes
the names to reflect that, to 'uni_to_native' and 'native_to_uni'.
The old names have only been available since 5.21, so there is no
backcompat issue.

9 years agoUse more universal function in tests where makes sense
Karl Williamson [Wed, 14 Jan 2015 17:54:31 +0000 (10:54 -0700)]
Use more universal function in tests where makes sense

By using a different function that is just as applicable, or more so, in
these cases, we can avoid having to require a file.

The functions that translate code points between character sets are
always available and just as appropriate for the uses in the three tests
t/re/fold_grind.t, t/re/reg_fold.t, and lib/unicore/TestProp.pl.  Change
to use it instead of the functions that take string inputs.  This is
slightly cleaner, as the file that contains it no longer has to be
'required'.  And in some of the cases the code point function is a
better choice, as there had to be translation between chr and ord
before.

9 years agot/test.pl: Rmv obsolete comment
Karl Williamson [Wed, 14 Jan 2015 17:51:09 +0000 (10:51 -0700)]
t/test.pl: Rmv obsolete comment

The referred-to functions have been moved to a separate file, and are no
longer contained in this one.

9 years agoUpdate Devel-PPPort to CPAN version 3.27
Chris 'BinGOs' Williams [Wed, 14 Jan 2015 16:49:58 +0000 (16:49 +0000)]
Update Devel-PPPort to CPAN version 3.27

  [DELTA]

3.27 - 2015-01-13

    * Regen base and todo files.
    * Fix isASCII and isCNTRL for <5.6.0
    * Other minor fixups.

    (Thanks to mhx for all of the work on this release)

9 years agoUpdate Getopt-Long to CPAN version 2.43
Chris 'BinGOs' Williams [Wed, 14 Jan 2015 16:07:44 +0000 (16:07 +0000)]
Update Getopt-Long to CPAN version 2.43

  [DELTA]

Changes in version 2.43
-----------------------

* Fix bug https://rt.cpan.org/Ticket/Display.html?id=92462

* Implement enhancement
  https://rt.cpan.org/Public/Bug/Display.html?id=101537

* Fix the Getopt::Long part of bug
  https://rt.cpan.org/Ticket/Display.html?id=100335

9 years agouname -r works on MINIX as well
Chris 'BinGOs' Williams [Wed, 14 Jan 2015 14:12:22 +0000 (14:12 +0000)]
uname -r works on MINIX as well

9 years agolocale.c: Add comment; move #if
Karl Williamson [Tue, 13 Jan 2015 19:53:34 +0000 (12:53 -0700)]
locale.c: Add comment; move #if

A better comment is added.  The #if is moved so that the rare
compilation that doesn't use LC_CTYPE, no unused variable warning would
be generated.

9 years agoMove unlikely executed macro to function
Karl Williamson [Tue, 13 Jan 2015 05:31:07 +0000 (22:31 -0700)]
Move unlikely executed macro to function

The bulk of this macro is extremely rarely executed, so it makes sense
to optimize for space, as it is called from a fair number of places, and
move as much as possible to a single function.

For whatever it's worth, on my system with my typical compilation
options, including -O0, the savings was 19640 bytes in regexec.o, 4528
in utf8.o, at a cost of 1488 in locale.o.

9 years agolocale.c: Fix memory leak.
Karl Williamson [Tue, 13 Jan 2015 05:01:53 +0000 (22:01 -0700)]
locale.c: Fix memory leak.

I spotted this in code review.  I didn't add a test for it, because to
expose the much more serious bug fixed by the previous commit, I had to
temporarily change the C code to force these extremely
unlikely-to-be-taken branches to execute.

9 years agosv.c: Fix cloning of interp variable
Karl Williamson [Tue, 13 Jan 2015 05:06:34 +0000 (22:06 -0700)]
sv.c: Fix cloning of interp variable

This should have been cloned by sv_dup_inc.  I don't know why it didn't
fail outside of Win32, but fail there it did, spectacularly, but only
when I temporarily change some C code to force execution of the affected
code, which only gets executed for problematic locales, which may very
well not exist on most machines.

9 years agot/re/reg_mesg.t: White-space only
Karl Williamson [Mon, 12 Jan 2015 22:21:51 +0000 (15:21 -0700)]
t/re/reg_mesg.t: White-space only

Indent, and wrap lines

9 years agoregcomp.c: Fix comment typos
Karl Williamson [Mon, 12 Jan 2015 22:13:02 +0000 (15:13 -0700)]
regcomp.c: Fix comment typos

9 years agodquote_static.c: Rmv obsolete comment
Karl Williamson [Mon, 12 Jan 2015 22:12:24 +0000 (15:12 -0700)]
dquote_static.c: Rmv obsolete comment

9 years agoAdd 'strict' subpragma to 'use re'
Karl Williamson [Mon, 5 Jan 2015 20:17:58 +0000 (13:17 -0700)]
Add 'strict' subpragma to 'use re'

This subpragma is to allow p5p to add warnings/errors for regex patterns
without having to worry about backwards compatibility.  And it allows
users who want to have the latest checks on their code to do so.  An
experimental warning is raised by default when it is used, not because
the subpragma might go away, but because what it catches is subject to
change from release-to-release, and so the user is acknowledging that
they waive the right to backwards compatibility.   I will be working in
the near term to make some changes to what is detected by this.

Note that there is no indication in the pattern stringification that it
was compiled under this.  This means I didn't have to figure out how to
stringify it.  It is fine because using this doesn't affect what the
pattern gets compiled into, if successful.  And interpolating the
stringified pattern under either strict or non-strict should both just
work.

9 years agoregcomp.c: Add 'strict' parameter to S_regclass()
Karl Williamson [Mon, 5 Jan 2015 18:59:04 +0000 (11:59 -0700)]
regcomp.c: Add 'strict' parameter to S_regclass()

This function has the capability to do strict checking, with the
variable 'strict', but it is initialized based on another parameter's
value.  This commit causes 'strict' to be passed in, so it is
independent of other parameters.

9 years agoReserve a bit for 'the re strict subpragma.
Karl Williamson [Mon, 5 Jan 2015 04:29:10 +0000 (21:29 -0700)]
Reserve a bit for 'the re strict subpragma.

This is another step in the process

9 years agoAdd new warnings category for "use re 'strict'"
Karl Williamson [Sun, 4 Jan 2015 16:55:35 +0000 (09:55 -0700)]
Add new warnings category for "use re 'strict'"

This is a step in the process of adding that subpragma.

9 years agoOutput warning in qr// only once
Karl Williamson [Sun, 11 Jan 2015 17:06:01 +0000 (10:06 -0700)]
Output warning in qr// only once

This warning is being output in both passes of pattern compilation

9 years agoConsistent output from core-cpan-diff
Steve Hay [Tue, 13 Jan 2015 17:45:05 +0000 (17:45 +0000)]
Consistent output from core-cpan-diff

It uses 'Perl:', not 'perl:', a few lines later.

(We currently have "found more than one CPAN candidate" for libnet, which
I have addressed by scheduling the removal of old versions from CPAN: 1.29
was the last version containing some packages, so it remained in
02packages.details.txt because of that.)

9 years agoupdate AUTHORS
David Mitchell [Tue, 13 Jan 2015 14:58:22 +0000 (14:58 +0000)]
update AUTHORS

9 years agomake re_intuit_string() return correct string
Rostislav Skudnov [Wed, 24 Dec 2014 06:12:52 +0000 (08:12 +0200)]
make re_intuit_string() return correct string

Fix #123469 - Bug in split function, with utf8 strings

Each regex has two SV pointers, check_substr and check_utf8,
which hold a constant string (if any) corresponding to the longest
constant string in the regexp.

When the regex is first compiled, only one pointer is set, depending on
whether the pattern is utf8 or not; but subsequent usage of the regex can
instantiate the other pointer too. So which of the two strings
re_intuit_string() should return should be based on the UTF8ness of the
pattern, not whether check_substr is set.

9 years agoUpdate libnet to CPAN version 3.05
Chris 'BinGOs' Williams [Tue, 13 Jan 2015 11:11:37 +0000 (11:11 +0000)]
Update libnet to CPAN version 3.05

  [DELTA]

3.05 2015-01-12

    - Fixed infinite loop in Net::SMTP::auth().  [CPAN RT#100235]

9 years agoperldelta for ac0e53cd2e68
Tony Cook [Tue, 13 Jan 2015 06:05:11 +0000 (17:05 +1100)]
perldelta for ac0e53cd2e68

9 years agoreport which files have duplicates in porting/manifest.t
Tony Cook [Tue, 13 Jan 2015 05:28:15 +0000 (16:28 +1100)]
report which files have duplicates in porting/manifest.t

9 years agoSimplify ext/SDBM_File layout and build
Ed J [Mon, 29 Dec 2014 11:59:40 +0000 (11:59 +0000)]
Simplify ext/SDBM_File layout and build

Tony: fix MANIFEST

9 years agoUpdate MIME-Base64 to CPAN version 3.15
Chris 'BinGOs' Williams [Tue, 13 Jan 2015 00:39:46 +0000 (00:39 +0000)]
Update MIME-Base64 to CPAN version 3.15

  [DELTA]

2015-01-12   Gisle Aas <gisle@ActiveState.com>

   Release 3.15

   Avoid compilation warnings on Windows.

   Restore compatibility with perl-5.4

9 years agoUpdate Digest-MD5 to CPAN version 2.54
Chris 'BinGOs' Williams [Tue, 13 Jan 2015 00:23:00 +0000 (00:23 +0000)]
Update Digest-MD5 to CPAN version 2.54

  [DELTA]

2015-01-12   Gisle Aas <gisle@ActiveState.com>

   Release 2.54

   David Mitchell: silence some compiler warnings
   Jonathan Hall: Add ->context() feature
   Steve Hay: Sync with blead
   bulk88: const the vtable
   zefram: 5.6 threads test fix

9 years agoperl.c: silence compiler warning:
David Mitchell [Mon, 12 Jan 2015 16:36:51 +0000 (16:36 +0000)]
perl.c: silence compiler warning:

perl.c:3629:75: warning: value computed is not used [-Wunused-value]
     gv_SVadd(PL_errgv);

9 years agoTest for nan range ends.
Jarkko Hietaniemi [Mon, 12 Jan 2015 03:57:37 +0000 (22:57 -0500)]
Test for nan range ends.

9 years agoDetect infnan range ends.
Jarkko Hietaniemi [Mon, 12 Jan 2015 03:58:35 +0000 (22:58 -0500)]
Detect infnan range ends.

9 years agoSeparate bad range end detection.
Jarkko Hietaniemi [Mon, 12 Jan 2015 03:58:15 +0000 (22:58 -0500)]
Separate bad range end detection.

9 years agoTest for inf range ends.
Jarkko Hietaniemi [Mon, 12 Jan 2015 03:27:45 +0000 (22:27 -0500)]
Test for inf range ends.

9 years agoExplicitly test x infnan producing empty string.
Jarkko Hietaniemi [Mon, 12 Jan 2015 03:18:00 +0000 (22:18 -0500)]
Explicitly test x infnan producing empty string.

9 years agoUpdate IO-Socket-IP to CPAN version 0.36
Chris 'BinGOs' Williams [Mon, 12 Jan 2015 11:02:38 +0000 (11:02 +0000)]
Update IO-Socket-IP to CPAN version 0.36

  [DELTA]

0.36    2014/01/10 20:54:58
        [BUGFIXES]
         * Always bind() on MSWin32 because Windows doesn't like it if we
           listen() having not done so (RT101396)

9 years agoUpdate Digest-SHA to CPAN version 5.95
Chris 'BinGOs' Williams [Mon, 12 Jan 2015 11:01:41 +0000 (11:01 +0000)]
Update Digest-SHA to CPAN version 5.95

  [DELTA]

5.95  Sat Jan 10 12:15:36 MST 2015
  - modified the bit-ordering test (ref. t/bitorder.t)
    -- supplied directory-change preamble for CORE builds

9 years agoperldelta for e0c6a6b8c9
Father Chrysostomos [Mon, 12 Jan 2015 06:28:18 +0000 (22:28 -0800)]
perldelta for e0c6a6b8c9

9 years agoperldelta for 08b999a9d / #123452
Father Chrysostomos [Mon, 12 Jan 2015 06:25:51 +0000 (22:25 -0800)]
perldelta for 08b999a9d / #123452

9 years agoperldelta for 2384afee9 / #123553
Father Chrysostomos [Mon, 12 Jan 2015 06:21:56 +0000 (22:21 -0800)]
perldelta for 2384afee9 / #123553

9 years agoperldelta for 307cbb9fc
Father Chrysostomos [Mon, 12 Jan 2015 06:18:12 +0000 (22:18 -0800)]
perldelta for 307cbb9fc

9 years agoperldelta for f605e527
Father Chrysostomos [Mon, 12 Jan 2015 06:14:00 +0000 (22:14 -0800)]
perldelta for f605e527

9 years agoperldelta for eb4ec35b34 / #123514
Father Chrysostomos [Mon, 12 Jan 2015 06:11:56 +0000 (22:11 -0800)]
perldelta for eb4ec35b34 / #123514

9 years agoperldelta for 1d51ab6ca
Father Chrysostomos [Mon, 12 Jan 2015 06:09:20 +0000 (22:09 -0800)]
perldelta for 1d51ab6ca

9 years agoperldelta for d8bd3d828 / #123495
Father Chrysostomos [Mon, 12 Jan 2015 06:05:33 +0000 (22:05 -0800)]
perldelta for d8bd3d828 / #123495

9 years agoperldelta for fd8be4a16
Father Chrysostomos [Mon, 12 Jan 2015 06:03:21 +0000 (22:03 -0800)]
perldelta for fd8be4a16

9 years agoperldelta for 3c6ef0a5 / #103260 / #123071
Father Chrysostomos [Mon, 12 Jan 2015 05:47:34 +0000 (21:47 -0800)]
perldelta for 3c6ef0a5 / #103260 / #123071

9 years agoperldelta for 58480c3bb
Father Chrysostomos [Mon, 12 Jan 2015 05:44:53 +0000 (21:44 -0800)]
perldelta for 58480c3bb

9 years agoperldelta for 62ae7cfb674910
Father Chrysostomos [Mon, 12 Jan 2015 05:44:13 +0000 (21:44 -0800)]
perldelta for 62ae7cfb674910

9 years agoperldelta for 2e4af4cf6b
Father Chrysostomos [Mon, 12 Jan 2015 05:38:07 +0000 (21:38 -0800)]
perldelta for 2e4af4cf6b

9 years agoCorrect perl ver in Safe Changes
Father Chrysostomos [Mon, 12 Jan 2015 05:34:06 +0000 (21:34 -0800)]
Correct perl ver in Safe Changes

9 years agorefactor op.c S_bad_type_*v
Daniel Dragan [Thu, 1 Jan 2015 04:09:28 +0000 (23:09 -0500)]
refactor op.c S_bad_type_*v

-flags arg of both funcs is unused in all callers. Move the 0 to the funcs.
 flags arg is from commit ce16c625ec in 2012
-all bad_type_gv calls are right before the end of the switch, the pushing
 of 1st 3 args and call asm ops can be merged together, leaving the 1
 string constant push as the only unique op between the 7 src code
 callers of bad_type_gv, this requires reordering the args so the only
 unique one is the last/right most one, reordering can't be done to
 bad_type_pv because each following execution point after each bad_type_pv
 is different, bad_type_pv's caller/s are not a switch statement
- commit 53e06cf030 probably overlooked the 2 PL_op_desc[type] places,
  OP_DESC is a fancier superset of PL_op_desc[type], since calling
  bad_type_pv only happens during a PP syntax error, that is not
  performance critical, so replace PL_op_desc[type] with OP_DESC and
  factor out OP to description string lookup, plus custom ops are very rare
  so this shouldn't impact the error message seen by the user

VC2003 .text section of perl521.dll before 0xc9543 after 0xC9523

9 years agoConfused cloning of nested state subs
Father Chrysostomos [Mon, 12 Jan 2015 04:39:03 +0000 (20:39 -0800)]
Confused cloning of nested state subs

use feature 'lexical_subs','state';
no warnings 'experimental';
my $sub = sub{
    state sub sb4;
    state sub a {
        state $x = 42;
        sub sb4 { $x; }
    }
    a();
    print sb4(), "\n";
};
$sub->();

The output:

Bizarre copy of CODE in subroutine exit at - line 10.

The sb4 sub was trying to close over the wrong pad; namely, the one
belonging to the anonymous sub.

9 years agoperldiag grammo
Father Chrysostomos [Mon, 12 Jan 2015 04:08:12 +0000 (20:08 -0800)]
perldiag grammo

9 years agoCatch infnan repeat counts.
Jarkko Hietaniemi [Mon, 12 Jan 2015 01:05:34 +0000 (20:05 -0500)]
Catch infnan repeat counts.

Not entirely convinced this is worth the extra code but getting
"Negative repeat count" warning for NaN repeat count is too much.

Even before this patch, "a" x $Inf didn't go all Genghis over your
virtual memory.  This is all about the right warning.

9 years agoWin32: stat() only after a failed open() on a module
Daniel Dragan [Thu, 8 Jan 2015 05:10:13 +0000 (00:10 -0500)]
Win32: stat() only after a failed open() on a module

See RT ticket for this patch for details.

9 years agoAdd missing =item * in perldelta (now perl5217delta) from commit 070733dfda
Steve Hay [Sat, 10 Jan 2015 16:17:19 +0000 (16:17 +0000)]
Add missing =item * in perldelta (now perl5217delta) from commit 070733dfda

9 years agoCorrect a bug number in perldelta
Steve Hay [Sat, 10 Jan 2015 16:09:36 +0000 (16:09 +0000)]
Correct a bug number in perldelta

9 years agoperldelta for 285727d0e3
Steve Hay [Sat, 10 Jan 2015 15:39:08 +0000 (15:39 +0000)]
perldelta for 285727d0e3

9 years agoBump $VERSION following previous commit
Steve Hay [Sat, 10 Jan 2015 15:35:27 +0000 (15:35 +0000)]
Bump $VERSION following previous commit

The code is currently identical to 0.23, but when the next change is made
the $VERSION must not be bumped to 0.24 since that has already been
released. For the same reason, we can't use 0.24 now, so bump to 0.25.

9 years agoRevert "fix attributes memcmp without len<6 (asan catch)"
Steve Hay [Sat, 10 Jan 2015 15:29:26 +0000 (15:29 +0000)]
Revert "fix attributes memcmp without len<6 (asan catch)"

This reverts commit ff5314c5aa54b172122507017cac034acf1c4bf7.

As noted by Andy Dougherty in #122629 the problem that this fixes
was already fixed more succinctly in dd369969a/#122701.

9 years agoperldelta for [perl #123530]
Karl Williamson [Thu, 8 Jan 2015 21:36:00 +0000 (14:36 -0700)]
perldelta for [perl #123530]

9 years agoPOSIX.pod: Various nits, typos, clarifications
Karl Williamson [Thu, 8 Jan 2015 20:49:56 +0000 (13:49 -0700)]
POSIX.pod: Various nits, typos, clarifications

9 years agoperlpodspec: Corrections/adds to detecting =encoding
Karl Williamson [Thu, 8 Jan 2015 19:22:21 +0000 (12:22 -0700)]
perlpodspec: Corrections/adds to detecting =encoding

C0 and C1 are not legal UTF-8 start bytes.  utf8::decode() is a more
accurate way of determining UTF-8.

9 years agotoke.c: White-space only
Karl Williamson [Thu, 8 Jan 2015 19:16:50 +0000 (12:16 -0700)]
toke.c: White-space only

Outdent a block that was indented by 2 tab widths.

9 years agoActually remove the TODO rather than just the block
Chris 'BinGOs' Williams [Sat, 10 Jan 2015 12:24:02 +0000 (12:24 +0000)]
Actually remove the TODO rather than just the block

9 years agoUpdate Digest-SHA to CPAN version 5.94
Chris 'BinGOs' Williams [Sat, 10 Jan 2015 11:59:43 +0000 (11:59 +0000)]
Update Digest-SHA to CPAN version 5.94

  [DELTA]

5.94  Sat Jan 10 00:45:28 MST 2015
  - added support for threaded builds
    -- PERL_GET_NO_CONTEXT, pTHX_, aTHX_, etc.
    -- employed 'const' storage class where possible
    -- ref. rt.cpan.org #101260
  - simplified shabits() routine (bitwise input buffering)
    -- slightly less efficient but easier to understand
    -- ref. rt.cpan.org #101344
  - minor documentation tweaks and additions

9 years agoRemoved TODO from pm_to_lib test in EUMM
Chris 'BinGOs' Williams [Fri, 9 Jan 2015 22:21:58 +0000 (22:21 +0000)]
Removed TODO from pm_to_lib test in EUMM

And upstream fix for race condition applied

https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/commit/6f41d63

9 years agoSimplify s/// and tr/// parsing logic
Father Chrysostomos [Fri, 9 Jan 2015 02:49:32 +0000 (18:49 -0800)]
Simplify s/// and tr/// parsing logic

These two operators were being translated into subst("","") and
tr("","") by the lexer.  Then pmruntime in op.c would take apart the
resulting list op.  Instead of constructing a list op only to take it
apart again, feed the replacement part to pmruntime separately.  We
can achieve this by introducing a new token ('/') that the parser rec-
ognizes as introducing a replacement.

If we had followed this approach to begin with, then bug #123542 would
never have happened.

(Actually, it seems the parser did know about the replacement part to
begin with, but it changed in perl-5.8.0-4047-g131b3ad to fix some
overloading problems.)

9 years agoparser.t: Correct bug number
Father Chrysostomos [Fri, 9 Jan 2015 02:00:35 +0000 (18:00 -0800)]
parser.t: Correct bug number

9 years agoUpdate ExtUtils-Command to CPAN version 1.20
Chris 'BinGOs' Williams [Thu, 8 Jan 2015 21:50:05 +0000 (21:50 +0000)]
Update ExtUtils-Command to CPAN version 1.20

  [DELTA]

1.20  Thu, Jan 8, 2015
  - Skip some tests on Haiku as well

9 years agoparser.t: Correct skip count
Father Chrysostomos [Thu, 8 Jan 2015 17:23:50 +0000 (09:23 -0800)]
parser.t: Correct skip count

I increased the skip count in 08b999a9 by mistake.  For crashing bugs,
executing the code that would have crashed is sufficient to test it.

9 years agoFix apidocs for OP_TYPE_IS(_OR_WAS) - arguments separated by |, not ,.
Matthew Horsfall (alh) [Thu, 8 Jan 2015 13:41:24 +0000 (08:41 -0500)]
Fix apidocs for OP_TYPE_IS(_OR_WAS) - arguments separated by |, not ,.

This was causing Devel::PPPort's tooling some grief.

9 years ago[perl #123452] Fix crash with s/${<>{})//
Father Chrysostomos [Thu, 8 Jan 2015 03:33:39 +0000 (19:33 -0800)]
[perl #123452] Fix crash with s/${<>{})//

s/foo/bar/ tokenizes as something akin to subst("foo","bar") and the
resulting list op representing the contents of the parentheses is
passed to pmruntime as its expr argument.

If we have invalid code like s/${<>{})//, the bison parser will dis-
card invalid tokens until it finds something it can fall back to, in
an attempt to keep parsing (to report as many errors as possible).

In the process of discarding tokens, it may convert s/${<>{})//, which
the lexer emits like this:

    PMFUNC ( $ { THING(readline) { } ) , "" )

into this:

    PMFUNC ( $ { THING(readline) } ) , "" )

(or something similar).  So when the parser sees the first closing
parentheses, it decides it has a complete PMFUNC(...), and the expr
argument to pmruntime ends up being an rv2sv op (the ${...}), not
a list op.

pmruntime assumes it is a list op, and tries to access its op_last
field, to find the replacement part; but rv2sv has no op_last field,
so this reads past the end of the op struct, usually into the first
pointer in the next op slot, which itself is an opslot pointer, not an
op pointer, so things really screw up.

If we check that the arguments to subst are indeed a list op first
before trying to extract the replacement part, everything works.  We
get the syntax errors reported as expected, but no crash.

9 years agoUpgrade Devel::PPPort from 3.25 to 3.26 (to silence build warnings)
Matthew Horsfall (alh) [Thu, 8 Jan 2015 02:45:44 +0000 (21:45 -0500)]
Upgrade Devel::PPPort from 3.25 to 3.26 (to silence build warnings)

Thanks to Dave M. for the patches.

9 years ago[-Dusecbacktrace] Close the BFD descriptor.
Jarkko Hietaniemi [Thu, 8 Jan 2015 01:12:51 +0000 (20:12 -0500)]
[-Dusecbacktrace] Close the BFD descriptor.

Otherwise we leak several dozens of megabytes, if not more,
for each Perl_dump_c_backtrace().

9 years agoAdd Andreas Voegele to AUTHORS
Father Chrysostomos [Wed, 7 Jan 2015 22:05:49 +0000 (14:05 -0800)]
Add Andreas Voegele to AUTHORS

9 years agoAdd test for rt#123556
Andreas Voegele [Wed, 7 Jan 2015 19:36:14 +0000 (20:36 +0100)]
Add test for rt#123556

9 years agoOnly compare defined values with "ge" in Module::CoreList::first_release_raw
Andreas Voegele [Tue, 6 Jan 2015 11:05:14 +0000 (12:05 +0100)]
Only compare defined values with "ge" in Module::CoreList::first_release_raw

9 years agoperly.c: Emit nl after ‘Reading a token’
Father Chrysostomos [Wed, 7 Jan 2015 19:01:59 +0000 (11:01 -0800)]
perly.c: Emit nl after ‘Reading a token’

This makes the -DTp output easier to read.

9 years agoop.c: Remove dVAR from ck_grep
Father Chrysostomos [Wed, 7 Jan 2015 18:01:14 +0000 (10:01 -0800)]
op.c: Remove dVAR from ck_grep

It has not needed it since 3253bf854 make it call S_alloc_LOGOP
instead of accessing PL_ppaddr directly.

9 years agoop.c: Remove dVAR from newRANGE
Father Chrysostomos [Wed, 7 Jan 2015 18:00:46 +0000 (10:00 -0800)]
op.c: Remove dVAR from newRANGE

It has not needed it since 3253bf854 make it call S_alloc_LOGOP
instead of accessing PL_ppaddr directly.

9 years agoop.c: Remove dVAR from pmruntime
Father Chrysostomos [Wed, 7 Jan 2015 18:00:07 +0000 (10:00 -0800)]
op.c: Remove dVAR from pmruntime

It has not needed it since 3253bf854 make it call S_alloc_LOGOP
instead of accessing PL_ppaddr directly.

9 years agoTEST: Comment for 804352e2
Father Chrysostomos [Wed, 7 Jan 2015 17:54:52 +0000 (09:54 -0800)]
TEST: Comment for 804352e2