16 years agoNeeded one more cast after 32760. The VMS compiler complained
Craig A. Berry [Mon, 31 Dec 2007 23:49:48 +0000]
Needed one more cast after 32760.  The VMS compiler complained
that a pointer to int and pointer to long are different things
even though they both point to a 32-bit signed integer.

p4raw-id: //depot/perl@32792

16 years agoFix VMS::Stdio bug introduced in 32713.
Craig A. Berry [Mon, 31 Dec 2007 23:44:35 +0000]
Fix VMS::Stdio bug introduced in 32713.

p4raw-id: //depot/perl@32791

16 years agoAs Perl_magic_setbm() and Perl_magic_setfm() aren't in the public API,
Nicholas Clark [Mon, 31 Dec 2007 15:45:03 +0000]
As Perl_magic_setbm() and Perl_magic_setfm() aren't in the public API,
they can just go.

p4raw-id: //depot/perl@32790

16 years agoPerl_magic_setbm() and Perl_magic_setfm() are mathoms that can be
Nicholas Clark [Mon, 31 Dec 2007 13:54:04 +0000]
Perl_magic_setbm() and Perl_magic_setfm() are mathoms that can be
merged with Perl_magic_setregexp(). [Coverage on the testsuite
suggests that more than that they're actually dead code, but in theory
it should be possible to construct a test case that exercises them.]

p4raw-id: //depot/perl@32789

16 years agoassert() that we're not trying to free scalars a second time.
Nicholas Clark [Mon, 31 Dec 2007 11:04:54 +0000]
assert() that we're not trying to free scalars a second time.

p4raw-id: //depot/perl@32788

16 years agoUpgrade to AutoLoader-5.64
Steve Peters [Mon, 31 Dec 2007 04:08:00 +0000]
Upgrade to AutoLoader-5.64

p4raw-id: //depot/perl@32787

16 years agoUpgrade to Math-Complex-1.38
Steve Peters [Mon, 31 Dec 2007 03:41:01 +0000]
Upgrade to Math-Complex-1.38

p4raw-id: //depot/perl@32786

16 years agoChange 32783 was generating warnings from gcc about an extra semicolon
Nicholas Clark [Sun, 30 Dec 2007 20:23:54 +0000]
Change 32783 was generating warnings from gcc about an extra semicolon
in structure or union. No doubt some non-sloppy compilers will consider
this an error and barf. We don't like barfing.

p4raw-id: //depot/perl@32785

16 years agoAdd script to check source code for ANSI-C violations.
Marcus Holland-Moritz [Sun, 30 Dec 2007 12:20:12 +0000]
Add script to check source code for ANSI-C violations.

p4raw-id: //depot/perl@32784

16 years agofactor out duplicate code in struct xpv*
Marcus Holland-Moritz [Sat, 29 Dec 2007 18:17:42 +0000]
factor out duplicate code in struct xpv*
Message-ID: <20071229181742.1933db40@r2d2>

p4raw-id: //depot/perl@32783

16 years agoAdd file to MANIFEST that hitched a ride with change #32750. It
Steve Peters [Sun, 30 Dec 2007 05:26:15 +0000]
Add file to MANIFEST that hitched a ride with change #32750.  It
hopefully will fix RT #44357.
p4raw-link: @32750 on //depot/perl: 662f1f9e0a1bbee45e1e02386151364c8517604e

p4raw-id: //depot/perl@32782

16 years agoInclude SVf_UTF8 in the bitmask when checking the SvFLAGS in
Marcus Holland-Moritz [Sun, 30 Dec 2007 04:44:40 +0000]
Include SVf_UTF8 in the bitmask when checking the SvFLAGS in
SvPVutf8_force(), as otherwise the conditional expression will
always be false and the optimisation will never kick in.

p4raw-id: //depot/perl@32781

16 years agoUpgrade to IPC::SysV 2.00
Marcus Holland-Moritz [Sun, 30 Dec 2007 02:48:25 +0000]
Upgrade to IPC::SysV 2.00

p4raw-id: //depot/perl@32780

16 years agoTypo in op.c
Vincent Pit [Tue, 25 Dec 2007 17:12:33 +0000]
Typo in op.c
Message-ID: <47712BF1.9060200@profvince.com>

(And then an update to make the tests in gv.t expect the right thing,
and test the behaviour that my change 26482 was originally supposed to
produce, but didn't until this typo was fixed)

p4raw-id: //depot/perl@32779

16 years agoIn sv_chop(), write sentinals over the part of the buffer that is
Nicholas Clark [Sat, 29 Dec 2007 19:50:27 +0000]
In sv_chop(), write sentinals over the part of the buffer that is
thrown away, and verify that they are present in sv_backoff().
assert that we are being asked to chop off positive amounts of buffer.

p4raw-id: //depot/perl@32778

16 years agoMove all code that relies on reading the to-be-thrown-away buffer ahead
Nicholas Clark [Sat, 29 Dec 2007 19:32:52 +0000]
Move all code that relies on reading the to-be-thrown-away buffer ahead
of the call to sv_chop() that throws it away.

p4raw-id: //depot/perl@32777

16 years agoChange 32760 needed to add a cast to avoid a warning.
Nicholas Clark [Sat, 29 Dec 2007 17:35:25 +0000]
Change 32760 needed to add a cast to avoid a warning.

p4raw-id: //depot/perl@32776

16 years agoReorder the external regexp flags to get RXf_PMf_STD_PMMOD into the
Nicholas Clark [Sat, 29 Dec 2007 17:01:51 +0000]
Reorder the external regexp flags to get RXf_PMf_STD_PMMOD into the
lowest 4 bits (which saves a shift), and the "flags indicating special
patterns" into contiguous bits. This makes everything a little tidier,
and saves 88 bytes (woohoo!) of object file with -Os on x86 FreeBSD.

p4raw-id: //depot/perl@32775

16 years agoThe position of the modifier flag bits is actually encoded by a right
Nicholas Clark [Sat, 29 Dec 2007 15:11:04 +0000]
The position of the modifier flag bits is actually encoded by a right
shift 12 in two places, so replace that magic number with a macro
RXf_PMf_STD_PMMOD_SHIFT defined adjacent to the flags it interacts
with.

p4raw-id: //depot/perl@32774

16 years agoSync after metaconfig backports. Some reorders were done
H.Merijn Brand [Sat, 29 Dec 2007 14:54:57 +0000]
Sync after metaconfig backports. Some reorders were done

p4raw-id: //depot/perl@32773

16 years agoPerl_sv_chop() can return early if it's being asked to do nothing.
Nicholas Clark [Sat, 29 Dec 2007 13:33:38 +0000]
Perl_sv_chop() can return early if it's being asked to do nothing.

p4raw-id: //depot/perl@32763

16 years agodie if multiple macros in regexp.h attempt to use the same flag bit.
Nicholas Clark [Sat, 29 Dec 2007 13:29:37 +0000]
die if multiple macros in regexp.h attempt to use the same flag bit.

p4raw-id: //depot/perl@32762

16 years agoFix Perl #49190, tests from Abigail, codefix from me.
Yves Orton [Sat, 29 Dec 2007 13:26:35 +0000]
Fix Perl #49190, tests from Abigail, codefix from me.

p4raw-id: //depot/perl@32761

16 years agoChange Perl_av_iter_p() to return IV* rather than I32* (which means
Nicholas Clark [Sat, 29 Dec 2007 12:28:14 +0000]
Change Perl_av_iter_p() to return IV* rather than I32* (which means
having to allocate memory where sizeof(IV) > sizeof(I32)).

p4raw-id: //depot/perl@32760

16 years agoNote to future self about moving the regexp flag bits around.
Nicholas Clark [Sat, 29 Dec 2007 11:49:09 +0000]
Note to future self about moving the regexp flag bits around.

p4raw-id: //depot/perl@32759

16 years agoWrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() and
Nicholas Clark [Sat, 29 Dec 2007 00:17:41 +0000]
Wrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() and
RX_WRAPLEN() to preserve source compatibility when they get moved
around.

p4raw-id: //depot/perl@32758

16 years agoEliminate prelen from struct regexp. Possibly we are hardcoding a bit
Nicholas Clark [Fri, 28 Dec 2007 23:17:20 +0000]
Eliminate prelen from struct regexp. Possibly we are hardcoding a bit
to much, as the replacement assumes that the wrapping string has
exactly 1 character after the wrapped string [specifically ')'].

p4raw-id: //depot/perl@32757

16 years agoReplace 3 uses of RX_PRELEN(r) with plen, which has the same value.
Nicholas Clark [Fri, 28 Dec 2007 23:15:47 +0000]
Replace 3 uses of RX_PRELEN(r) with plen, which has the same value.
(But isn't a pointer dereference. Or about to become a calculation.)

p4raw-id: //depot/perl@32756

16 years agoEliminate precomp from struct regexp. Store the offset of precomp from
Nicholas Clark [Fri, 28 Dec 2007 22:19:00 +0000]
Eliminate precomp from struct regexp. Store the offset of precomp from
wrapped in pre_prefix, a 4 bit value. (Maybe only for now) reduce
seen_evals from I32 to 28 bits. Will anyone have more than 268435456
eval groups in a regexp?

p4raw-id: //depot/perl@32755

16 years agoSilly Nick. There was a bug in change 30757 whereby the precomp of a
Nicholas Clark [Fri, 28 Dec 2007 22:01:30 +0000]
Silly Nick. There was a bug in change 30757 whereby the precomp of a
dup'd regexp would be pointing somewhere la-la. Probably at the precomp
of the same regexp in the parent thread. (So it is only likely to go
nasal daemon if the parent thread terminates first, or explicitly goes
around freeing up run time generated regexps.)

p4raw-id: //depot/perl@32754

16 years agoWrap all accesses to the members precomp and prelen of struct regexp in
Nicholas Clark [Fri, 28 Dec 2007 21:25:50 +0000]
Wrap all accesses to the members precomp and prelen of struct regexp in
the macros RX_PRECOMP() and RX_PRELEN(). This will allow us to reduce
the regexp storage overhead by computing them at retrieve time.

p4raw-id: //depot/perl@32753

16 years agoDump the REGEXP member of SVt_REGEXP.
Nicholas Clark [Fri, 28 Dec 2007 11:27:10 +0000]
Dump the REGEXP member of SVt_REGEXP.

p4raw-id: //depot/perl@32752

16 years agoFirst class regexps.
Nicholas Clark [Fri, 28 Dec 2007 09:59:06 +0000]
First class regexps.

p4raw-id: //depot/perl@32751

16 years agoSvPVX_const() triggers an assertion that when the sv isn't a PV.
Steve Peters [Fri, 28 Dec 2007 05:05:50 +0000]
SvPVX_const() triggers an assertion that when the sv isn't a PV.
Back this down to just checking to see if the sv is a PV or
not.

p4raw-id: //depot/perl@32750

16 years agoBetter diagnostics for the tests for #20683.
Nicholas Clark [Thu, 27 Dec 2007 23:28:31 +0000]
Better diagnostics for the tests for #20683.

p4raw-id: //depot/perl@32749

16 years agoscalars used in postponed subexpressions aren't first class regexps,
Nicholas Clark [Thu, 27 Dec 2007 21:41:03 +0000]
scalars used in postponed subexpressions aren't first class regexps,
so don't upgrade them to ORANGE before attaching qr magic.
(And don't stop using qr magic once regexps become first class)

p4raw-id: //depot/perl@32748

16 years agoProper $TODO support in &ok() and &iseq() in pat.t
Nicholas Clark [Thu, 27 Dec 2007 21:34:22 +0000]
Proper $TODO support in &ok() and &iseq() in pat.t

p4raw-id: //depot/perl@32747

16 years agoLocalize $\ before changing it, so as not to affect print statements in
Nicholas Clark [Thu, 27 Dec 2007 20:44:26 +0000]
Localize $\ before changing it, so as not to affect print statements in
the rest of the test.

p4raw-id: //depot/perl@32746

16 years agoTest that we can clone regexps into new threads, and fix the bug in
Nicholas Clark [Thu, 27 Dec 2007 20:33:55 +0000]
Test that we can clone regexps into new threads, and fix the bug in
change 32740 that this reveals. (Bug spotted by, and initial patch
from, Jerry D. Hedden.)

p4raw-id: //depot/perl@32745

16 years ago"Automate" change 32648 (ensure that -E always loads the latest
Nicholas Clark [Thu, 27 Dec 2007 19:31:56 +0000]
"Automate" change 32648 (ensure that -E always loads the latest
features)

p4raw-id: //depot/perl@32744

16 years agoYou can't coerce a typeglob to a string. (Restore the error message -
Nicholas Clark [Thu, 27 Dec 2007 18:43:40 +0000]
You can't coerce a typeglob to a string. (Restore the error message -
an assertion failure is not helpful). Test the 3 basic coercion
error messages.

p4raw-id: //depot/perl@32743

16 years agoassert() that the sv_unmagic() in S_regmatch() is unneeded.
Nicholas Clark [Thu, 27 Dec 2007 17:22:06 +0000]
assert() that the sv_unmagic() in S_regmatch() is unneeded.
Add a comment about the mg_find() that follows.

p4raw-id: //depot/perl@32742

16 years agoYou don't need $(DYNALOADER) to make $(nonxs_ext)
Nicholas Clark [Thu, 27 Dec 2007 15:31:28 +0000]
You don't need $(DYNALOADER) to make $(nonxs_ext)
(which makes it easier to run minitest)

p4raw-id: //depot/perl@32741

16 years agoRegexps are now orange.
Nicholas Clark [Thu, 27 Dec 2007 13:46:46 +0000]
Regexps are now orange.
(Correct a comparison of $] with 5.011 in B.pm)

p4raw-id: //depot/perl@32740

16 years agoRemove the last Null(...) from x2p/*
Nicholas Clark [Thu, 27 Dec 2007 11:35:57 +0000]
Remove the last Null(...) from x2p/*
Something tells me that Win32 is compiling x2p with -DPERL_CORE
*nix dosn't do this.

p4raw-id: //depot/perl@32739

16 years agoTweak Perl_sv_upgrade() so that references can upgrade to SVt_PV
Nicholas Clark [Wed, 26 Dec 2007 18:53:48 +0000]
Tweak Perl_sv_upgrade() so that references can upgrade to SVt_PV
rather than something bigger. Fix a possible bug - "reference" to
SVt_NV needs to go direct to SVt_PVNV.

p4raw-id: //depot/perl@32738

16 years agoTake code that occurs in three places to take a scalar and ready it to
Nicholas Clark [Wed, 26 Dec 2007 18:12:32 +0000]
Take code that occurs in three places to take a scalar and ready it to
hold a reference, and convert it to a macro define prepare_SV_for_RV().

p4raw-id: //depot/perl@32737

16 years agoRemove two warnings (sub diag() was redefined, and implict split is
Nicholas Clark [Wed, 26 Dec 2007 17:27:15 +0000]
Remove two warnings (sub diag() was redefined, and implict split is
deprecated)

p4raw-id: //depot/perl@32736

16 years agoUpgrade to File-Temp-0.20
Steve Peters [Wed, 26 Dec 2007 17:06:04 +0000]
Upgrade to File-Temp-0.20

p4raw-id: //depot/perl@32735

16 years agoEliminate SVt_RV, and use SVt_IV to store plain references.
Nicholas Clark [Wed, 26 Dec 2007 17:03:56 +0000]
Eliminate SVt_RV, and use SVt_IV to store plain references.
This frees up a scalar type for first class regular expressions.

p4raw-id: //depot/perl@32734

16 years agoBetter diagnostics by removing an && from an ok() and converting it to
Nicholas Clark [Wed, 26 Dec 2007 17:02:34 +0000]
Better diagnostics by removing an && from an ok() and converting it to
two is()s.

p4raw-id: //depot/perl@32733

16 years agochange/correction to 32246
Robin Barker [Fri, 9 Nov 2007 14:40:22 +0000]
change/correction to 32246
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <2C2E01334A940D4792B3E115F95B722601604912@exchsvr1.npl.ad.local>

p4raw-id: //depot/perl@32732

16 years agoLinking a RT ticket to an open TODO.
Steve Peters [Wed, 26 Dec 2007 15:29:14 +0000]
Linking a RT ticket to an open TODO.

p4raw-id: //depot/perl@32731

16 years agodocs: list of places where $_ is used
Gabor Szabo [Wed, 26 Dec 2007 06:49:34 +0000]
docs: list of places where $_ is used
From: "Gabor Szabo" <szabgab@gmail.com>
Message-ID: <d8a74af10712252049t1b63b475mfca9225324f5fce6@mail.gmail.com>

p4raw-id: //depot/perl@32730

16 years agodocs: replace FH by my $fh in open
Gabor Szabo [Wed, 26 Dec 2007 06:03:29 +0000]
docs: replace FH by my $fh in open
From: "Gabor Szabo" <szabgab@gmail.com>
Message-ID: <d8a74af10712252003m2d3244fbv2955fe17e683063d@mail.gmail.com>

p4raw-id: //depot/perl@32729

16 years ago64-bit fix for Time::Local
Jan Dubois [Thu, 20 Dec 2007 10:18:52 +0000]
64-bit fix for Time::Local
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <044301c84334$c6aa2960$53fe7c20$@com>

p4raw-id: //depot/perl@32728

16 years agoPod::Html: fix markup errors with (nested) definition lists
Brendan O'Dea [Sat, 1 Dec 2007 11:59:12 +0000]
Pod::Html: fix markup errors with (nested) definition lists
Message-ID: <20071201005912.GA14441@londo.c47.org>

p4raw-id: //depot/perl@32727

16 years agoUse print rather than diag(), as these routine messages shouldn't be
Nicholas Clark [Wed, 26 Dec 2007 13:03:27 +0000]
Use print rather than diag(), as these routine messages shouldn't be
going to STDERR.

p4raw-id: //depot/perl@32726

16 years agoSwap SVt_RV and SVt_NV in the SV ordering.
Nicholas Clark [Wed, 26 Dec 2007 11:55:15 +0000]
Swap SVt_RV and SVt_NV in the SV ordering.

p4raw-id: //depot/perl@32725

16 years agoA test for upgrading scalars. Curiously, before this, lib/Math/Trig.t
Nicholas Clark [Wed, 26 Dec 2007 11:22:38 +0000]
A test for upgrading scalars. Curiously, before this, lib/Math/Trig.t
was the only code anywhere in the build or testsuite that upgraded an
NV to an RV.

p4raw-id: //depot/perl@32724

16 years agopatch - chg 32721 missed a couple Nullstrs
Jim Cromie [Tue, 25 Dec 2007 05:39:30 +0000]
patch - chg 32721 missed a couple Nullstrs
Message-ID: <4770FA02.2080800@gmail.com>

p4raw-id: //depot/perl@32723

16 years agoRE: [PATCH] s/perl510/perl511/g
Jan Dubois [Mon, 24 Dec 2007 15:30:31 +0000]
RE: [PATCH] s/perl510/perl511/g
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <0cdf01c84684$f99c3310$ecd49930$@com>

p4raw-id: //depot/perl@32722

16 years agoRemove Nullch etc. from x2p
Jan Dubois [Mon, 24 Dec 2007 14:58:20 +0000]
Remove Nullch etc. from x2p
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <0cca01c84680$7afc9170$70f5b450$@com>

p4raw-id: //depot/perl@32721

16 years agoPATCH re 32711
Robin Barker [Mon, 24 Dec 2007 20:56:13 +0000]
PATCH re 32711
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D0939A4@exchsvr2.npl.ad.local>

"IMO patch 32711 is better implemented using (the existing) NUM2PTR macro, as below/attached."

p4raw-id: //depot/perl@32720

16 years agoCorrect the correction. This one is both a correcly spelled word, and
Nicholas Clark [Sun, 23 Dec 2007 22:29:17 +0000]
Correct the correction. This one is both a correcly spelled word, and
the word I was originally aiming for. Or if it's not, I'm sure that
given infinite monkeys we'll get there sometime around the heat death
of the universe.

p4raw-id: //depot/perl@32719

16 years agoFix my typo in a comment.
Nicholas Clark [Sun, 23 Dec 2007 20:25:25 +0000]
Fix my typo in a comment.

p4raw-id: //depot/perl@32718

16 years agoIn SvPV_free(), assert() that no-one is trying to free up a reference.
Nicholas Clark [Sun, 23 Dec 2007 12:31:26 +0000]
In SvPV_free(), assert() that no-one is trying to free up a reference.

p4raw-id: //depot/perl@32717

16 years ago{ my $a; } not warning about being used only once is a something
Nicholas Clark [Sun, 23 Dec 2007 12:28:53 +0000]
{ my $a; } not warning about being used only once is a something
TO be DOne.

p4raw-id: //depot/perl@32716

16 years agoAdd an assert() to verify my assumption that no-one upgrades a scalar
Nicholas Clark [Sun, 23 Dec 2007 11:27:25 +0000]
Add an assert() to verify my assumption that no-one upgrades a scalar
which has a referant but isn't flagged as a reference.

p4raw-id: //depot/perl@32715

16 years agoWelcome to Perl 5.11, win32!
Steve Peters [Sun, 23 Dec 2007 02:15:30 +0000]
Welcome to Perl 5.11, win32!

p4raw-id: //depot/perl@32714

16 years agoNullch and others were still alive and well in some of the operating
Steve Peters [Sun, 23 Dec 2007 00:39:17 +0000]
Nullch and others were still alive and well in some of the operating
system specific directories.  I think I've chainsawed all of them now,
but I can't guarantee that it compiles anywhere from win32.

p4raw-id: //depot/perl@32713

16 years agoFix cygwin.c again
Jerry D. Hedden [Sat, 22 Dec 2007 16:11:48 +0000]
Fix cygwin.c again
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510712221311v1c58d606jc8dfeee6a21e6194@mail.gmail.com>

Fixes breakage caused by change #32707
p4raw-link: @32707 on //depot/perl: 24792b8dabd61fb81a064d275b67bc65123a8d4c

p4raw-id: //depot/perl@32712

16 years agoRemove warning about casting integer to different sized pointer.
Nicholas Clark [Sat, 22 Dec 2007 19:55:17 +0000]
Remove warning about casting integer to different sized pointer.

p4raw-id: //depot/perl@32711

16 years agoThe ext/Cwd/Cwd.xs part of...
Robin Barker [Sat, 22 Dec 2007 00:52:54 +0000]
The ext/Cwd/Cwd.xs part of...

Subject: consting Cwd and ExtUtils::ParseXS
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D0939A0@exchsvr2.npl.ad.local>

lib/ExtUtils/ParseXS.pm had changes already made with change
#32691.

p4raw-id: //depot/perl@32710

16 years agoUpgrade to IPC::SysV 1.99_07
Marcus Holland-Moritz [Sat, 22 Dec 2007 19:35:52 +0000]
Upgrade to IPC::SysV 1.99_07

p4raw-id: //depot/perl@32709

16 years agoReplace our assert-which-can-be-caught-by-eval with the real deal from
Nicholas Clark [Sat, 22 Dec 2007 19:22:48 +0000]
Replace our assert-which-can-be-caught-by-eval with the real deal from
the standard C library. Make ours available as Perl_assert(), if you
really want that.
assert() is only #include'd if you compile with -DDEBUGGING.

p4raw-id: //depot/perl@32708

16 years agoRemove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_na
Nicholas Clark [Sat, 22 Dec 2007 18:26:21 +0000]
Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_na
when PERL_CORE is defined. (Which, "obviously", is only in code
within the perl source tree, which we control). Nullop remains, and
would be moderately invasive to remove.

p4raw-id: //depot/perl@32707

16 years agoHateful software that sends my cursor keys as packets that can get
Nicholas Clark [Sat, 22 Dec 2007 18:17:46 +0000]
Hateful software that sends my cursor keys as packets that can get
split, and more hateful software that decides that split packets
means not-a-cursor-key.

p4raw-id: //depot/perl@32706

16 years agoAdd a Configure probe for <assert.h>
Nicholas Clark [Sat, 22 Dec 2007 17:51:03 +0000]
Add a Configure probe for <assert.h>

p4raw-id: //depot/perl@32705

16 years agoExterminate PL_na! Exterminate! Exterminate! Exterminate!
Nicholas Clark [Sat, 22 Dec 2007 17:00:24 +0000]
Exterminate PL_na! Exterminate! Exterminate! Exterminate!

p4raw-id: //depot/perl@32704

16 years agoext/ consting
Robin Barker [Sat, 22 Dec 2007 00:39:47 +0000]
ext/ consting
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399D@exchsvr2.npl.ad.local>
Date: Sat, 22 Dec 2007 00:39:47 -0000

p4raw-id: //depot/perl@32703

16 years agoBy moving the "can't upgrade downwards" croak() in Perl_sv_upgrade()
Nicholas Clark [Sat, 22 Dec 2007 16:05:50 +0000]
By moving the "can't upgrade downwards" croak() in Perl_sv_upgrade()
after the type changing logic, we allow sv_upgrade() from SVt_NV to
SVt_IV to "work" (SVt_NV beomes SVt_PVNV in the type changing logic)
which simplifies the code for Perl_sv_setiv() slightly.

p4raw-id: //depot/perl@32702

16 years agoCorrect the minor mistake of changes 32675 and 32676 - the check should
Nicholas Clark [Sat, 22 Dec 2007 12:50:35 +0000]
Correct the minor mistake of changes 32675 and 32676 - the check should
be on whether the SV had a body before upgrading. As was, SVt_RV would
needlessly have re-zeroed memory.

p4raw-id: //depot/perl@32701

16 years agoIntegrate:
Nicholas Clark [Sat, 22 Dec 2007 11:28:02 +0000]
Integrate:
[ 32483]
Use a new (clean) anonymous hash for each loop, rather than a hash in
the pad, as the latter can change internal state sufficiently to
confuse matters (even though in all cases it has no keys and from
Perl space is "measurably" identical).

[ 32500]
Get APItest.xs compiling on 5.8.x by making the compilation of the
Perl_hv_common() test code conditional on the macro hv_common being
defined, and the refcounted_he code conditional on it being 5.9 or
later.

[ 32501]
Hack round the fact that UNITCHECK is nothing special on 5.8.x by
conditionally creating a sub UNITCHECK(&);

[ 32502]
UNITCHECK isn't anything special in 5.8.x, so don't run those tests.

[ 32503]
Skip the op.t API test as it's not relevant to 5.8.x (%^H propagation).
Correct the expectations of hash.t and svsetsv.t for 5.8.x.

[ 32507]
Test both dMY_CXT and dMY_CXT_INTERP.
p4raw-link: @32507 on //depot/blead-maint-fixup/perl: 948cafa0ee2c83e155ea7f64aa3684aa54c83031
p4raw-link: @32503 on //depot/blead-maint-fixup/perl: 0a4679392d1fb21a111f1f0a9e93261b2b2cd4e7
p4raw-link: @32502 on //depot/blead-maint-fixup/perl: cfed56ecfc9c769a0f76147400aa46972ddbb0be
p4raw-link: @32501 on //depot/blead-maint-fixup/perl: 8221ebfdedcb3fbfc645196464faaf397ba18800
p4raw-link: @32500 on //depot/blead-maint-fixup/perl: 77ea6e921df11217724b2f5c3c6b6a6ff488ab44
p4raw-link: @32483 on //depot/blead-maint-fixup/perl: 42b4d13769a3b10e7ffb0a3d275d2fdda0245bd5

p4raw-id: //depot/perl@32699
p4raw-integrated: from //depot/blead-maint-fixup/perl@32698 'copy in'
ext/XS/APItest/APItest.pm ext/XS/APItest/APItest.xs
ext/XS/APItest/t/hash.t ext/XS/APItest/t/my_cxt.t
ext/XS/APItest/t/op.t ext/XS/APItest/t/svsetsv.t
ext/XS/APItest/t/xs_special_subs.t
ext/XS/APItest/t/xs_special_subs_require.t (@32482..) 'merge
in' perl.h (@32504..)

16 years agoIntegrate:
Nicholas Clark [Sat, 22 Dec 2007 11:15:49 +0000]
Integrate:
[ 32509]
For 5.8.8 and earlier, always call newCONSTSUB(), as the interpreter
doesn't support proxy constant subroutines. For all 5.8.x add a cast
to (char *) for the second argument to newCONSTSUB().
p4raw-link: @32509 on //depot/maint-5.8/perl: e60da08bc525b4d06d02281a467ff7e0ecd8c763

p4raw-id: //depot/perl@32698
p4raw-integrated: from //depot/maint-5.8/perl@32693 'copy in'
lib/ExtUtils/Constant/ProxySubs.pm (@32393..)

16 years agoAdd const to a few prototypes. (Patch from Robin Barker.)
Abhijit Menon-Sen [Sat, 22 Dec 2007 03:58:49 +0000]
Add const to a few prototypes. (Patch from Robin Barker.)

p4raw-id: //depot/perl@32693

16 years agoDocument each/keys/values @array
Nicholas Clark [Fri, 21 Dec 2007 17:58:03 +0000]
Document each/keys/values @array

p4raw-id: //depot/perl@32692

16 years agoClean up a warning with -Wwrite-strings that gets passed into every
Steve Peters [Fri, 21 Dec 2007 16:31:45 +0000]
Clean up a warning with -Wwrite-strings that gets passed into every
parsed XS file.

p4raw-id: //depot/perl@32691

16 years agoC<make translators> -Wwrite-strings clean
Robin Barker [Fri, 21 Dec 2007 14:30:20 +0000]
C<make translators> -Wwrite-strings clean
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399C@exchsvr2.npl.ad.local>

p4raw-id: //depot/perl@32690

16 years agoconst'ing in cygwin.c
Jerry D. Hedden [Fri, 21 Dec 2007 09:13:41 +0000]
const'ing in cygwin.c
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510712210613s71712346i6e9f2b5e7275aa34@mail.gmail.com>

p4raw-id: //depot/perl@32689

16 years agoUpdate the hash documentation to reflect the changes between 5.8.1 and
Nicholas Clark [Fri, 21 Dec 2007 12:09:04 +0000]
Update the hash documentation to reflect the changes between 5.8.1 and
5.8.2, that disabled the automatic randomisation of all hashes.

p4raw-id: //depot/perl@32688

16 years agoDeparse each @array and friends.
Nicholas Clark [Fri, 21 Dec 2007 11:34:30 +0000]
Deparse each @array and friends.

p4raw-id: //depot/perl@32687

16 years agomg_free frees data but leaves it accessible
Yuval Kogman [Fri, 21 Dec 2007 00:13:31 +0000]
mg_free frees data but leaves it accessible
Message-ID: <20071220221331.GG10631@woobling.org>
Date: Fri, 21 Dec 2007 00:13:31 +0200

p4raw-id: //depot/perl@32686

16 years agoFix remaining skips for Test::Harness
Andy Armstrong [Thu, 20 Dec 2007 23:16:01 +0000]
Fix remaining skips for Test::Harness
Message-Id: <01A7A7EC-1C9C-40B1-90E8-DC1E5BA54400@hexten.net>

(except for test-harness-compat.t which failed unthreaded under harness
and except for reverting the defined $ENV{PERL_UNICODE})

p4raw-id: //depot/perl@32685

16 years agoFor 5.12 we can simply exterminate! the private function
Nicholas Clark [Fri, 21 Dec 2007 07:42:56 +0000]
For 5.12 we can simply exterminate! the private function
Perl_magic_setglob().

p4raw-id: //depot/perl@32684

16 years ago[perl #37607] CGI file upload file name parsing errors
Marko Asplund [Fri, 4 Nov 2005 13:40:05 +0000]
[perl #37607] CGI file upload file name parsing errors
Message-ID: <5.8.7_13518_1131102897@merlot.kronodoc.fi>

p4raw-id: //depot/perl@32683

16 years agoRegen some files...
Steve Peters [Thu, 20 Dec 2007 22:22:59 +0000]
Regen some files...

p4raw-id: //depot/perl@32682

16 years agomake miniperl -Wwrite-strings clean
Robin Barker [Thu, 20 Dec 2007 18:29:25 +0000]
make miniperl -Wwrite-strings clean
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399A@exchsvr2.npl.ad.local>

p4raw-id: //depot/perl@32681

16 years agoImplement each @array.
Nicholas Clark [Thu, 20 Dec 2007 21:15:57 +0000]
Implement each @array.
Documentation needed, FIXME for proper 64 bit support of arrays longer
than 2**32, re-order the new ops at the end if merging to 5.10.x.

p4raw-id: //depot/perl@32680

16 years agoCorrect the embed.fnc descriptions of newAV() and newHV() - they do not
Nicholas Clark [Thu, 20 Dec 2007 20:58:25 +0000]
Correct the embed.fnc descriptions of newAV() and newHV() - they do not
return memory allocated à la malloc(), as it comes from an arena.

p4raw-id: //depot/perl@32679