This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
14 years agoDon't call strlen() on CopFILE() for the unthreaded case, because the
Nicholas Clark [Thu, 18 Oct 2007 10:44:35 +0000 (10:44 +0000)]
Don't call strlen() on CopFILE() for the unthreaded case, because the
length can be obtained via CopFILESV().

p4raw-id: //depot/perl@32129

14 years agoSilence a casting warning
Rafael Garcia-Suarez [Thu, 18 Oct 2007 09:45:47 +0000 (09:45 +0000)]
Silence a casting warning

p4raw-id: //depot/perl@32128

14 years agoWhere possible, change gv_fetchfile() to gv_fetchfile_flags(),
Nicholas Clark [Thu, 18 Oct 2007 09:24:42 +0000 (09:24 +0000)]
Where possible, change gv_fetchfile() to gv_fetchfile_flags(),
gv_stashpv() to gv_stashpvn() and gv_fetchpv() to gv_fetchpvn_flags().
Change the len parameter of S_find_in_my_stash() from I32 to STRLEN, as
a pointer the variable needs to be passed onwards, and size matters on
64 bit platforms.
Fix the temporary scribbling of a buffer in Perl_yylex() by using
gv_fetchpvn_flags(), and remove the XXX comment added in change 27641.
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32127

14 years agoIn Perl_moreswitches(), avoid the strlen() inside sv_catpv() by moving
Nicholas Clark [Thu, 18 Oct 2007 07:17:46 +0000 (07:17 +0000)]
In Perl_moreswitches(), avoid the strlen() inside sv_catpv() by moving
the strlen() earlier.
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32126

14 years agoIn Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't use
Nicholas Clark [Wed, 17 Oct 2007 16:06:21 +0000 (16:06 +0000)]
In Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't use
strlcpy() to forcibly truncate a string to a known length, when
memcpy() and a write of '\0' will not only make the intent clear, but
also do that exact job more efficiently.

p4raw-id: //depot/perl@32125

14 years agoStoring the length of all the overloading names saves a strlen() in a
Nicholas Clark [Wed, 17 Oct 2007 15:10:58 +0000 (15:10 +0000)]
Storing the length of all the overloading names saves a strlen() in a
loop in Perl_Gv_AMupdate().
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32124

14 years agoUpdate IPC::Cmd to 0.40
Jos I. Boumans [Wed, 17 Oct 2007 11:32:03 +0000 (13:32 +0200)]
Update IPC::Cmd to 0.40
From: "Jos I. Boumans" <jos@dwim.org>
Message-Id: <C7DB06B4-6FE5-4188-A087-DC40E8E9F07D@dwim.org>

p4raw-id: //depot/perl@32123

14 years agoMinor fix in File::Copy POD
Jerry D. Hedden [Mon, 15 Oct 2007 09:56:33 +0000 (05:56 -0400)]
Minor fix in File::Copy POD
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510710150656w4c06b94aub1c8ff5fa29a8603@mail.gmail.com>

p4raw-id: //depot/perl@32122

14 years agoAnother ex-PVBM assert
Ben Morrow [Tue, 16 Oct 2007 19:51:09 +0000 (20:51 +0100)]
Another ex-PVBM assert
Message-ID: <tpdfu4-bsm.ln1@osiris.mauzo.dyndns.org>

p4raw-id: //depot/perl@32121

14 years agoFix a few segfaults and a when() bug
josh [Sun, 14 Oct 2007 21:37:08 +0000 (14:37 -0700)]
Fix a few segfaults and a when() bug
From: "josh" <twists@gmail.com>
Message-ID: <20071015043708.GA10981@grenekatz.org>

p4raw-id: //depot/perl@32120

14 years agoex-PVBM and mro interact badly
Ben Morrow [Mon, 15 Oct 2007 22:56:16 +0000 (23:56 +0100)]
ex-PVBM and mro interact badly
Message-ID: <20071015215616.GA43800@osiris.mauzo.dyndns.org>

p4raw-id: //depot/perl@32119

14 years agoUpdate Module::Load::Conditional to 0.22
Rafael Garcia-Suarez [Wed, 17 Oct 2007 08:03:23 +0000 (08:03 +0000)]
Update Module::Load::Conditional to 0.22

p4raw-id: //depot/perl@32118

14 years agoMore tests for Safe
Rafael Garcia-Suarez [Wed, 17 Oct 2007 07:39:16 +0000 (07:39 +0000)]
More tests for Safe

p4raw-id: //depot/perl@32117

14 years agoPL_AMG_names is only used by gv.c (as far as Google code search can
Nicholas Clark [Tue, 16 Oct 2007 16:02:35 +0000 (16:02 +0000)]
PL_AMG_names is only used by gv.c (as far as Google code search can
see), so it can easily be a static variable inside gv.c. This allows
the implementation to be changed in future Perls within the 5.10.x
series.

p4raw-id: //depot/perl@32116

14 years agoReplace my_strlcpy() with a pair of byte writes.
Nicholas Clark [Tue, 16 Oct 2007 10:39:38 +0000 (10:39 +0000)]
Replace my_strlcpy() with a pair of byte writes.

p4raw-id: //depot/perl@32115

14 years agoGiven that S_feature_is_enabled() is a static function, we can know all
Nicholas Clark [Tue, 16 Oct 2007 09:48:48 +0000 (09:48 +0000)]
Given that S_feature_is_enabled() is a static function, we can know all
the possible strings that can be passed to it, and their lengths. So we
can avoid my_strlcpy() and instead use memcpy().
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32114

14 years agoGiven that the buffer for mode in Perl_do_openn() has been initialised
Nicholas Clark [Tue, 16 Oct 2007 09:40:15 +0000 (09:40 +0000)]
Given that the buffer for mode in Perl_do_openn() has been initialised
to all NUL bytes, and the "string" being appended is one character,
it's way faster just to write the byte in question to the buffer.

p4raw-id: //depot/perl@32113

14 years agoMoving a strlen() in Perl_moreswitches() saves a strlen() in sv_catpv()
Nicholas Clark [Tue, 16 Oct 2007 09:38:48 +0000 (09:38 +0000)]
Moving a strlen() in Perl_moreswitches() saves a strlen() in sv_catpv()
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32112

14 years agoPass in explicit lengths for the key and type arguments to
Nicholas Clark [Tue, 16 Oct 2007 09:06:26 +0000 (09:06 +0000)]
Pass in explicit lengths for the key and type arguments to
S_new_constant() in toke.c, as we know all the lengths already.
Brought to you by the Campaign for the Elimination of strlen().

p4raw-id: //depot/perl@32111

14 years agoPerl_ck_smartmatch needs a dVAR too.
Nicholas Clark [Tue, 16 Oct 2007 08:37:29 +0000 (08:37 +0000)]
Perl_ck_smartmatch needs a dVAR too.

p4raw-id: //depot/perl@32110

14 years agoAdd dVAR;s to the functions created in change 31970.
Nicholas Clark [Tue, 16 Oct 2007 07:51:36 +0000 (07:51 +0000)]
Add dVAR;s to the functions created in change 31970.

p4raw-id: //depot/perl@32109

14 years agoUpdate File::Fetch to 0.12
Jos I. Boumans [Mon, 15 Oct 2007 14:40:39 +0000 (16:40 +0200)]
Update File::Fetch to 0.12
From: "Jos I. Boumans" <jos@dwim.org>
Message-Id: <D845A191-6837-4618-8A34-B44A3DC6F5C6@dwim.org>

p4raw-id: //depot/perl@32108

14 years agoPOD nit found by Slaven Rezic.
Rafael Garcia-Suarez [Sat, 13 Oct 2007 07:24:17 +0000 (07:24 +0000)]
POD nit found by Slaven Rezic.

p4raw-id: //depot/perl@32107

14 years agoNormalize the case of some VMS syscalls so the prototypes are
Craig A. Berry [Fri, 12 Oct 2007 20:48:11 +0000 (20:48 +0000)]
Normalize the case of some VMS syscalls so the prototypes are
kosher on a system with older headers.

p4raw-id: //depot/perl@32106

14 years agoRemove some strlen()s and replace one strlcpy() with memcpy() because
Nicholas Clark [Fri, 12 Oct 2007 15:21:14 +0000 (15:21 +0000)]
Remove some strlen()s and replace one strlcpy() with memcpy() because
we already know the string length.

p4raw-id: //depot/perl@32105

14 years agoNew test for Safe
Rafael Garcia-Suarez [Fri, 12 Oct 2007 09:43:20 +0000 (09:43 +0000)]
New test for Safe

p4raw-id: //depot/perl@32104

14 years agoFunny symbol table names can be shared, too
Rafael Garcia-Suarez [Fri, 12 Oct 2007 07:47:42 +0000 (07:47 +0000)]
Funny symbol table names can be shared, too

p4raw-id: //depot/perl@32103

14 years agoShare the internal XS functions defined in universal.c
Rafael Garcia-Suarez [Fri, 12 Oct 2007 07:41:18 +0000 (07:41 +0000)]
Share the internal XS functions defined in universal.c
to Safe compartments

p4raw-id: //depot/perl@32102

14 years agoUpdate IPC::Cmd to 0.38
Jos I. Boumans [Thu, 11 Oct 2007 17:24:50 +0000 (19:24 +0200)]
Update IPC::Cmd to 0.38
From: "Jos I. Boumans" <jos@dwim.org>
Message-Id: <E88BE0DB-CA4E-4798-AB5B-3D45D1B5799B@dwim.org>

p4raw-id: //depot/perl@32101

14 years agopp_int should treat refs as UVs (not IVs)
Jerry D. Hedden [Thu, 11 Oct 2007 10:23:03 +0000 (06:23 -0400)]
pp_int should treat refs as UVs (not IVs)
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510710110723p6cbed55fo558777258061b556@mail.gmail.com>

p4raw-id: //depot/perl@32100

14 years agoGentler theads test
Jerry D. Hedden [Thu, 11 Oct 2007 09:12:21 +0000 (05:12 -0400)]
Gentler theads test
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510710110612j6ecaa1d5ta1a6f2a4e3e13ed3@mail.gmail.com>

p4raw-id: //depot/perl@32099

14 years agoMove threads test added in change 32091
Jerry D. Hedden [Wed, 10 Oct 2007 12:39:23 +0000 (08:39 -0400)]
Move threads test added in change 32091
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510710100939v29aef6beqcb782934e641ea79@mail.gmail.com>

p4raw-id: //depot/perl@32098

14 years agoPorting/Maintainers.pm --check added functionality
Robin Barker [Wed, 10 Oct 2007 18:11:36 +0000 (19:11 +0100)]
Porting/Maintainers.pm --check added functionality
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226C9D1F2@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@32097

14 years agoadd calling hints to perldebug.pod
Richard Foley [Wed, 10 Oct 2007 15:29:39 +0000 (17:29 +0200)]
add calling hints to perldebug.pod
Message-Id: <200710101529.39895.Richard.Foley@rfi.net>

p4raw-id: //depot/perl@32096

14 years agoPorting/Maintainers.pl
Robin Barker [Wed, 10 Oct 2007 17:52:38 +0000 (18:52 +0100)]
Porting/Maintainers.pl
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226C9D1F1@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@32095

14 years agoRemove an obsolete test for h2ph, that was always skipped.
Rafael Garcia-Suarez [Wed, 10 Oct 2007 20:38:54 +0000 (20:38 +0000)]
Remove an obsolete test for h2ph, that was always skipped.
New tests are needed.

p4raw-id: //depot/perl@32094

14 years agoDelete files removed by latest CPANPLUS update
Rafael Garcia-Suarez [Wed, 10 Oct 2007 15:37:14 +0000 (15:37 +0000)]
Delete files removed by latest CPANPLUS update

p4raw-id: //depot/perl@32093

14 years agoUpdate CPANPLUS to 0.83_02
Rafael Garcia-Suarez [Wed, 10 Oct 2007 15:36:53 +0000 (15:36 +0000)]
Update CPANPLUS to 0.83_02

p4raw-id: //depot/perl@32092

14 years agonewCONTSUB() wasn't thread-safe ([perl #45053])
Dave Mitchell [Wed, 10 Oct 2007 15:03:16 +0000 (15:03 +0000)]
newCONTSUB() wasn't thread-safe ([perl #45053])

p4raw-id: //depot/perl@32091

14 years agoIf we use @{[]} (a.k.a. baby-cart) interpolation, we got warnings
Rafael Garcia-Suarez [Wed, 10 Oct 2007 08:17:07 +0000 (08:17 +0000)]
If we use @{[]} (a.k.a. baby-cart) interpolation, we got warnings
when $" is undefined.

p4raw-id: //depot/perl@32090

14 years agoAs we know the length, replace strEQ with memEQs in S_doopen_pm().
Nicholas Clark [Tue, 9 Oct 2007 21:55:56 +0000 (21:55 +0000)]
As we know the length, replace strEQ with memEQs in S_doopen_pm().

p4raw-id: //depot/perl@32089

14 years agoIf PERL_DISABLE_PMC is defined, doopen_pm() is just a direct call to
Nicholas Clark [Tue, 9 Oct 2007 21:32:50 +0000 (21:32 +0000)]
If PERL_DISABLE_PMC is defined, doopen_pm() is just a direct call to
check_type_and_open(). So for this case make it a macro, to save a
level of function call.

p4raw-id: //depot/perl@32088

14 years agoReplace Perl_sv_setpvf(aTHX_ namesv, "%s/%s", dir, name); in require's
Nicholas Clark [Tue, 9 Oct 2007 20:45:49 +0000 (20:45 +0000)]
Replace Perl_sv_setpvf(aTHX_ namesv, "%s/%s", dir, name); in require's
loop over @INC with direct perl API calls that allocate sufficient
memory up front, avoid the need to parse a format string, and avoid
the need to call strlen() on either parameter.

p4raw-id: //depot/perl@32087

14 years agoRemove the strlen in doopen_pm() by passing in the length. (As we know
Nicholas Clark [Tue, 9 Oct 2007 20:06:57 +0000 (20:06 +0000)]
Remove the strlen in doopen_pm() by passing in the length. (As we know
it already in the caller). Remove the unchanging mode parameter from
doopen_pm() and check_type_and_open(), as it's always PERL_SCRIPT_MODE.

p4raw-id: //depot/perl@32086

14 years agoRemove a call to *printf from the require code.
Nicholas Clark [Tue, 9 Oct 2007 17:56:13 +0000 (17:56 +0000)]
Remove a call to *printf from the require code.

p4raw-id: //depot/perl@32085

14 years agoTests for the .pmc functionality.
Nicholas Clark [Tue, 9 Oct 2007 17:03:53 +0000 (17:03 +0000)]
Tests for the .pmc functionality.

p4raw-id: //depot/perl@32084

14 years agoFiles names for pragmas strict and warnings can end in .pmc
Rafael Garcia-Suarez [Tue, 9 Oct 2007 15:26:26 +0000 (15:26 +0000)]
Files names for pragmas strict and warnings can end in .pmc

p4raw-id: //depot/perl@32083

14 years agoFix description of "." in unpack() in perl5100delta
Rafael Garcia-Suarez [Tue, 9 Oct 2007 15:14:53 +0000 (15:14 +0000)]
Fix description of "." in unpack() in perl5100delta

p4raw-id: //depot/perl@32082

14 years agoperlmodlib.pod has changed, too
Rafael Garcia-Suarez [Tue, 9 Oct 2007 13:08:41 +0000 (13:08 +0000)]
perlmodlib.pod has changed, too

p4raw-id: //depot/perl@32081

14 years agoAdd a rough, incomplete version of perl5100delta
Rafael Garcia-Suarez [Tue, 9 Oct 2007 13:06:26 +0000 (13:06 +0000)]
Add a rough, incomplete version of perl5100delta

p4raw-id: //depot/perl@32080

14 years ago[perl #45823] [PATCH] v5.8.8. pod2html: <a name="example"> anchor, but <a href="item_...
Axel Kollmorgen [Thu, 27 Sep 2007 16:03:38 +0000 (09:03 -0700)]
[perl #45823] [PATCH] v5.8.8. pod2html: <a name="example"> anchor, but <a href="item_example"> link
From: Axel Kollmorgen (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-10743-1190934218-322.45823-75-0@perl.org>

p4raw-id: //depot/perl@32079

14 years agoIncrement IPC::SysV version number.
Marcus Holland-Moritz [Tue, 9 Oct 2007 12:01:22 +0000 (12:01 +0000)]
Increment IPC::SysV version number.

p4raw-id: //depot/perl@32078

14 years agoFix fallback definitions of S_IRWX[UGO] (didn't include
Marcus Holland-Moritz [Tue, 9 Oct 2007 12:00:27 +0000 (12:00 +0000)]
Fix fallback definitions of S_IRWX[UGO] (didn't include
the 'X', but 'W' twice) and fix the value of IPC_GETACL,
which was set to IPC_EXCL.

p4raw-id: //depot/perl@32077

14 years agoDon't deparse $^H{v_string}, which is automatically set by the
Nicholas Clark [Tue, 9 Oct 2007 11:57:16 +0000 (11:57 +0000)]
Don't deparse $^H{v_string}, which is automatically set by the
internals. Doing so confuses modules that test the round-tripping of
various code.

p4raw-id: //depot/perl@32076

14 years agoFree temporary scalars later, because they might be still needed
Rafael Garcia-Suarez [Tue, 9 Oct 2007 10:56:56 +0000 (10:56 +0000)]
Free temporary scalars later, because they might be still needed
when restoring magic

p4raw-id: //depot/perl@32075

14 years agoRe: [perl #46217] (resent) Typeglobs vs. SUPER:: (Hook::LexWrap failure)
Brandon Black [Mon, 8 Oct 2007 08:54:35 +0000 (03:54 -0500)]
Re: [perl #46217] (resent) Typeglobs vs. SUPER:: (Hook::LexWrap failure)
From: "Brandon Black" <blblack@gmail.com>
Message-ID: <84621a60710080654s589f57eax90b7f78558ad8b6f@mail.gmail.com>

new tests.

p4raw-id: //depot/perl@32074

14 years agoNew opcode category :load, for require, dofile and caller.
Rafael Garcia-Suarez [Tue, 9 Oct 2007 08:46:24 +0000 (08:46 +0000)]
New opcode category :load, for require, dofile and caller.

p4raw-id: //depot/perl@32073

14 years agomake t/op/pack.t not explode when u64size=''
Alexander Gough [Mon, 8 Oct 2007 16:09:35 +0000 (17:09 +0100)]
make t/op/pack.t not explode when u64size=''
Message-ID: <20071008150935.GE24241@the.earth.li>

p4raw-id: //depot/perl@32072

14 years agoSuggestion by Rick Delaney to make this test pass with -Duse64bitall
Rafael Garcia-Suarez [Mon, 8 Oct 2007 15:52:37 +0000 (15:52 +0000)]
Suggestion by Rick Delaney to make this test pass with -Duse64bitall
on HP-UX (see bug #46011)

p4raw-id: //depot/perl@32071

14 years agoBuild with -Dusemymalloc was broken
Rafael Garcia-Suarez [Mon, 8 Oct 2007 14:09:23 +0000 (14:09 +0000)]
Build with -Dusemymalloc was broken

p4raw-id: //depot/perl@32070

14 years agoTime::Piece & matherr on qnx4
Alexander Gough [Mon, 8 Oct 2007 13:10:04 +0000 (14:10 +0100)]
Time::Piece & matherr on qnx4
Message-ID: <20071008121004.GB24241@the.earth.li>

Plus, bump version number of Time::Piece to 1.11_03

p4raw-id: //depot/perl@32069

14 years agoMove (most of) the conditionally compiled members of the interpreter
Nicholas Clark [Mon, 8 Oct 2007 11:37:27 +0000 (11:37 +0000)]
Move (most of) the conditionally compiled members of the interpreter
structure to the end.

p4raw-id: //depot/perl@32068

14 years agoShrink 4 bytes (ILP32) from the interpreter structure.
Nicholas Clark [Mon, 8 Oct 2007 11:09:06 +0000 (11:09 +0000)]
Shrink 4 bytes (ILP32) from the interpreter structure.
(Spotted a U8 sized hole, and filled the known U16 sized hole).
Moved the sig_pending so that its int fills the 4 byte space left by
csh_len, to reduce padding on LP64.

p4raw-id: //depot/perl@32067

14 years agoDo the same as #32061 for Win32, which also fixes a static linking
Steve Hay [Mon, 8 Oct 2007 10:17:41 +0000 (10:17 +0000)]
Do the same as #32061 for Win32, which also fixes a static linking
build problem with Hash/Util/FieldHash

p4raw-id: //depot/perl@32066

14 years agoRe: [perl #46217] (resent) Typeglobs vs. SUPER:: (Hook::LexWrap failure)
Brandon Black [Sun, 7 Oct 2007 22:36:36 +0000 (17:36 -0500)]
Re: [perl #46217] (resent) Typeglobs vs. SUPER:: (Hook::LexWrap failure)
From: "Brandon Black" <blblack@gmail.com>
Message-ID: <84621a60710072036l60c29016tba8a32b8021b5b24@mail.gmail.com>

p4raw-id: //depot/perl@32065

14 years agoSilence compiler warnings on Win32 (VC6)
Steve Hay [Mon, 8 Oct 2007 08:46:36 +0000 (08:46 +0000)]
Silence compiler warnings on Win32 (VC6)

p4raw-id: //depot/perl@32064

14 years agoDocumentation change to go with change #32056.
Rafael Garcia-Suarez [Mon, 8 Oct 2007 08:46:30 +0000 (08:46 +0000)]
Documentation change to go with change #32056.
p4raw-link: @32056 on //depot/perl: f0d36289ce76f882218c0a53cd52f716a167e5bb

p4raw-id: //depot/perl@32063

14 years agoRe: [perl #46011] [RESOLVED] overload "0+" doesn't handle integer results
Rick Delaney [Sun, 7 Oct 2007 22:37:01 +0000 (18:37 -0400)]
Re: [perl #46011] [RESOLVED] overload "0+" doesn't handle integer results
Message-ID: <20071008023701.GI29047@bort.ca>

p4raw-id: //depot/perl@32062

14 years ago[Patch] Configure doesn't pick up Hash/Util/FieldHash
Alexander Gough [Mon, 8 Oct 2007 00:29:11 +0000 (01:29 +0100)]
[Patch] Configure doesn't pick up Hash/Util/FieldHash
Message-ID: <20071007232910.GA24241@the.earth.li>

p4raw-id: //depot/perl@32061

14 years agoRe: [perl #46011] overload "0+" doesn't handle integer results
Rick Delaney [Sun, 7 Oct 2007 00:22:14 +0000 (20:22 -0400)]
Re: [perl #46011] overload "0+" doesn't handle integer results
Message-ID: <20071007042214.GH29047@bort.ca>

p4raw-id: //depot/perl@32059

14 years agoRe: several compilation problems on VMS in perl@32039
Craig A. Berry [Sat, 6 Oct 2007 13:47:03 +0000 (08:47 -0500)]
Re: several compilation problems on VMS in perl@32039
From: "Craig A. Berry" <craig.a.berry@gmail.com>
Message-ID: <c9ab31fc0710061147x3ee7f9bdg2b1bac3acd018bb2@mail.gmail.com>
Date: Sat, 6 Oct 2007 13:47:03 -0500

p4raw-id: //depot/perl@32058

14 years agoFinally! Worked out how to const Perl_moreswitches().
Nicholas Clark [Sat, 6 Oct 2007 23:44:50 +0000 (23:44 +0000)]
Finally! Worked out how to const Perl_moreswitches().
Although I've committed crimes against indenting to avoid losing
blame annotation history. Revisit this when we have version control
that can easily see through whitespace changes.
[Can probably now propagate consting inside S_parse_body(),
Perl_moreswitches() and Perl_yylex(), but that will not affect the
external API, so can wait until after 5.10]

p4raw-id: //depot/perl@32057

14 years ago"A" should no longer be in the list of options acceptable to PERL5OPT,
Nicholas Clark [Sat, 6 Oct 2007 22:22:20 +0000 (22:22 +0000)]
"A" should no longer be in the list of options acceptable to PERL5OPT,
now that assertions have been removed.

p4raw-id: //depot/perl@32056

14 years agoPropagate the perlapi.pod part of change 32026 back to the source POD.
Nicholas Clark [Sat, 6 Oct 2007 21:24:32 +0000 (21:24 +0000)]
Propagate the perlapi.pod part of change 32026 back to the source POD.

p4raw-id: //depot/perl@32055

14 years agoRemove remaining C<Nullch>s and C<Nullsv>s
Nicholas Clark [Sat, 6 Oct 2007 21:23:23 +0000 (21:23 +0000)]
Remove remaining C<Nullch>s and C<Nullsv>s

p4raw-id: //depot/perl@32054

14 years agoAdd symlink support to Cwd::_vms_abs_path.
Craig A. Berry [Sat, 6 Oct 2007 18:28:59 +0000 (18:28 +0000)]
Add symlink support to Cwd::_vms_abs_path.

p4raw-id: //depot/perl@32053

14 years agoThe scratch scalar used in -d processing for : and = options would leak
Nicholas Clark [Sat, 6 Oct 2007 16:32:36 +0000 (16:32 +0000)]
The scratch scalar used in -d processing for : and = options would leak
as it was never freed.

p4raw-id: //depot/perl@32052

14 years agoNothing* outside the core uses the old misspelling
Nicholas Clark [Sat, 6 Oct 2007 15:38:52 +0000 (15:38 +0000)]
Nothing* outside the core uses the old misspelling
PERL_PV_PRETTY_ELIPSES, so remove it.
* well, nothing that Google can find. Same thing, isn't it? :-)

p4raw-id: //depot/perl@32051

14 years agoFix precedence bug in the logic for PERL_PV_ESCAPE_NOCLEAR in
Nicholas Clark [Sat, 6 Oct 2007 15:29:44 +0000 (15:29 +0000)]
Fix precedence bug in the logic for PERL_PV_ESCAPE_NOCLEAR in
Perl_pv_escape()

p4raw-id: //depot/perl@32050

14 years agoUse the PERL_PV_PRETTY_NOCLEAR flag to simplify the code in
Nicholas Clark [Sat, 6 Oct 2007 15:04:53 +0000 (15:04 +0000)]
Use the PERL_PV_PRETTY_NOCLEAR flag to simplify the code in
Perl_regprop() for the EXACT node case.

p4raw-id: //depot/perl@32049

14 years agoAdd a new flag PERL_PV_PRETTY_NOCLEAR (actually just
Nicholas Clark [Sat, 6 Oct 2007 15:04:04 +0000 (15:04 +0000)]
Add a new flag PERL_PV_PRETTY_NOCLEAR (actually just
PERL_PV_ESCAPE_NOCLEAR), and change Perl_pv_pretty() so that if this
bit is set, the output SV is not reset to an empty string.

p4raw-id: //depot/perl@32048

14 years agoFix typo in change 32043 - s/sv_catpvf/sv_catpvs/
Nicholas Clark [Sat, 6 Oct 2007 14:56:18 +0000 (14:56 +0000)]
Fix typo in change 32043 - s/sv_catpvf/sv_catpvs/

p4raw-id: //depot/perl@32047

14 years agoUpgrade to Time-HiRes-1.9708
Steve Peters [Sat, 6 Oct 2007 13:30:59 +0000 (13:30 +0000)]
Upgrade to Time-HiRes-1.9708

p4raw-id: //depot/perl@32046

14 years agonewSV(size) and SvPOK_on() will be more efficient than newSVpvs("")
Nicholas Clark [Sat, 6 Oct 2007 12:55:29 +0000 (12:55 +0000)]
newSV(size) and SvPOK_on() will be more efficient than newSVpvs("")
followed by SvGROW(size+1)

p4raw-id: //depot/perl@32045

14 years agoUse vnewSVpvf() rather than sv_vcatpvf() onto a newly created empty
Nicholas Clark [Sat, 6 Oct 2007 12:54:32 +0000 (12:54 +0000)]
Use vnewSVpvf() rather than sv_vcatpvf() onto a newly created empty
string.

p4raw-id: //depot/perl@32044

14 years agoAvoid using *pvf functions when the format string is a fixed string.
Nicholas Clark [Sat, 6 Oct 2007 12:23:15 +0000 (12:23 +0000)]
Avoid using *pvf functions when the format string is a fixed string.

p4raw-id: //depot/perl@32043

14 years agoDirectly create the SV with Perl_newSVpvf() rather than using
Nicholas Clark [Sat, 6 Oct 2007 12:22:58 +0000 (12:22 +0000)]
Directly create the SV with Perl_newSVpvf() rather than using
Perl_catSVpvf() to extend a zero-length SV.

p4raw-id: //depot/perl@32042

14 years agoOptimise the logic in isPRINT(), possible following Jarkko's bugfix
Nicholas Clark [Sat, 6 Oct 2007 10:27:17 +0000 (10:27 +0000)]
Optimise the logic in isPRINT(), possible following Jarkko's bugfix
of change 10855. (to the implementation added in change 18)
Nothing that a decent compiler optimiser would have missed.

p4raw-id: //depot/perl@32041

14 years agoRevert one hunk of change 32034 that had the possibility of being buggy
Nicholas Clark [Sat, 6 Oct 2007 10:23:26 +0000 (10:23 +0000)]
Revert one hunk of change 32034 that had the possibility of being buggy
(the sprintf "%c" code will work correctly when the SV is UTF-8).
Audit all the rest for UTF-8 correctness, and force SvUTF-8_off() in
utf8.c to ensure correctness. (The string is reset to "", so this will
not be a behaviour change.)

p4raw-id: //depot/perl@32040

14 years agoIn the MAD code, eliminate one Perl_sv_catpvf() and convert one
Nicholas Clark [Fri, 5 Oct 2007 23:03:14 +0000 (23:03 +0000)]
In the MAD code, eliminate one Perl_sv_catpvf() and convert one
construction to *pvs.

p4raw-id: //depot/perl@32039

14 years agoChange a sv_catpv() to sv_catpvs().
Nicholas Clark [Fri, 5 Oct 2007 23:02:16 +0000 (23:02 +0000)]
Change a sv_catpv() to sv_catpvs().

p4raw-id: //depot/perl@32038

14 years agosymlink() wrapper for VMS that prevents the creation of symlinks
Craig A. Berry [Fri, 5 Oct 2007 22:37:23 +0000 (22:37 +0000)]
symlink() wrapper for VMS that prevents the creation of symlinks
with zero-length names.  The standards disallow that and the test
suite gets indigestion.

p4raw-id: //depot/perl@32037

14 years agoEliminate the Perl_sv_catpvf() in TRIE_STORE_REVCHAR
Nicholas Clark [Fri, 5 Oct 2007 21:46:39 +0000 (21:46 +0000)]
Eliminate the Perl_sv_catpvf() in TRIE_STORE_REVCHAR

p4raw-id: //depot/perl@32036

14 years agoPL_cshname is actually a constant value known at compile time.
Nicholas Clark [Fri, 5 Oct 2007 20:31:23 +0000 (20:31 +0000)]
PL_cshname is actually a constant value known at compile time.
PL_cshlen can be calculated by the compiler. So eliminate both as
interpreter variables, and the code that calculates PL_cshlen at
runtime.

p4raw-id: //depot/perl@32035

14 years agoEliminate most *printf-like calls that use a simple "%c" format,
Nicholas Clark [Fri, 5 Oct 2007 19:48:27 +0000 (19:48 +0000)]
Eliminate most *printf-like calls that use a simple "%c" format,
replacing them with constructions that are more efficient because they
avoid the overhead of the *printf format parser and interpreter code.

p4raw-id: //depot/perl@32034

14 years agoWith the demise of PERL_FLEXIBLE_EXCEPTIONS, S_docatch_body() can be
Nicholas Clark [Fri, 5 Oct 2007 18:15:06 +0000 (18:15 +0000)]
With the demise of PERL_FLEXIBLE_EXCEPTIONS, S_docatch_body() can be
inlined and eliminated.

p4raw-id: //depot/perl@32033

14 years agoAs PL_hinthv is actually tied, need to call SvSETMAGIC() after the
Nicholas Clark [Fri, 5 Oct 2007 16:08:12 +0000 (16:08 +0000)]
As PL_hinthv is actually tied, need to call SvSETMAGIC() after the
store to it. Gosh, the tied hash API is clunky.

p4raw-id: //depot/perl@32032

14 years agoNew [PATCH] use 5.006; use 5.10.0
Robin Barker [Fri, 5 Oct 2007 12:12:05 +0000 (13:12 +0100)]
New [PATCH] use 5.006; use 5.10.0
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B7226016048DB@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@32031

14 years agoUpdate add-package.pl
Jos I. Boumans [Thu, 4 Oct 2007 11:24:05 +0000 (13:24 +0200)]
Update add-package.pl
From: "Jos I. Boumans" <jos@dwim.org>
Message-Id: <9D8CA217-8B5B-487E-96A4-92D9047FE921@dwim.org>

p4raw-id: //depot/perl@32030

14 years agopatch@32028 POD updates for VMS
John E. Malmberg [Thu, 4 Oct 2007 22:25:34 +0000 (17:25 -0500)]
patch@32028 POD updates for VMS
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-id: <4705AEAE.9060100@qsl.net>

p4raw-id: //depot/perl@32029