perl.git
11 years agoIn PL_regexp_padav, store regexps via real references, rather than
Nicholas Clark [Tue, 8 Jan 2008 17:10:29 +0000 (17:10 +0000)] 
In PL_regexp_padav, store regexps via real references, rather than
hiding them within IVs. We can do this now that they are real SV
pointers.

p4raw-id: //depot/perl@32900

11 years agoCorrect a long-standing ithreads reference counting anonamly - the
Nicholas Clark [Tue, 8 Jan 2008 16:42:31 +0000 (16:42 +0000)] 
Correct a long-standing ithreads reference counting anonamly - the
reference count only needs "doubling" when the scalar is pushed onto
PL_regex_padav for the second time.

p4raw-id: //depot/perl@32899

11 years agoARRAY(0x...) is not very helpful in sprintf.t diagnostics
Yitzchak Scott-Thoennes [Mon, 7 Jan 2008 23:24:01 +0000 (15:24 -0800)] 
ARRAY(0x...) is not very helpful in sprintf.t diagnostics
Message-ID: <55933.71.35.169.13.1199777041.squirrel@webmail.efn.org>
From: "Yitzchak Scott-Thoennes" <sthoenna@efn.org>
Date: Mon, 7 Jan 2008 23:24:01 -0800 (PST)

p4raw-id: //depot/perl@32897

11 years agoPost change 32880, restore the dummy sub Regexp::DESTROY {}
Nicholas Clark [Mon, 7 Jan 2008 23:31:34 +0000 (23:31 +0000)] 
Post change 32880, restore the dummy sub Regexp::DESTROY {}

p4raw-id: //depot/perl@32896

11 years agoClarify the use of SVf_BREAK on PL_reg_curpm.
Nicholas Clark [Mon, 7 Jan 2008 21:17:10 +0000 (21:17 +0000)] 
Clarify the use of SVf_BREAK on PL_reg_curpm.

p4raw-id: //depot/perl@32895

11 years agoDon't set the public IV or NV flags if the string converted from has
Nicholas Clark [Mon, 7 Jan 2008 18:24:39 +0000 (18:24 +0000)] 
Don't set the public IV or NV flags if the string converted from has
trailing garbage. This behaviour is consistent with not setting the
public IV or NV flags if the value is out of range for the type.

p4raw-id: //depot/perl@32894

11 years agoSave an upgrade each by first setting the NV on PL_sv_yes and PL_sv_no
Nicholas Clark [Mon, 7 Jan 2008 17:27:51 +0000 (17:27 +0000)] 
Save an upgrade each by first setting the NV on PL_sv_yes and PL_sv_no
at interpreter construction time.

p4raw-id: //depot/perl@32893

11 years agov5.8.8: File::Temp.pm (_gettemp): ignore dir -w test on Cygwin
Jari Aalto [Sat, 5 Jan 2008 13:22:17 +0000 (15:22 +0200)] 
v5.8.8: File::Temp.pm (_gettemp): ignore dir -w test on Cygwin
Message-ID: <bq8034ba.fsf@blue.sea.net>

p4raw-id: //depot/perl@32892

11 years agoBig slowdown in 5.10 @_ parameter passing
Rick Delaney [Sun, 6 Jan 2008 14:14:39 +0000 (09:14 -0500)] 
Big slowdown in 5.10 @_ parameter passing
Message-ID: <20080106191439.GF13935@bort.ca>

p4raw-id: //depot/perl@32891

11 years agoReREFCNT_inc() should return a pointer to REGEXP.
Nicholas Clark [Mon, 7 Jan 2008 13:53:57 +0000 (13:53 +0000)] 
ReREFCNT_inc() should return a pointer to REGEXP.
[I don't get warnings about void context here, but I'm sure someone
will :-(]

p4raw-id: //depot/perl@32890

11 years agoWin32 doesn't set $Config{d_fork} when its pseudofork emulation is
Steve Hay [Mon, 7 Jan 2008 12:17:51 +0000 (12:17 +0000)] 
Win32 doesn't set $Config{d_fork} when its pseudofork emulation is
present, and checking for $Config{d_pseudofork} is no good for dual-
lived modules that must work with older perls, so do a more elaborate
test (as per existing Test-Simple and IO test scripts).

p4raw-id: //depot/perl@32889

11 years agoLet's remove the grep in void context warning.
Rafael Garcia-Suarez [Mon, 7 Jan 2008 11:21:29 +0000 (11:21 +0000)] 
Let's remove the grep in void context warning.

p4raw-id: //depot/perl@32888

11 years ago- perlcommunity.patch (1/1) [PATCH] perlcommunity: "Perl Mongers" and calendar correc...
brian d foy [Fri, 4 Jan 2008 14:07:27 +0000 (08:07 -0600)] 
- perlcommunity.patch (1/1) [PATCH] perlcommunity: "Perl Mongers" and calendar corrections
Message-ID: <040120081407272341%brian.d.foy@gmail.com>

p4raw-id: //depot/perl@32887

11 years agoCleanup lib/B
Jerry D. Hedden [Fri, 4 Jan 2008 13:22:36 +0000 (08:22 -0500)] 
Cleanup lib/B
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510801041022i5535ed7frfd64a93d99036e18@mail.gmail.com>

p4raw-id: //depot/perl@32886

11 years agoCleanup File::Temp test file (revised)
Jerry D. Hedden [Fri, 4 Jan 2008 12:39:35 +0000 (07:39 -0500)] 
Cleanup File::Temp test file (revised)
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510801040939t560c459dm6b780ab3dc5cc6c3@mail.gmail.com>

p4raw-id: //depot/perl@32885

11 years agodev version numbers, xs and warnings dont play together nicely, so use MM->parse_vers...
Yves Orton [Mon, 7 Jan 2008 00:20:33 +0000 (00:20 +0000)] 
dev version numbers, xs and warnings dont play together nicely, so use MM->parse_version() to smooth over the cracks....

p4raw-id: //depot/perl@32884

11 years agoSilence new warning grep in void context warning in various modules and test files...
Yves Orton [Sun, 6 Jan 2008 21:43:24 +0000 (21:43 +0000)] 
Silence new warning grep in void context warning in various modules and test files, also silence a warning that came from a previous 'dev' version number bump.

p4raw-id: //depot/perl@32883

11 years agoRemove FIXME that is already fixed.
Yves Orton [Sun, 6 Jan 2008 21:34:43 +0000 (21:34 +0000)] 
Remove FIXME that is already fixed.

p4raw-id: //depot/perl@32882

11 years agoMake Data::Dumper handle blessed regexes properly, bump version as well. This may...
Yves Orton [Sun, 6 Jan 2008 20:34:41 +0000 (20:34 +0000)] 
Make Data::Dumper handle blessed regexes properly, bump version as well. This may not be entirely correct on older perls, needs further investigation.

p4raw-id: //depot/perl@32881

11 years agoMake new regex type be 'REGEXP' and make all core qr//'s be in class Regexp (and...
Yves Orton [Sun, 6 Jan 2008 20:33:48 +0000 (20:33 +0000)] 
Make new regex type be 'REGEXP' and make all core qr//'s be in class Regexp (and related changes)

p4raw-id: //depot/perl@32880

11 years agoDon't use grep in scalar context
Rafael Garcia-Suarez [Sun, 6 Jan 2008 18:00:41 +0000 (18:00 +0000)] 
Don't use grep in scalar context

p4raw-id: //depot/perl@32879

11 years agoFix "grep in void context" warnings
Rafael Garcia-Suarez [Sun, 6 Jan 2008 17:56:03 +0000 (17:56 +0000)] 
Fix "grep in void context" warnings

p4raw-id: //depot/perl@32878

11 years agoFix "grep in void context" warning
Rafael Garcia-Suarez [Sun, 6 Jan 2008 17:54:19 +0000 (17:54 +0000)] 
Fix "grep in void context" warning

p4raw-id: //depot/perl@32877

11 years agoRe: grep and smart match should warn in void context
Michael G. Schwern [Sun, 23 Dec 2007 11:56:08 +0000 (03:56 -0800)] 
Re: grep and smart match should warn in void context
Message-ID: <476EBD58.9050505@pobox.com>

p4raw-id: //depot/perl@32876

11 years agoDocument that sitecustomize.pl in run from a BEGIN block
Rafael Garcia-Suarez [Sun, 6 Jan 2008 16:37:21 +0000 (16:37 +0000)] 
Document that sitecustomize.pl in run from a BEGIN block

p4raw-id: //depot/perl@32875

11 years ago[perl #49003] pp_ftrread appears to use the wrong access mode for -x when using ...
pravus@cpan.org [Fri, 21 Dec 2007 10:05:15 +0000 (02:05 -0800)] 
[perl #49003] pp_ftrread appears to use the wrong access mode for -x when using "use filetest 'access';"
From: pravus@cpan.org (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-22850-1198260315-255.49003-75-0@perl.org>

p4raw-id: //depot/perl@32874

11 years agoRe: [perl #49264] say behaves as just print on tied filehandle
Michael G. Schwern [Wed, 2 Jan 2008 17:08:36 +0000 (09:08 -0800)] 
Re: [perl #49264] say behaves as just print on tied filehandle
Message-ID: <477C3594.9080302@pobox.com>

p4raw-id: //depot/perl@32873

11 years ago\X is equivalent to an atomic group
Moritz Lenz [Sat, 5 Jan 2008 17:14:44 +0000 (18:14 +0100)] 
\X is equivalent to an atomic group
Message-ID: <477FACF4.5030801@casella.verplant.org>

p4raw-id: //depot/perl@32872

11 years agoRe: Smoke [5.11.0] 32864 FAIL(F) MSWin32 Win2003 SP2 (x86/1 cpu)
Abe Timmerman [Sun, 6 Jan 2008 12:24:10 +0000 (13:24 +0100)] 
Re: Smoke [5.11.0] 32864 FAIL(F) MSWin32 Win2003 SP2 (x86/1 cpu)
Message-ID: <4780BA5A.80202@ztreet.demon.nl>

Skip lib/File/Temp/t/fork.t when there is no fork.

p4raw-id: //depot/perl@32871

11 years ago'~~' is not a feature [repost]
Jerry D. Hedden [Fri, 4 Jan 2008 14:11:32 +0000 (09:11 -0500)] 
'~~' is not a feature [repost]
From: "Jerry D. Hedden" <jdhedden@cpan.org>
Message-ID: <1ff86f510801041111q1730ce02hbcac80b91d78a244@mail.gmail.com>

p4raw-id: //depot/perl@32870

11 years agoFix bug #49298: B::Deparse fails to deparse a reference to an anonymous hash
Rafael Garcia-Suarez [Sun, 6 Jan 2008 15:37:13 +0000 (15:37 +0000)] 
Fix bug #49298: B::Deparse fails to deparse a reference to an anonymous hash

p4raw-id: //depot/perl@32869

11 years agoEnforce some type safety in PM_SETRE by adding PM_SETRE_OFFSET.
Nicholas Clark [Sun, 6 Jan 2008 15:21:53 +0000 (15:21 +0000)] 
Enforce some type safety in PM_SETRE by adding PM_SETRE_OFFSET.

p4raw-id: //depot/perl@32868

11 years agoClarify the intent of the code in Perl_op_clear. Under ithreads, avoid
Nicholas Clark [Sun, 6 Jan 2008 13:35:38 +0000 (13:35 +0000)] 
Clarify the intent of the code in Perl_op_clear. Under ithreads, avoid
calling sv_ivset twice. As a side effect, eliminate PM_GETRE_SAFE
and PM_SETRE_SAFE, as we're doing "safe" explicitly in Perl_op_clear().

p4raw-id: //depot/perl@32867

11 years agoFix a bug in mad - regexps can be 8 bit, not just ASCII or UTF-8.
Nicholas Clark [Sun, 6 Jan 2008 13:04:51 +0000 (13:04 +0000)] 
Fix a bug in mad - regexps can be 8 bit, not just ASCII or UTF-8.

p4raw-id: //depot/perl@32866

11 years agoFix compilation issues and warnings with exotic configuration.
Marcus Holland-Moritz [Sun, 6 Jan 2008 11:05:27 +0000 (11:05 +0000)] 
Fix compilation issues and warnings with exotic configuration.

p4raw-id: //depot/perl@32865

11 years agoconsting Compress::Raw::Zlib and Filter::Util::Call
Robin Barker [Sat, 22 Dec 2007 00:47:51 +0000 (00:47 +0000)] 
consting Compress::Raw::Zlib and Filter::Util::Call
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399F@exchsvr2.npl.ad.local>

p4raw-id: //depot/perl@32864

11 years agoAllow sv_setsv_flags() to copy SVt_REGEXP much like it copies
Nicholas Clark [Sun, 6 Jan 2008 00:23:23 +0000 (00:23 +0000)] 
Allow sv_setsv_flags() to copy SVt_REGEXP much like it copies
SVt_FORMAT - the just string buffer.

p4raw-id: //depot/perl@32863

11 years agoFix a compilation warning created when RX_PRELEN() was changed to
Nicholas Clark [Sat, 5 Jan 2008 22:55:02 +0000 (22:55 +0000)] 
Fix a compilation warning created when RX_PRELEN() was changed to
SvCUR(), which is an unsigned value.
[Mmm, how many remaining parts of the regexp struct should be
unsigned]

p4raw-id: //depot/perl@32862

11 years agoMake REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).
Nicholas Clark [Sat, 5 Jan 2008 22:33:12 +0000 (22:33 +0000)] 
Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).

p4raw-id: //depot/perl@32861

11 years agoTypo fix
Rafael Garcia-Suarez [Sat, 5 Jan 2008 21:36:22 +0000 (21:36 +0000)] 
Typo fix

p4raw-id: //depot/perl@32860

11 years agoDon't allocate the NV slot for SVt_REGEXP.
Nicholas Clark [Sat, 5 Jan 2008 21:33:30 +0000 (21:33 +0000)] 
Don't allocate the NV slot for SVt_REGEXP.

p4raw-id: //depot/perl@32859

11 years agoAutoSplit is dual-lived, and is part of the AutoLoader distribution
Rafael Garcia-Suarez [Sat, 5 Jan 2008 21:17:39 +0000 (21:17 +0000)] 
AutoSplit is dual-lived, and is part of the AutoLoader distribution

p4raw-id: //depot/perl@32858

11 years agoFix regexec.c so $^N and $+ are correctly updated so that they work properly inside...
Moritz Lenz [Sat, 5 Jan 2008 17:14:37 +0000 (18:14 +0100)] 
Fix regexec.c so $^N and $+ are correctly updated so that they work properly inside of (?{...}) blocks as reported by Moritz Lenz in

Subject: Bugs in extended regexp features
Message-ID: <477FACED.4000505@casella.verplant.org>

p4raw-id: //depot/perl@32857

11 years ago$Test::Harness::Verbose is a numeric value now so assigning -v to it isnt all that...
Yves Orton [Sat, 5 Jan 2008 20:25:52 +0000 (20:25 +0000)] 
$Test::Harness::Verbose is a numeric value now so assigning -v to it isnt all that helpful.

p4raw-id: //depot/perl@32856

11 years agoAdd a small note about numbered feature bundles
Rafael Garcia-Suarez [Sat, 5 Jan 2008 20:06:59 +0000 (20:06 +0000)] 
Add a small note about numbered feature bundles

p4raw-id: //depot/perl@32855

11 years agoIn struct regexp move the member paren_names to the IV union.
Nicholas Clark [Sat, 5 Jan 2008 18:02:02 +0000 (18:02 +0000)] 
In struct regexp move the member paren_names to the IV union.

p4raw-id: //depot/perl@32854

11 years agoConvert all accesses of the member paren_names of struct regexp to
Nicholas Clark [Sat, 5 Jan 2008 17:44:04 +0000 (17:44 +0000)] 
Convert all accesses of the member paren_names of struct regexp to
be accessed via RXp_PAREN_NAMES(). (They are entirely within the
regexp implementation).

p4raw-id: //depot/perl@32853

11 years agoAbolish RXf_UTF8. Store the UTF-8-ness of the pattern with SvUTF8().
Nicholas Clark [Sat, 5 Jan 2008 17:15:30 +0000 (17:15 +0000)] 
Abolish RXf_UTF8. Store the UTF-8-ness of the pattern with SvUTF8().

p4raw-id: //depot/perl@32852

11 years agoMake Perl_pregcomp() use SvUTF8() of the pattern, rather than the flag
Nicholas Clark [Sat, 5 Jan 2008 16:47:06 +0000 (16:47 +0000)] 
Make Perl_pregcomp() use SvUTF8() of the pattern, rather than the flag
bit in pmflags, to decide whether the pattern is UTF-8.

p4raw-id: //depot/perl@32851

11 years agos/re/rx/ in an assert overlooked during recent renovations
Yves Orton [Sat, 5 Jan 2008 16:16:47 +0000 (16:16 +0000)] 
s/re/rx/ in an assert overlooked during recent renovations

p4raw-id: //depot/perl@32850

11 years agoReplace all reads of RXf_UTF8 with RX_UTF8().
Nicholas Clark [Sat, 5 Jan 2008 16:07:21 +0000 (16:07 +0000)] 
Replace all reads of RXf_UTF8 with RX_UTF8().

p4raw-id: //depot/perl@32849

11 years agoAdd a 'test-reonly' target to the standard Makefile for *nix. (Not quite as clever...
Yves Orton [Sat, 5 Jan 2008 16:00:46 +0000 (16:00 +0000)] 
Add a 'test-reonly' target to the standard Makefile for *nix. (Not quite as clever as the one for win32, im working on it)

p4raw-id: //depot/perl@32848

11 years agoRemove IPC::SysV constant files from the MANIFEST.
Marcus Holland-Moritz [Sat, 5 Jan 2008 15:49:31 +0000 (15:49 +0000)] 
Remove IPC::SysV constant files from the MANIFEST.

p4raw-id: //depot/perl@32847

11 years agoBuild const-(c|xs).inc in IPC::SysV on the fly.
Marcus Holland-Moritz [Sat, 5 Jan 2008 15:47:40 +0000 (15:47 +0000)] 
Build const-(c|xs).inc in IPC::SysV on the fly.

p4raw-id: //depot/perl@32846

11 years agoAbolish wraplen from struct regexp. We're already storing it in SvCUR.
Nicholas Clark [Sat, 5 Jan 2008 15:02:25 +0000 (15:02 +0000)] 
Abolish wraplen from struct regexp. We're already storing it in SvCUR.

p4raw-id: //depot/perl@32845

11 years agoRemove a comment that is no longer necessary since Perl Object bit
Nicholas Clark [Sat, 5 Jan 2008 14:50:07 +0000 (14:50 +0000)] 
Remove a comment that is no longer necessary since Perl Object bit
the dust some time around 5.6

p4raw-id: //depot/perl@32844

11 years agoAbolish RXp_PRELEN(rx) and RXp_WRAPLEN()
Nicholas Clark [Sat, 5 Jan 2008 14:43:55 +0000 (14:43 +0000)] 
Abolish RXp_PRELEN(rx) and RXp_WRAPLEN()
Fix up some uses of RX_* macros in the block conditionally compiled
with STUPID_PATTERN_CHECKS.

p4raw-id: //depot/perl@32843

11 years agoMake ext/re/t/re_funcs.t warnings clean.
Nicholas Clark [Sat, 5 Jan 2008 14:30:01 +0000 (14:30 +0000)] 
Make ext/re/t/re_funcs.t warnings clean.

p4raw-id: //depot/perl@32842

11 years agoAbolish wrapped in struct regexp - store the wrapped pattern pointer
Nicholas Clark [Sat, 5 Jan 2008 14:13:48 +0000 (14:13 +0000)] 
Abolish wrapped in struct regexp - store the wrapped pattern pointer
in the SvPVX().

p4raw-id: //depot/perl@32841

11 years agoAdd RX_UTF8(), which is effectively SvUTF8() but for regexps.
Nicholas Clark [Sat, 5 Jan 2008 13:54:38 +0000 (13:54 +0000)] 
Add RX_UTF8(), which is effectively SvUTF8() but for regexps.
Remove RXp_PRECOMP() and RXp_WRAPPED().
Change the parameter of S_debug_start_match() from regexp to REGEXP.
Change its callers [the only part wrong for 5.10.x]

p4raw-id: //depot/perl@32840

11 years agoProtect me (and my fellow muppets) from screens of "syntax errors" if
Nicholas Clark [Sat, 5 Jan 2008 13:13:36 +0000 (13:13 +0000)] 
Protect me (and my fellow muppets) from screens of "syntax errors" if
one accidentally feeds embed.fnc or t/op/re_tests to the perl
interpreter.

p4raw-id: //depot/perl@32839

11 years agoBER is all very well, but it turns out that it's better to store the
Nicholas Clark [Sat, 5 Jan 2008 11:30:31 +0000 (11:30 +0000)] 
BER is all very well, but it turns out that it's better to store the
offset as either a byte (if <256), or a 0 byte with a STRLEN before.
"better" in that the reading can be inlined, and even then the object
code is smaller (function calls have space overhead). So goodbye
Perl_sv_read_offset() and hello SvOOK_offset().

p4raw-id: //depot/perl@32838

11 years agoFix the compile for -DPERL_OLD_COPY_ON_WRITE (apart from the tenacious
Nicholas Clark [Sat, 5 Jan 2008 00:59:18 +0000 (00:59 +0000)] 
Fix the compile for -DPERL_OLD_COPY_ON_WRITE (apart from the tenacious
broken window: ../ext/Compress/Raw/Zlib/t/07bufsize.t)

p4raw-id: //depot/perl@32837

11 years agoRe-implement the SvOOK() hack to store the offset as a BER encoded
Nicholas Clark [Fri, 4 Jan 2008 23:12:01 +0000 (23:12 +0000)] 
Re-implement the SvOOK() hack to store the offset as a BER encoded
number in the part of the PVX that is being released. (It will always
fit, as chopping off 1 byte gives just enough space for recording a
delta of up to 127). This allows SvOOK() to co-exist with SvIOK_on(),
which means all the calls to SvOOK_off() [with the possibility of a
call to sv_backoff()] in SvIOK_on() can be removed. This ought to make
a lot of straight line code a little bit simpler.
OOK()d scalars can now be SVt_PV, as the IVX isn't needed.

p4raw-id: //depot/perl@32836

11 years agoOops. Forgot to propagate the rename of Perl_re_dup to Perl_re_dup_guts
Nicholas Clark [Fri, 4 Jan 2008 22:20:48 +0000 (22:20 +0000)] 
Oops. Forgot to propagate the rename of Perl_re_dup to Perl_re_dup_guts
into makedef.pl

p4raw-id: //depot/perl@32835

11 years agoRe-implement mPUSHp() and mXPUSHp() using Perl_newSVpvn_flags(), which
Nicholas Clark [Fri, 4 Jan 2008 20:27:42 +0000 (20:27 +0000)] 
Re-implement mPUSHp() and mXPUSHp() using Perl_newSVpvn_flags(), which
results in slightly smaller object code. (No extra work is done.)

p4raw-id: //depot/perl@32834

11 years agoAdd a small program that gets the C pre-processor to expand the macro
Nicholas Clark [Fri, 4 Jan 2008 18:18:02 +0000 (18:18 +0000)] 
Add a small program that gets the C pre-processor to expand the macro
passed on the command line.

p4raw-id: //depot/perl@32833

11 years agoNotice of git tag retraction; also, [PATCH] correct Module::CoreList
Sam Vilain [Thu, 27 Dec 2007 23:27:32 +0000 (12:27 +1300)] 
Notice of git tag retraction; also, [PATCH] correct Module::CoreList
Message-ID: <47737E14.9040908@vilain.net>

p4raw-id: //depot/perl@32832

11 years agoSelfLoader is dual-lived
Rafael Garcia-Suarez [Fri, 4 Jan 2008 15:51:00 +0000 (15:51 +0000)] 
SelfLoader is dual-lived

p4raw-id: //depot/perl@32831

11 years agoUpgrade to SelfLoader 1.13_03
Rafael Garcia-Suarez [Fri, 4 Jan 2008 15:48:32 +0000 (15:48 +0000)] 
Upgrade to SelfLoader 1.13_03

p4raw-id: //depot/perl@32830

11 years agoMove the SelfLoader test files in their own subdirectory
Rafael Garcia-Suarez [Fri, 4 Jan 2008 15:47:48 +0000 (15:47 +0000)] 
Move the SelfLoader test files in their own subdirectory

p4raw-id: //depot/perl@32829

11 years agoFollow up on change #32680. This fixes compilation
Marcus Holland-Moritz [Fri, 4 Jan 2008 15:03:40 +0000 (15:03 +0000)] 
Follow up on change #32680. This fixes compilation
with -DPERL_GLOBAL_STRUCT.
p4raw-link: @32680 on //depot/perl: 878d132a73f5d089e821fedd49aa4835a2786d1d

p4raw-id: //depot/perl@32828

11 years agoUpgrade to Devel::PPPort 3.13_01
Marcus Holland-Moritz [Fri, 4 Jan 2008 14:10:18 +0000 (14:10 +0000)] 
Upgrade to Devel::PPPort 3.13_01

p4raw-id: //depot/perl@32827

11 years agoUpgrade to CGI.pm-3.33. There are still differences between the
Steve Peters [Fri, 4 Jan 2008 13:17:31 +0000 (13:17 +0000)] 
Upgrade to CGI.pm-3.33.  There are still differences between the
core version and CPAN version, so, the version bump continues.

p4raw-id: //depot/perl@32826

11 years agoUpgrade to IO-Zlib-1.09.
Steve Peters [Fri, 4 Jan 2008 13:12:25 +0000 (13:12 +0000)] 
Upgrade to IO-Zlib-1.09.

p4raw-id: //depot/perl@32825

11 years agoThere's no need to handle 'set' magic in the mX?PUSH macros.
Marcus Holland-Moritz [Fri, 4 Jan 2008 12:28:54 +0000 (12:28 +0000)] 
There's no need to handle 'set' magic in the mX?PUSH macros.
The macros all create new mortals using sv_newmortal(), and those
cannot be magical. This is in contrary to the X?PUSH macros, which
operate on TARG, which can be magical.
With that in mind, mentioning whether or not mX?PUSH can handle
'set' magic doesn't make sense any longer.

p4raw-id: //depot/perl@32824

11 years agoRun regen.pl (fixes build on Win32, at least)
Steve Hay [Fri, 4 Jan 2008 10:47:27 +0000 (10:47 +0000)] 
Run regen.pl (fixes build on Win32, at least)

p4raw-id: //depot/perl@32823

11 years agoRe: SV leak?
Vincent Pit [Thu, 3 Jan 2008 19:26:05 +0000 (20:26 +0100)] 
Re: SV leak?
Message-ID: <477D28BD.5060801@profvince.com>

Mortalize SVs that are being pushed on the stack.
Try to use specialized macros for pushing mortals.

p4raw-id: //depot/perl@32822

11 years agoAdd macros mPUSHs() and mXPUSHs() for pushing SVs on the stack
Marcus Holland-Moritz [Fri, 4 Jan 2008 01:06:10 +0000 (01:06 +0000)] 
Add macros mPUSHs() and mXPUSHs() for pushing SVs on the stack
and mortalizing them. Use these macros where possible. And also
mX?PUSH[inpu] where possible.

p4raw-id: //depot/perl@32821

11 years agoMissed three sv_2mortal(newSVpvn(...))s in the headers.
Nicholas Clark [Thu, 3 Jan 2008 17:54:38 +0000 (17:54 +0000)] 
Missed three sv_2mortal(newSVpvn(...))s in the headers.

p4raw-id: //depot/perl@32820

11 years agoAdd newSVpvs_flags() as a wrapper to newSVpvn_flags(), and rework
Nicholas Clark [Thu, 3 Jan 2008 17:42:27 +0000 (17:42 +0000)] 
Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and rework
sv_2mortal(newSVpvs(...)) constructions to use it.

p4raw-id: //depot/perl@32819

11 years agoExtend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set in
Nicholas Clark [Thu, 3 Jan 2008 17:15:53 +0000 (17:15 +0000)] 
Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set in
the flags. Move its implementation just ahead of sv_2mortal()'s for
CPU cache locality. Refactor all code that can be to use this.

p4raw-id: //depot/perl@32818

11 years agoForgot to remove dTARGET with change #32816.
Marcus Holland-Moritz [Thu, 3 Jan 2008 17:10:56 +0000 (17:10 +0000)] 
Forgot to remove dTARGET with change #32816.
p4raw-link: @32816 on //depot/perl: 1eb9e81d303aab0f6c2386f44bc76241948fce0f

p4raw-id: //depot/perl@32817

11 years agoFix memory leaks in XS_PerlIO_get_layers() by mortalizing
Marcus Holland-Moritz [Thu, 3 Jan 2008 17:07:06 +0000 (17:07 +0000)] 
Fix memory leaks in XS_PerlIO_get_layers() by mortalizing
all variables pushed on the stack. Also make sure the loop
is using mXPUSHi() and not XPUSHi().

p4raw-id: //depot/perl@32816

11 years agoWe can now sv_upgrade(sv, SVt_PVHV), so do so, to simplify the code.
Nicholas Clark [Thu, 3 Jan 2008 16:27:13 +0000 (16:27 +0000)] 
We can now sv_upgrade(sv, SVt_PVHV), so do so, to simplify the code.

p4raw-id: //depot/perl@32815

11 years agoUpgrade to Net-Ping-2.34
Steve Peters [Thu, 3 Jan 2008 15:23:36 +0000 (15:23 +0000)] 
Upgrade to Net-Ping-2.34

p4raw-id: //depot/perl@32814

11 years agoPossible future bugs found by the creation of newSVpvn_flags().
Nicholas Clark [Thu, 3 Jan 2008 14:24:29 +0000 (14:24 +0000)] 
Possible future bugs found by the creation of newSVpvn_flags().
But use newSVhek() in preference when possible.

p4raw-id: //depot/perl@32813

11 years agoAdd HeUTF8() to complement HePV() and then immediately suggest that
Nicholas Clark [Thu, 3 Jan 2008 14:23:17 +0000 (14:23 +0000)] 
Add HeUTF8() to complement HePV() and then immediately suggest that
newSVhek(HeKEY_hek(he) is probably what you wanted all along.

p4raw-id: //depot/perl@32812

11 years agoTypo spotted by Jarkko.
Nicholas Clark [Thu, 3 Jan 2008 13:57:17 +0000 (13:57 +0000)] 
Typo spotted by Jarkko.

p4raw-id: //depot/perl@32811

11 years agoFixes to get MAD working after change 32804, and some newSVpvn_utf8()s
Nicholas Clark [Thu, 3 Jan 2008 12:47:25 +0000 (12:47 +0000)] 
Fixes to get MAD working after change 32804, and some newSVpvn_utf8()s
I missed becase (silly Nick) the grep for plausible files was done on
the 5.8.x tree.

p4raw-id: //depot/perl@32810

11 years agoRE: How to load a "loadable object" that has a non-default file extension ?
Jan Dubois [Sun, 30 Dec 2007 12:52:30 +0000 (04:52 -0800)] 
RE: How to load a "loadable object" that has a non-default file extension ?
From: "Jan Dubois" <jand@activestate.com>
Message-ID: <18a401c84b25$e5272480$af756d80$@com>

p4raw-id: //depot/perl@32809

11 years agoOP_THREADSV was removed by #29727
Rafael Garcia-Suarez [Thu, 3 Jan 2008 10:02:50 +0000 (10:02 +0000)] 
OP_THREADSV was removed by #29727

p4raw-id: //depot/perl@32808

11 years agoAdd a new function newSVpvn_flags(), which takes a third parameter of
Nicholas Clark [Wed, 2 Jan 2008 23:41:21 +0000 (23:41 +0000)] 
Add a new function newSVpvn_flags(), which takes a third parameter of
flag bits. Right now the only flag bit is SVf_UTF8, which will call
SvUTF8_on() on the new SV for you. Provide a wrapper newSVpvn_utf8(),
which takes a boolean, and passes in SVf_UTF8 if that is true.
Refactor the core to use it where possible. It makes the source code
clearer and smaller, but seems to be swings and roundabouts on object
code size.

p4raw-id: //depot/perl@32807

11 years agoSilly Nick - change 32804 missed updating the list of global functions.
Nicholas Clark [Wed, 2 Jan 2008 22:21:50 +0000 (22:21 +0000)] 
Silly Nick - change 32804 missed updating the list of global functions.

p4raw-id: //depot/perl@32806

11 years agoSmall documentation nits
S├ębastien Aperghis-Tramoni [Mon, 31 Dec 2007 21:05:47 +0000 (22:05 +0100)] 
Small documentation nits
Message-Id: <2AF110D6-9183-47C5-BBBA-26C3FB97C3D3@free.fr>

p4raw-id: //depot/perl@32805

11 years agoMake struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,
Nicholas Clark [Wed, 2 Jan 2008 13:47:42 +0000 (13:47 +0000)] 
Make struct regexp the body of SVt_REGEXP SVs, REGEXPs become SVs,
and regexp reference counting is via the regular SV reference counting.
This was not as easy at it looks.

p4raw-id: //depot/perl@32804

11 years agoConvert some "regexp" and "struct regexp" to REGEXP where they are
Nicholas Clark [Wed, 2 Jan 2008 13:07:16 +0000 (13:07 +0000)] 
Convert some "regexp" and "struct regexp" to REGEXP where they are
currently equivalent but will be wrong once the equivalence vanishes.

p4raw-id: //depot/perl@32803

11 years agoWrap all deferences of struct regexp* in macros RX_*() [and for
Nicholas Clark [Wed, 2 Jan 2008 12:06:05 +0000 (12:06 +0000)] 
Wrap all deferences of struct regexp* in macros RX_*() [and for
regcomp.c and regexec.c RXp_* where necessary] so that in future we
can maintain source compatibility when we add an extra level of
dereferencing.

p4raw-id: //depot/perl@32802

11 years agoshield t/test.pl functions from global print modifiers
Michael G. Schwern [Tue, 1 Jan 2008 18:12:36 +0000 (10:12 -0800)] 
shield t/test.pl functions from global print modifiers
Message-ID: <477AF314.9050808@pobox.com>

p4raw-id: //depot/perl@32801

11 years agoUpgrade to constant-1.15
Steve Peters [Tue, 1 Jan 2008 23:46:55 +0000 (23:46 +0000)] 
Upgrade to constant-1.15

p4raw-id: //depot/perl@32800