This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
14 years agoMake all JAPH tests pass
Rafael Garcia-Suarez [Thu, 19 Oct 2006 08:56:14 +0000 (08:56 +0000)]
Make all JAPH tests pass

p4raw-id: //depot/perl@29047

14 years agoRemove free() part of change #29045, which causes
Rafael Garcia-Suarez [Thu, 19 Oct 2006 08:04:04 +0000 (08:04 +0000)]
Remove free() part of change #29045, which causes
panics from miniperl in FreeBSD/multithreaded
p4raw-link: @29045 on //depot/perl: e47547a83f24974bde05453531e68d7dd8c5ec87

p4raw-id: //depot/perl@29046

14 years agoblead valgrind finding
Jarkko Hietaniemi [Wed, 18 Oct 2006 20:07:54 +0000 (16:07 -0400)]
blead valgrind finding
Message-ID: <4536C1DA.4060600@iki.fi>

p4raw-id: //depot/perl@29045

14 years agoMake prototype("CORE::foo") return prototypes with _ when it should
Rafael Garcia-Suarez [Wed, 18 Oct 2006 20:26:37 +0000 (20:26 +0000)]
Make prototype("CORE::foo") return prototypes with _ when it should
(except for mkdir)

p4raw-id: //depot/perl@29044

14 years agoAdd a regression test for change #29041
Rafael Garcia-Suarez [Wed, 18 Oct 2006 19:37:01 +0000 (19:37 +0000)]
Add a regression test for change #29041
p4raw-link: @29041 on //depot/perl: 8c28b960db3547273cd8c89c0eaafc8e99cf70c1

p4raw-id: //depot/perl@29043

14 years agoUsing explicit printf-like APIs with a format of "%s" isn't the world's
Nicholas Clark [Wed, 18 Oct 2006 19:11:55 +0000 (19:11 +0000)]
Using explicit printf-like APIs with a format of "%s" isn't the world's
most efficient idea.

p4raw-id: //depot/perl@29042

14 years agoFunctions with a (_) prototype should behave as unary operators
Rafael Garcia-Suarez [Wed, 18 Oct 2006 17:40:57 +0000 (17:40 +0000)]
Functions with a (_) prototype should behave as unary operators
(which is not the case of functions with a (;$) prototype)

p4raw-id: //depot/perl@29041

14 years agopanic if we attempt to sv_setsv to or from an already freed SV.
Nicholas Clark [Wed, 18 Oct 2006 17:35:06 +0000 (17:35 +0000)]
panic if we attempt to sv_setsv to or from an already freed SV.

p4raw-id: //depot/perl@29040

14 years agoTest for the interaction between ; and _ in prototypes
Rafael Garcia-Suarez [Wed, 18 Oct 2006 14:41:26 +0000 (14:41 +0000)]
Test for the interaction between ; and _ in prototypes

p4raw-id: //depot/perl@29039

14 years agoDocument _ prototype in perlsub
Rafael Garcia-Suarez [Wed, 18 Oct 2006 14:34:26 +0000 (14:34 +0000)]
Document _ prototype in perlsub

p4raw-id: //depot/perl@29038

14 years agoFix prototype to mimic built-in in perlsub examples
Rafael Garcia-Suarez [Wed, 18 Oct 2006 14:30:57 +0000 (14:30 +0000)]
Fix prototype to mimic built-in in perlsub examples

p4raw-id: //depot/perl@29037

14 years agoThe _ character is only allowed to be at the end of prototypes
Rafael Garcia-Suarez [Wed, 18 Oct 2006 14:01:59 +0000 (14:01 +0000)]
The _ character is only allowed to be at the end of prototypes

p4raw-id: //depot/perl@29036

14 years agoImprovements and fixes to the _ prototype
Rafael Garcia-Suarez [Wed, 18 Oct 2006 12:54:34 +0000 (12:54 +0000)]
Improvements and fixes to the _ prototype

p4raw-id: //depot/perl@29035

14 years agoFAQ sync
Rafael Garcia-Suarez [Wed, 18 Oct 2006 08:49:01 +0000 (08:49 +0000)]
FAQ sync

p4raw-id: //depot/perl@29034

14 years ago[perl #40557] regexec.c saves context stack position improperly
Dave Bailey [Tue, 17 Oct 2006 09:37:28 +0000 (02:37 -0700)]
[perl #40557] regexec.c saves context stack position improperly
From: Dave Bailey (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.5.HEAD-4979-1161103047-337.40557-75-0@perl.org>

p4raw-id: //depot/perl@29033

14 years agoFirst attempt at implementing the _ prototype
Rafael Garcia-Suarez [Tue, 17 Oct 2006 16:07:04 +0000 (16:07 +0000)]
First attempt at implementing the _ prototype

p4raw-id: //depot/perl@29032

14 years agoUpgrade to Time-HiRes-1.94.
Steve Peters [Tue, 17 Oct 2006 15:43:05 +0000 (15:43 +0000)]
Upgrade to Time-HiRes-1.94.

p4raw-id: //depot/perl@29031

14 years agoRe: [PATCH] remove leaveit from toke.c:scan_const
SADAHIRO Tomoyuki [Tue, 17 Oct 2006 23:10:04 +0000 (08:10 +0900)]
Re: [PATCH] remove leaveit from toke.c:scan_const
Message-Id: <20061017230958.41A2.BQW10602@nifty.com>

p4raw-id: //depot/perl@29030

14 years agoUpgrade to CPAN-1.88_55.
Steve Peters [Tue, 17 Oct 2006 12:42:04 +0000 (12:42 +0000)]
Upgrade to CPAN-1.88_55.

p4raw-id: //depot/perl@29029

14 years agoLess brace nesting.
Rafael Garcia-Suarez [Tue, 17 Oct 2006 07:44:09 +0000 (07:44 +0000)]
Less brace nesting.

p4raw-id: //depot/perl@29028

14 years agoThe "Unrecognized escape" warning can now be emitted in category
Rafael Garcia-Suarez [Mon, 16 Oct 2006 12:59:07 +0000 (12:59 +0000)]
The "Unrecognized escape" warning can now be emitted in category
"regexp" after change 29026

p4raw-id: //depot/perl@29027

14 years agoremove leaveit from toke.c:scan_const
SADAHIRO Tomoyuki [Sun, 15 Oct 2006 22:23:00 +0000 (07:23 +0900)]
remove leaveit from toke.c:scan_const
Message-Id: <20061015222223.BC38.BQW10602@nifty.com>

p4raw-id: //depot/perl@29026

14 years agoRe: sprintf 64 test
SADAHIRO Tomoyuki [Sun, 15 Oct 2006 16:51:34 +0000 (01:51 +0900)]
Re: sprintf 64 test
Message-Id: <20061015165052.77AD.BQW10602@nifty.com>

1. nullify 0 flag in integer conversions when precision is given
2. ignore space after a plus sign as a sign for a nonnegative number
3. make a negative precision through * working as if the precision
   is omitted

p4raw-id: //depot/perl@29025

14 years agoFix change 28770 to cope with the strange 32 bit bool type on VMS.
Nicholas Clark [Mon, 16 Oct 2006 04:41:30 +0000 (04:41 +0000)]
Fix change 28770 to cope with the strange 32 bit bool type on VMS.
(I should have seen this one coming - the two structures weren't
textually identical)

p4raw-id: //depot/perl@29024

14 years agoUpgrade to Time-HiRes-1.93.
Steve Peters [Sun, 15 Oct 2006 17:17:32 +0000 (17:17 +0000)]
Upgrade to Time-HiRes-1.93.

p4raw-id: //depot/perl@29023

14 years agoUpgrade to CPAN-1.88_54.
Steve Peters [Sat, 14 Oct 2006 23:18:29 +0000 (23:18 +0000)]
Upgrade to CPAN-1.88_54.

p4raw-id: //depot/perl@29020

14 years agoUpgrade to Digest-SHA-5.44.
Steve Peters [Sat, 14 Oct 2006 23:11:23 +0000 (23:11 +0000)]
Upgrade to Digest-SHA-5.44.

p4raw-id: //depot/perl@29019

14 years agoAvoid undefined behaviour for -DPERL_MEM_LOG by not using a
Nicholas Clark [Sat, 14 Oct 2006 23:06:52 +0000 (23:06 +0000)]
Avoid undefined behaviour for -DPERL_MEM_LOG by not using a
dereference of member of the structure being reallocated as part of
the size calculation. (This one was well hidden by macros)

p4raw-id: //depot/perl@29018

14 years agoUpgrade to XSLoader-0.07.
Steve Peters [Sat, 14 Oct 2006 23:00:35 +0000 (23:00 +0000)]
Upgrade to XSLoader-0.07.

p4raw-id: //depot/perl@29017

14 years agoAvoid undefined behaviour for -DPERL_MEM_LOG by not using a direct
Nicholas Clark [Sat, 14 Oct 2006 22:40:00 +0000 (22:40 +0000)]
Avoid undefined behaviour for -DPERL_MEM_LOG by not using a direct
dereference of member of the structure being reallocated as part of
the size calculation. (There may be other similar bugs).

p4raw-id: //depot/perl@29016

14 years agoUse Perl_croak_nocontext() rather than Perl_croak() for the snprintf()
Nicholas Clark [Sat, 14 Oct 2006 20:38:59 +0000 (20:38 +0000)]
Use Perl_croak_nocontext() rather than Perl_croak() for the snprintf()
and vsnprintf() macros.

p4raw-id: //depot/perl@29015

14 years agoFix typo.
Nicholas Clark [Sat, 14 Oct 2006 14:32:28 +0000 (14:32 +0000)]
Fix typo.

p4raw-id: //depot/perl@29012

14 years agoRe: SVpvs vs SVpvn
Jim Cromie [Fri, 13 Oct 2006 13:46:37 +0000 (07:46 -0600)]
Re: SVpvs vs SVpvn
Message-ID: <452FED1D.1000504@gmail.com>

plus the last newSVpvn() in toke.c that his regexp missed.

p4raw-id: //depot/perl@29011

14 years agoUpgrade to Time-HiRes-1.92.
Steve Peters [Fri, 13 Oct 2006 14:11:04 +0000 (14:11 +0000)]
Upgrade to Time-HiRes-1.92.

p4raw-id: //depot/perl@29010

14 years agoCorrect one "parenthesis" to "parentheses".
Nicholas Clark [Fri, 13 Oct 2006 13:53:16 +0000 (13:53 +0000)]
Correct one "parenthesis" to "parentheses".

p4raw-id: //depot/perl@29009

14 years agoDon't bother checking for bad characters in prototypes if we're not
Rafael Garcia-Suarez [Fri, 13 Oct 2006 12:12:04 +0000 (12:12 +0000)]
Don't bother checking for bad characters in prototypes if we're not
going to warn about them.

p4raw-id: //depot/perl@29008

14 years agocompiler warning noreturn
Robin Barker [Fri, 13 Oct 2006 11:49:11 +0000 (12:49 +0100)]
compiler warning noreturn
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226120A70@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@29007

14 years agoFix nit in possessive quantifier descriptions.
Rafael Garcia-Suarez [Fri, 13 Oct 2006 09:15:43 +0000 (09:15 +0000)]
Fix nit in possessive quantifier descriptions.
Add some =head3 headings.

p4raw-id: //depot/perl@29006

14 years agoAdd possessive quantifiers to regex engine.
Yves Orton [Thu, 12 Oct 2006 21:23:15 +0000 (23:23 +0200)]
Add possessive quantifiers to regex engine.
Message-ID: <9b18b3110610121223m191e47ddtce3398cb0e8ba320@mail.gmail.com>

With doc tweaks

p4raw-id: //depot/perl@29005

14 years agoUpgrade to PathTools-3.23.
Steve Peters [Thu, 12 Oct 2006 15:07:17 +0000 (15:07 +0000)]
Upgrade to PathTools-3.23.

p4raw-id: //depot/perl@29004

14 years agothreads::shared 1.04
Jerry Hedden [Thu, 12 Oct 2006 07:47:37 +0000 (00:47 -0700)]
threads::shared 1.04
Message-ID: <20061012144737.56305.qmail@web30207.mail.mud.yahoo.com>

p4raw-id: //depot/perl@29003

14 years agothreads 1.44
Jerry Hedden [Wed, 11 Oct 2006 05:57:43 +0000 (22:57 -0700)]
threads 1.44
Message-ID: <20061011125743.68567.qmail@web30211.mail.mud.yahoo.com>

p4raw-id: //depot/perl@29002

14 years agofix format errors; was RE: g++ compile and make test 100%
Robin Barker [Wed, 11 Oct 2006 17:02:01 +0000 (18:02 +0100)]
fix format errors; was RE: g++ compile and make test 100%
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226120A69@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@29001

14 years agoRE: g++ compile and make test 100%
Robin Barker [Wed, 11 Oct 2006 16:58:10 +0000 (17:58 +0100)]
RE: g++ compile and make test 100%
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226120A68@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@29000

14 years agoMore regexp documentation
Yves Orton [Thu, 12 Oct 2006 14:45:25 +0000 (16:45 +0200)]
More regexp documentation
Message-ID: <9b18b3110610120545m3002e17cqace30f908b0e2277@mail.gmail.com>

p4raw-id: //depot/perl@28999

14 years agoAdd Regex conditionals. Various bugfixes. More tests.
Yves Orton [Thu, 12 Oct 2006 00:46:50 +0000 (02:46 +0200)]
Add Regex conditionals. Various bugfixes. More tests.
Message-ID: <9b18b3110610111546j74ca490dg21bd9fd1e7e10d42@mail.gmail.com>

p4raw-id: //depot/perl@28998

14 years agoRE: g++ compile and make test 100%
Robin Barker [Wed, 11 Oct 2006 15:29:43 +0000 (16:29 +0100)]
RE: g++ compile and make test 100%
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226120A65@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@28997

14 years agoFix typo in NDBM_File.xs and bump up the version number.
Steve Peters [Wed, 11 Oct 2006 14:48:45 +0000 (14:48 +0000)]
Fix typo in NDBM_File.xs and bump up the version number.

p4raw-id: //depot/perl@28996

14 years agoFix aliasing to an non-existent element of %+
Rafael Garcia-Suarez [Wed, 11 Oct 2006 09:59:15 +0000 (09:59 +0000)]
Fix aliasing to an non-existent element of %+
(by Yves Orton)

p4raw-id: //depot/perl@28995

14 years agoUpdate comment (by Yves Orton), plus POD fixes
Rafael Garcia-Suarez [Wed, 11 Oct 2006 09:38:37 +0000 (09:38 +0000)]
Update comment (by Yves Orton), plus POD fixes

p4raw-id: //depot/perl@28994

14 years agoMissing % in format string
Rafael Garcia-Suarez [Wed, 11 Oct 2006 08:03:03 +0000 (08:03 +0000)]
Missing % in format string

p4raw-id: //depot/perl@28993

14 years agoext re: C++: EXTERN_C needed, and where did sub install() go?
Jarkko Hietaniemi [Wed, 11 Oct 2006 09:53:59 +0000 (12:53 +0300)]
ext re: C++: EXTERN_C needed, and where did sub install() go?
Message-Id: <20061011065359.DFC4C8B3A1@seth.hut.fi>

p4raw-id: //depot/perl@28992

14 years agoGrrr...moved the files, but forgot to update Soundex.pm
Steve Peters [Wed, 11 Oct 2006 00:52:58 +0000 (00:52 +0000)]
Grrr...moved the files, but forgot to update Soundex.pm

p4raw-id: //depot/perl@28991

14 years agoC++: class is a keyword
Jarkko Hietaniemi [Tue, 10 Oct 2006 19:20:26 +0000 (22:20 +0300)]
C++: class is a keyword
Message-Id: <20061010162026.190BE8B37C@seth.hut.fi>

p4raw-id: //depot/perl@28990

14 years agoAdjust test count for ExtUtils::Command
Rafael Garcia-Suarez [Tue, 10 Oct 2006 16:23:48 +0000 (16:23 +0000)]
Adjust test count for ExtUtils::Command

p4raw-id: //depot/perl@28989

14 years agoUpgrade to ExtUtils-Manifest-1.49.
Steve Peters [Tue, 10 Oct 2006 15:04:09 +0000 (15:04 +0000)]
Upgrade to ExtUtils-Manifest-1.49.

p4raw-id: //depot/perl@28988

14 years agoUpgrade to ExtUtils-Command-1.12.
Steve Peters [Tue, 10 Oct 2006 15:01:21 +0000 (15:01 +0000)]
Upgrade to ExtUtils-Command-1.12.

p4raw-id: //depot/perl@28987

14 years agoUpgrade to CPAN-1.88_53.
Steve Peters [Tue, 10 Oct 2006 14:49:47 +0000 (14:49 +0000)]
Upgrade to CPAN-1.88_53.

p4raw-id: //depot/perl@28986

14 years ago[perl #40473] sprintf width+precision fails on wide chars
Anatoly Vorobey [Sun, 8 Oct 2006 17:58:16 +0000 (10:58 -0700)]
[perl #40473] sprintf width+precision fails on wide chars
From: Anatoly Vorobey (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.5.HEAD-31259-1160355496-1702.40473-75-0@perl.org>

p4raw-id: //depot/perl@28985

14 years agoUpgrade to ExtUtils-Makemaker-6.31.
Steve Peters [Tue, 10 Oct 2006 14:33:53 +0000 (14:33 +0000)]
Upgrade to ExtUtils-Makemaker-6.31.

p4raw-id: //depot/perl@28984

14 years agoUpdate to PathTools-3.22.
Steve Peters [Tue, 10 Oct 2006 14:05:52 +0000 (14:05 +0000)]
Update to PathTools-3.22.

p4raw-id: //depot/perl@28983

14 years agoNew shiny models
H.Merijn Brand [Tue, 10 Oct 2006 14:02:16 +0000 (14:02 +0000)]
New shiny models

p4raw-id: //depot/perl@28982

14 years agoRegexp Recurse by name.
Yves Orton [Mon, 9 Oct 2006 20:36:20 +0000 (22:36 +0200)]
Regexp Recurse by name.
Message-ID: <9b18b3110610091136g48e5b154tf16d00d38e80a6dc@mail.gmail.com>

(with doc nits)

p4raw-id: //depot/perl@28981

14 years agoenc2xs and C++: add extern "C" to data
Jarkko Hietaniemi [Tue, 10 Oct 2006 13:52:57 +0000 (16:52 +0300)]
enc2xs and C++: add extern "C" to  data
Message-ID: <452B7B89.201@iki.fi>

p4raw-id: //depot/perl@28980

14 years agoLinux and Solaris hints: C++ vs dlerror
Jarkko Hietaniemi [Tue, 10 Oct 2006 14:00:40 +0000 (17:00 +0300)]
Linux and Solaris hints: C++ vs dlerror
Message-ID: <452B7D58.1090009@iki.fi>

p4raw-id: //depot/perl@28979

14 years agoUpdates for building on Win32 with Visual C++ 2005 Express Edition
Steve Hay [Tue, 10 Oct 2006 10:25:06 +0000 (10:25 +0000)]
Updates for building on Win32 with Visual C++ 2005 Express Edition

Add some instructions in README.win32, clarify macro comments and add
missing macros to makefile.mk, and drop the GLOBEXEBUILD macro from
Makefile--the Express Edition of Visual C++ 2005 is free and includes
setargv.obj, so there is no need to support the .NET 2.0 SDK compiler
which didn't include it.

Unfortunately, the build still doesn't work yet--my attempt got as far
as building extensions, but miniperl.exe crashed.  Hopefully this can
be sorted out soon.

p4raw-id: //depot/perl@28978

14 years agofix a doc typo and a warning typo in VMS::DCLsym
Craig A. Berry [Tue, 10 Oct 2006 03:29:50 +0000 (03:29 +0000)]
fix a doc typo and a warning typo in VMS::DCLsym

p4raw-id: //depot/perl@28977

14 years agoMake g++ happy when compiling NDBM_File on a system that
Steve Peters [Mon, 9 Oct 2006 20:17:07 +0000 (20:17 +0000)]
Make g++ happy when compiling NDBM_File on a system that
is likely using the GDBM compatibility headers that
g++ (and other C++ implementations) cannot handle.

p4raw-id: //depot/perl@28976

14 years agofix bad free in do_exec3()
Dave Mitchell [Mon, 9 Oct 2006 16:35:02 +0000 (16:35 +0000)]
fix bad free in do_exec3()

p4raw-id: //depot/perl@28975

14 years agoEncode.xs: add an explicit cast to make g++ happier
Jarkko Hietaniemi [Mon, 9 Oct 2006 16:54:12 +0000 (19:54 +0300)]
Encode.xs: add an explicit cast to make g++ happier
Message-Id: <20061009135412.47F7A8B3A0@seth.hut.fi>

p4raw-id: //depot/perl@28974

14 years agoAddress update for Jerry D. Hedden
Rafael Garcia-Suarez [Mon, 9 Oct 2006 14:13:25 +0000 (14:13 +0000)]
Address update for Jerry D. Hedden

p4raw-id: //depot/perl@28973

14 years agoUpdate perldelta for recent regexp changes, based on a text by Yves Orton.
Rafael Garcia-Suarez [Mon, 9 Oct 2006 12:53:40 +0000 (12:53 +0000)]
Update perldelta for recent regexp changes, based on a text by Yves Orton.

p4raw-id: //depot/perl@28972

14 years agoDigest::SHA 5.43_01 - ANSIfy src/hmac.c
Jarkko Hietaniemi [Mon, 9 Oct 2006 14:24:09 +0000 (17:24 +0300)]
Digest::SHA 5.43_01 - ANSIfy src/hmac.c
Message-ID: <452A3159.3060003@iki.fi>

p4raw-id: //depot/perl@28971

14 years agoAdd perl595delta
Rafael Garcia-Suarez [Mon, 9 Oct 2006 10:32:06 +0000 (10:32 +0000)]
Add perl595delta

p4raw-id: //depot/perl@28970

14 years agoBump version to 5.9.5
Rafael Garcia-Suarez [Mon, 9 Oct 2006 10:11:09 +0000 (10:11 +0000)]
Bump version to 5.9.5

p4raw-id: //depot/perl@28969

14 years agoRe: [PATCH] regexec.c: goto crossing initialization
Jarkko Hietaniemi [Mon, 9 Oct 2006 12:47:11 +0000 (15:47 +0300)]
Re: [PATCH] regexec.c: goto crossing initialization
Message-ID: <452A1A9F.4080103@iki.fi>

p4raw-id: //depot/perl@28968

14 years agoRe: [perl #40468] Not OK: perl 5.9.4 +patchaperlup: on i686-linux-64int 2.6.17-2...
Yves Orton [Sun, 8 Oct 2006 20:14:24 +0000 (22:14 +0200)]
Re: [perl #40468] Not OK: perl 5.9.4 +patchaperlup: on i686-linux-64int 2.6.17-2-k7 (UNINSTALLED)
Message-ID: <9b18b3110610081114g11dabafaw860181598ab54bd6@mail.gmail.com>

p4raw-id: //depot/perl@28967

14 years agoRevert change 28962 (at least until a better solution is found)
Rafael Garcia-Suarez [Sun, 8 Oct 2006 19:39:00 +0000 (19:39 +0000)]
Revert change 28962 (at least until a better solution is found)

p4raw-id: //depot/perl@28966

14 years agoClarifications on the usage of setlocale() and LC_NUMERIC to
Rafael Garcia-Suarez [Sun, 8 Oct 2006 17:07:42 +0000 (17:07 +0000)]
Clarifications on the usage of setlocale() and LC_NUMERIC to
affect the decimal point in output, by Jarkko.

p4raw-id: //depot/perl@28965

14 years agoDocument the growth policy, and Yves suggested a better arbitary
Nicholas Clark [Sun, 8 Oct 2006 00:25:07 +0000 (00:25 +0000)]
Document the growth policy, and Yves suggested a better arbitary
constant. (The original plan was add 80 if free space is less than 80,
which wasn't a noticable improvement. Hence 40 was 80/2 for plan B)

p4raw-id: //depot/perl@28964

14 years agoYves said that the XS version of Data::Dumper was inefficient because
Nicholas Clark [Sat, 7 Oct 2006 23:42:56 +0000 (23:42 +0000)]
Yves said that the XS version of Data::Dumper was inefficient because
it keeps triggering realloc() due to sv_cat(). Here's a rather brute
force approach to pre-stretching the buffer - if there are less than
40 bytes free, grow it by 50%.

Surprisingly effective for my test program
./perl -Ilib -MData::Dumper -MStorable=retrieve -we \
    'print Dumper(retrieve(shift))' ~/.cpan/Metadata >/dev/null

Before
real    2m42.921s
user    1m43.321s
sys     0m55.611s

After
real    0m5.205s
user    0m4.885s
sys     0m0.255s

Same 25M of output, byte for byte. :-)

p4raw-id: //depot/perl@28963

14 years agoNo need to create a new magic vtable if it's all 0 pointers.
Nicholas Clark [Sat, 7 Oct 2006 22:24:28 +0000 (22:24 +0000)]
No need to create a new magic vtable if it's all 0 pointers.
[And these are function pointers, so they're not NULL :-)]

p4raw-id: //depot/perl@28962

14 years agoMake reference stringification (blessed and unblessed) about as fast as
Nicholas Clark [Sat, 7 Oct 2006 22:06:19 +0000 (22:06 +0000)]
Make reference stringification (blessed and unblessed) about as fast as
is possible, because I'm told it's used quite frequently.

p4raw-id: //depot/perl@28961

14 years agoUse packed addresses for the seen tracking hash, rather than
Nicholas Clark [Sat, 7 Oct 2006 17:16:01 +0000 (17:16 +0000)]
Use packed addresses for the seen tracking hash, rather than
"stringified" references. These use less memory, and should be faster
as there is no call to sprintf().

p4raw-id: //depot/perl@28960

14 years agoEliminate two more unneeded strlen()s from Dumper.xs
Nicholas Clark [Sat, 7 Oct 2006 16:08:04 +0000 (16:08 +0000)]
Eliminate two more unneeded strlen()s from Dumper.xs

p4raw-id: //depot/perl@28959

14 years agothreads 1.43 - stringify
Jerry Hedden [Fri, 6 Oct 2006 12:19:41 +0000 (05:19 -0700)]
threads 1.43 - stringify
Message-ID: <20061006191941.22457.qmail@web30205.mail.mud.yahoo.com>

p4raw-id: //depot/perl@28958

14 years agoRe: [PATCH] Initial attempt at named captures for perls regexp engine
Yves Orton [Fri, 6 Oct 2006 19:16:01 +0000 (21:16 +0200)]
Re: [PATCH] Initial attempt at named captures for perls regexp engine
Message-ID: <9b18b3110610061016x5ddce965u30d9a821f632d450@mail.gmail.com>

p4raw-id: //depot/perl@28957

14 years agoChange sprintf() to my_sprintf(), and use the returned length from
Nicholas Clark [Sat, 7 Oct 2006 13:53:36 +0000 (13:53 +0000)]
Change sprintf() to my_sprintf(), and use the returned length from
that and my_snprintf() to avoid calls to strlen()

p4raw-id: //depot/perl@28956

14 years agocflags.SH: strip -std=c89 for g++
Jarkko Hietaniemi [Sat, 7 Oct 2006 13:37:04 +0000 (16:37 +0300)]
cflags.SH: strip -std=c89 for g++
Message-ID: <45278350.8020707@iki.fi>

p4raw-id: //depot/perl@28955

14 years agoanother g++ patch (Util.xs)
Paul Marquess [Fri, 6 Oct 2006 11:14:03 +0000 (12:14 +0100)]
another g++ patch (Util.xs)
From: "Paul Marquess" <paul.marquess@ntlworld.com>
Message-ID: <00ea01c6e930$269f3d70$4e3c140a@myopwv.com>

p4raw-id: //depot/perl@28954

14 years agoUpgrade to Test-Harness-2.64
Steve Peters [Sat, 7 Oct 2006 01:34:15 +0000 (01:34 +0000)]
Upgrade to Test-Harness-2.64

p4raw-id: //depot/perl@28953

14 years agoMake the executable slightly smaller by using PL_hexdigit in
Nicholas Clark [Fri, 6 Oct 2006 21:56:46 +0000 (21:56 +0000)]
Make the executable slightly smaller by using PL_hexdigit in
Perl_sv_vcatpvfn.

p4raw-id: //depot/perl@28952

14 years agoFix typo spotted by Rafael. Close the file handle explicity and check
Nicholas Clark [Fri, 6 Oct 2006 21:27:13 +0000 (21:27 +0000)]
Fix typo spotted by Rafael. Close the file handle explicity and check
for errors. Add overload.pl to regen.pl

p4raw-id: //depot/perl@28951

14 years agoGenerate the overload enum and names array programatically, which
Nicholas Clark [Fri, 6 Oct 2006 21:19:26 +0000 (21:19 +0000)]
Generate the overload enum and names array programatically, which
allows experimentation with the order. The new order shaves nearly
900 bytes from gv.o, because the compiler can make smaller branch
tables for switch statements.

p4raw-id: //depot/perl@28950

14 years agoReoder struct am_table and am_table_short to save 8 bytes on LP64
Nicholas Clark [Fri, 6 Oct 2006 21:01:00 +0000 (21:01 +0000)]
Reoder struct am_table and am_table_short to save 8 bytes on LP64
systems, by placing the two U32 fields next to each other.

p4raw-id: //depot/perl@28949

14 years agoUpgrade to PathTools-3.21
Steve Peters [Fri, 6 Oct 2006 20:02:48 +0000 (20:02 +0000)]
Upgrade to PathTools-3.21

p4raw-id: //depot/perl@28948

14 years agoDon't bother generating the "Operation \"%s\": no method found..."
Nicholas Clark [Fri, 6 Oct 2006 18:05:45 +0000 (18:05 +0000)]
Don't bother generating the "Operation \"%s\": no method found..."
message text if we're not going to use it.

p4raw-id: //depot/perl@28947

14 years agoDocument the new regmatch() backtracking mechanism
Dave Mitchell [Thu, 5 Oct 2006 18:16:19 +0000 (18:16 +0000)]
Document the new regmatch() backtracking mechanism

p4raw-id: //depot/perl@28946

14 years agoremove REGMATCH detritus and shrink the size of the backtrack structure
Dave Mitchell [Thu, 5 Oct 2006 16:05:57 +0000 (16:05 +0000)]
remove REGMATCH detritus and shrink the size of the backtrack structure

p4raw-id: //depot/perl@28945

14 years agomigrate CURLYX/WHILEM branch in regmatch() to new FSM-esque paradigm
Dave Mitchell [Thu, 5 Oct 2006 14:00:38 +0000 (14:00 +0000)]
migrate CURLYX/WHILEM branch in regmatch() to new FSM-esque paradigm

p4raw-id: //depot/perl@28944