This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
14 years agoAvoid a SEGV in DBI's test suite, discovered by Andreas.
Nicholas Clark [Mon, 15 Jan 2007 16:30:37 +0000 (16:30 +0000)]
Avoid a SEGV in DBI's test suite, discovered by Andreas.
Probably need to go through and audit to see if there are analagous
places that need tweaking.

p4raw-id: //depot/maint-5.8/perl@29832

14 years agoIntegrate:
Nicholas Clark [Sun, 14 Jan 2007 13:47:07 +0000 (13:47 +0000)]
Integrate:
[ 26983]
Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.
Many strlen()s saved.

[ 27050]
Yet more instances of gv_fetchpv... that should be GV_ADD rather than
TRUE.
Convert two gv_fetchpvn_flags to gv_fetchpvs.

[ 27053]
gv_fetchpvn_flags ranks highly in the profile, and the ::/' scanning
loop is iterated over millions of times. Add a flag GV_NOTQUAL purely
as an optimisation, when the caller is passing in a string that is
known not to contain any package separators.
p4raw-link: @27053 on //depot/perl: fafc274c285207343d70f4a0d51c29a2f492863a
p4raw-link: @27050 on //depot/perl: 71315bf2ed5c47e3f417cdce95f41fe9b0da6b1f
p4raw-link: @26983 on //depot/perl: 5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64

p4raw-id: //depot/maint-5.8/perl@29809
p4raw-integrated: from //depot/perl@27053 'edit in' pp_sys.c (@26983..)
gv.c (@27050..) 'merge in' gv.h (@26664..)
p4raw-integrated: from //depot/perl@27050 'edit in' pp_ctl.c (@26983..)
doio.c (@27028..)
p4raw-integrated: from //depot/perl@26983 'edit in' pp_sort.c
(@26675..) toke.c (@26901..) op.c (@26926..) perl.c (@26947..)
util.c (@26979..) 'merge in' handy.h (@26901..)

14 years agoIntegrate:
Nicholas Clark [Sun, 14 Jan 2007 13:22:20 +0000 (13:22 +0000)]
Integrate:
[ 26946]
SvREADONLY_off inside the magic routines is also dangerous on shared
hash key scalars, so decompose them to normal scalars if they ever
get here.

[ 26954]
Simplify nested '#ifdef' by replacing it with '#elif defined()'
p4raw-link: @26954 on //depot/perl: 4b645107ff280e9efe46ab2fc89b620041a5b949
p4raw-link: @26946 on //depot/perl: d8b2590f979b3ba5689a5135513b1feda3473a5e

p4raw-id: //depot/maint-5.8/perl@29808
p4raw-integrated: from //depot/perl@26954 'edit in' mg.c (@26953..)

14 years agoIntegrate:
Nicholas Clark [Sun, 14 Jan 2007 13:09:22 +0000 (13:09 +0000)]
Integrate:
[ 26901]
Change all NEWSV() to newSV() in the core and non-dual-lived modules.
Keep NEWSV() itself for backwards-compatibility outside of the core,
but don't advertise it any more.
(cf. change #25101).

[ 27455]
Remove two NEWSV()s in the non-ithread dump code that got missed.
p4raw-link: @27455 on //depot/perl: ef2570c41ffc304e9725d0b3f9f07f3c6913340f
p4raw-link: @26901 on //depot/perl: 561b68a973f8a5d10c61d6a02c02f3002a0a63ba
p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada

p4raw-id: //depot/maint-5.8/perl@29807
p4raw-integrated: from //depot/perl@29806 'copy in'
os2/OS2/REXX/REXX.xs (@25101..)
p4raw-integrated: from //depot/perl@27455 'edit in' dump.c (@27434..)
p4raw-edited: from //depot/perl@26901 'edit in' perl.c (@26779..) op.c
(@26803..) pp_ctl.c (@26881..)
p4raw-integrated: from //depot/perl@26901 'copy in'
vms/ext/Stdio/Stdio.xs (@17483..) ext/Opcode/Opcode.xs
(@25530..) pod/perlembed.pod (@26779..) 'edit in' pp.c
(@26675..) scope.c (@26732..) pad.c pp_hot.c regexec.c sv.c
(@26764..) 'merge in' ext/ByteLoader/bytecode.h (@25493..)
pp_pack.c (@26675..) mathoms.c (@26732..) av.c hv.c (@26764..)
pod/perlapi.pod (@26774..) ext/POSIX/POSIX.xs gv.c (@26795..)
pp_sys.c (@26831..) toke.c (@26867..) handy.h (@26871..) doio.c
(@26893..)

14 years agoIntegrate:
Nicholas Clark [Sun, 14 Jan 2007 12:49:30 +0000 (12:49 +0000)]
Integrate:
[ 26765]
Move initialization of old values prior to moreswitches()
closer to their use and together with 'switches_done'.

[ 26767]
Missing an initialisation, as spotted by Merijn's HP compiler.

[ 26786]
Get rid of the following gcc format warnings by simplifying the
getgroups implementation:

  mg.c: In function Perl_magic_get':
  mg.c:1008: warning: long unsigned int format, gid_t arg (arg 3)
  mg.c:1014: warning: long unsigned int format, gid_t arg (arg 3)
  mg.c:1025: warning: long unsigned int format, unsigned int arg (arg 3)

Since we already cast the numeric Gid_t values to an IV it should not
be too risky to also cast the Group_t values.  Converting these values
with Gid_t_f wasn't quite right anyway.

[ 26787]
Refactor S_vdie_common so that Perl_vwarn can use it too.

[ 26791]
Make $( and $) list the groups in the order they
are returned from the OS.  Linux seems to return
the gids sorted and it seemed wrong for perl to
reverse this order.

[ 26893]
Suppress "statement not reached" warning from the Sun C compiler.
p4raw-link: @26893 on //depot/perl: c685562bbea16b50d5c72976dbb3224d4d88fbea
p4raw-link: @26791 on //depot/perl: fb45abb286e885c11569ca1f9190bd239b0f0319
p4raw-link: @26787 on //depot/perl: 46d9c92000d60fdf5f225b00ee64f03ddeaaaad0
p4raw-link: @26786 on //depot/perl: cd70abae37f0090fad1d3fa318844341095d33b2
p4raw-link: @26767 on //depot/perl: 8bee09919c67e00a5c9914bbf7027accbab0d391
p4raw-link: @26765 on //depot/perl: fb993905318403493f26b8d521b1114502de3b51

p4raw-id: //depot/maint-5.8/perl@29806
p4raw-integrated: from //depot/perl@26893 'merge in' doio.c (@26764..)
p4raw-edited: from //depot/perl@26787 'edit in' proto.h (@26764..)
p4raw-integrated: from //depot/perl@26787 'edit in' embed.fnc embed.h
(@26764..) util.c (@26780..)
p4raw-integrated: from //depot/perl@26786 'edit in' mg.c (@26781..)
p4raw-integrated: from //depot/perl@26767 'edit in' toke.c (@26765..)

14 years agoIntegrate:
Nicholas Clark [Sun, 14 Jan 2007 12:22:41 +0000 (12:22 +0000)]
Integrate:
[ 26643]
Fix some compilation warnings

[ 26674]
Subject: [PATCH] performance tweaking op.c
From: Andy Lester <andy@petdance.com>
Date: Fri, 6 Jan 2006 01:44:48 -0600
Message-ID: <20060106074448.GB3401@petdance.com>

[ 26708]
Subject: [PATCH] blead: format warnings
Date: Sat, 07 Jan 2006 21:42:08 +0200
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
Message-ID: <43C01990.6020207@gmail.com>

[ 26764]
Subject: [PATCH] It's the Barbie bus patch
From: Andy Lester <andy@petdance.com>
Date: Mon, 9 Jan 2006 23:42:43 -0600
Message-ID: <20060110054243.GA26165@petdance.com>
p4raw-link: @26764 on //depot/perl: 6136c704e4e88f5381eda30a0d872d75aa9b9d11
p4raw-link: @26708 on //depot/perl: afd78fd5455826b5a73217b8c80ab30a9cdad730
p4raw-link: @26674 on //depot/perl: 3edf23ff129b6c5edde184cb3b63953432223591
p4raw-link: @26643 on //depot/perl: a6b599c70633c3b011aba1a198149d25707cbc98

p4raw-id: //depot/maint-5.8/perl@29804
p4raw-edited: from //depot/perl@26764 'edit in' hv.c op.c (@26676..)
p4raw-integrated: from //depot/perl@26764 'edit in' pp_hot.c regexec.c
toke.c (@26675..) util.c (@26685..) mg.c (@26760..) 'merge in'
reentr.h (@25084..) reentr.c (@25101..) uconfig.sh (@26639..)
embed.h proto.h (@26654..) doio.c gv.c pp_ctl.c (@26675..)
pp_sys.c (@26676..) av.c pad.c (@26732..) embed.fnc (@26756..)
p4raw-edited: from //depot/perl@26708 'edit in' regcomp.c (@26675..)
p4raw-integrated: from //depot/perl@26708 'edit in' sv.c (@26685..)

14 years agoIntegrate:
Andy Lester [Mon, 18 Jul 2005 10:37:38 +0000 (05:37 -0500)]
Integrate:
[ 23773]
If we know the length of the string constant, save a strlen()

[ 25172]
Subject: [PATCH] The continuing plod through embed.fnc
Date: Mon, 18 Jul 2005 10:37:38 -0500
Message-ID: <20050718153738.GB20193@petdance.com>

[ 26635]
Introduce STR_WITH_LEN macro in the form suggested by Chip.

[ 26636]
Fix typo in comment.

[ 26640]
Removed unused part of string passed to sv_catpvn().

[ 26641]
Introduce the macros newSVpvs(str) and sv_catpvs(sv, str).
Gets rid of many hardcoded string lengths.

[ 26642]
Get rid of a few more hardcoded string lengths.

[ 26645]
Get rid of a few more hardcoded string lengths.

[ 26646]
Introduce newSVpvs_share() macro.
Gets rid of some hardcoded string lengths.

[ 26647]
Get rid of hardcoded string length.

[ 26648]
Add an extra NUL so that we can use sv_catpvs()
for "our @F=split..." and get rid of 15 and the
explaination for why it's there.

[ 26649]
Make the new STR_WITH_LEN() affected compile under -Dusethreads.
Can't use STR_WITH_LEN() as argument to a macro :-(

[ 26650]
Move all the xxxpvs() macros to handy.h.
This brings them closer to STR_WITH_LEN.  Besides only half
of them were sv-related after change 26649.

[ 26671]
Replacing broken call to savepvn() with savepvs() to get threaded
Cygwin to compile again.

[ 26676]
Subject: [PATCH] hv_fetchs() support
From: Andy Lester <andy@petdance.com>
Date: Fri, 6 Jan 2006 09:57:19 -0600
Message-ID: <20060106155719.GB9035@petdance.com>

[ 26795]
A few more places that can use hv_fetchs().
Ref change 26676.
p4raw-link: @26795 on //depot/perl: 017a3ce5a449d7513ebed2de872ff4d966fd0b43
p4raw-link: @26676 on //depot/perl: a4fc7abc9c5502fa20253f620ede1e956c44caed
p4raw-link: @26671 on //depot/perl: c86a4f2e37a2a05a9cad736617540ad66d32fda9
p4raw-link: @26650 on //depot/perl: ba3a79e7bc1290494bbec9ddd2cd46b87300eb54
p4raw-link: @26649 on //depot/perl: 89529cee496f815eec2d49f2510449af5063ddd8
p4raw-link: @26648 on //depot/perl: 91d456aef184ffc6173bca456cc087b98f0e0831
p4raw-link: @26647 on //depot/perl: ae58ca13a14e22abe0ed3fb438d6da3c15c964b4
p4raw-link: @26646 on //depot/perl: 18916d0db6e8b0ac0abf09300cb33647d974ddc0
p4raw-link: @26645 on //depot/perl: 6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c
p4raw-link: @26642 on //depot/perl: 1c5d1ca7ee89d1e1782f94ae9883de9a1052a87d
p4raw-link: @26641 on //depot/perl: 396482e1e4786de2b4c8ab57cb613dc0f110b931
p4raw-link: @26640 on //depot/perl: bd5fcaa6efcc067647598367721b802e1f87eaa2
p4raw-link: @26636 on //depot/perl: 65177ae03b6e3dca16f8e50a1c780e8d35a1df2a
p4raw-link: @26635 on //depot/perl: 2efa8cc776fec30c63893949ea1f5a5eb0cd3564
p4raw-link: @25172 on //depot/perl: 9a957fbc017c803266bc4e3766dfcbfb58cfa99b
p4raw-link: @23773 on //depot/perl: ff5bdd3795d35132380ba8c98bc3584895f25c76

p4raw-id: //depot/maint-5.8/perl@29802
p4raw-integrated: from //depot/perl@26795 'edit in' utf8.c (@26675..)
pp_ctl.c (@26764..) mg.c (@26791..) 'merge in'
ext/POSIX/POSIX.xs (@25309..)
p4raw-edited: from //depot/perl@26676 'edit in' op.c (@26675..)
p4raw-integrated: from //depot/perl@26676 'edit in' handy.h (@26652..)
pp_sys.c (@26675..) 'merge in' malloc.c (@25693..) doop.c hv.c
taint.c (@26675..)
p4raw-integrated: from //depot/perl@26650 'edit in' sv.h (@26649..)
p4raw-integrated: from //depot/perl@26649 'edit in' gv.c (@26642..)
locale.c perlio.c sv.c (@26645..)
p4raw-integrated: from //depot/perl@26647 'merge in' thread.h
(@24106..)
p4raw-integrated: from //depot/perl@26641 'edit in' xsutils.c
(@26381..) universal.c (@26502..) dump.c (@26530..) pp.c util.c
(@26562..) toke.c (@26640..) 'merge in' pp_pack.c (@26549..)
regcomp.c (@26562..)
p4raw-integrated: from //depot/perl@23773 'edit in' perl.c (@23755..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 23:40:49 +0000 (23:40 +0000)]
Integrate:
[ 26598]
silence some compiler warnings

[ 26608]
Fix release mode builds following change 26598

[ 26633]
Silence compiler warning; ref change 26598
p4raw-link: @26633 on //depot/perl: fe8247ebb5b1d41f5123d00da404f1a03c6a9e78
p4raw-link: @26608 on //depot/perl: 8688788eaf75c1c6bc22e0fc68eafa35e6ef1f2b
p4raw-link: @26598 on //depot/perl: 36c7798d7abbe7dd4517943c1b5755ab4f2dda73

p4raw-id: //depot/maint-5.8/perl@29801
p4raw-integrated: from //depot/perl@26633 'merge in' op.c (@26574..)
p4raw-edited: from //depot/perl@26608 'edit in' cop.h (@26598..)
p4raw-integrated: from //depot/perl@26598 'merge in' toke.c (@26562..)

14 years agoIntegrate:
Jim Cromie [Fri, 30 Dec 2005 22:45:55 +0000 (15:45 -0700)]
Integrate:
[ 26562]
Update copyrights for files modified in 2006

[ 26564]
Subject: [patch] comment grammar and indentation, spurious tab
Message-ID: <43B61B13.3050704@gmail.com>

[ 26652]
More copyright updates

[ 26732]
Update copyright years (including some years where we made changes but
did not update)
p4raw-link: @26732 on //depot/perl: 54ca4ee7252684545d9524460bab88037e5f584b
p4raw-link: @26652 on //depot/perl: acde74e1470244c2d6e7d36e1cddcb699d9ab106
p4raw-link: @26564 on //depot/perl: f2524eef90e2d17a5a51c9026c3ecddabd465ed5
p4raw-link: @26562 on //depot/perl: b94e2f88b5f2c63d65c0fcd37652030bb9aee3ef

p4raw-id: //depot/maint-5.8/perl@29800
p4raw-integrated: from //depot/perl@29799 'merge in' run.c (@26675..)
p4raw-integrated: from //depot/perl@26732 'edit in' perl.h (@26675..)
'merge in' mg.h (@26569..) deb.c mathoms.c perlvars.h scope.c
(@26675..) taint.c (@26676..)
p4raw-integrated: from //depot/perl@26652 'edit in' thread.h (@26647..)
sv.h (@26650..) 'ignore' perlio.c (@26649..) 'merge in' cop.h
(@26608..) dump.c pp_pack.c (@26641..) locale.c (@26649..)
p4raw-edited: from //depot/perl@26564 'edit in' sv.c (@26562..)
p4raw-integrated: from //depot/perl@26562 'edit in' mg.c (@26558..)
'ignore' doio.c hv.c pp_ctl.c pp_sort.c (@26558..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 23:25:00 +0000 (23:25 +0000)]
Integrate:
[ 26602]
Bad symbols that are pretending to be dirhandles, should say they
are dirhandles in their error messages.

[ 26607]
perldiag.pod additions to go with change #26602.

[ 26617]
Attemting to readdir() something that isn't a dirhandle should cause
a warning.

[ 26631]
Add warnings for the various other *dir() functions when attempted
on invalid dirhandles.

[ 26638]
Don't warn about invalid dirhandles in DirHandle::DESTROY().
p4raw-link: @26638 on //depot/perl: 28ee7c3974ce583dcf5abef3b1a6b1835bcb2db7
p4raw-link: @26631 on //depot/perl: abc7ecadcc190c88a6e937c16c4214f4d0fac0b3
p4raw-link: @26617 on //depot/perl: 3b7fbd4a8e0aec57c7898a1775b0a17a345883de
p4raw-link: @26607 on //depot/perl: 4df3f177ec6976dd82207a4ed033ec8c90400146
p4raw-link: @26602 on //depot/perl: 8b5be85c6c6a87e2cf6fc80a9ccc8056a4d1bbf9

p4raw-id: //depot/maint-5.8/perl@29799
p4raw-integrated: from //depot/perl@29798 'copy in' lib/DirHandle.pm
(@10512..)
p4raw-integrated: from //depot/perl@26617 'edit in' pp_sys.c (@26450..)
p4raw-integrated: from //depot/perl@26607 'edit in' pod/perldiag.pod
(@26547..)
p4raw-integrated: from //depot/perl@26602 'merge in' gv.c (@26534..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 22:58:25 +0000 (22:58 +0000)]
Integrate:
[ 26494]
Don't try to store PL_sv_undef in pads. (For now)

[ 26518]
A GVs stash can be NULL, so don't call macros that assume otherwise
without checking.
p4raw-link: @26518 on //depot/perl: 7fa3a4ab65fb537f19afacdba68180c51faa544e
p4raw-link: @26494 on //depot/perl: 052ca17e0976a44e0d2f61dba30b9c3180fcaccf

p4raw-id: //depot/maint-5.8/perl@29798
p4raw-integrated: from //depot/perl@26518 'edit in' pp.c (@26505..)
p4raw-integrated: from //depot/perl@26494 'merge in' op.c (@26482..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 22:58:03 +0000 (22:58 +0000)]
Integrate:
[ 26538]
In the shared string table, if we add new entries to the head of the
linked list chain, then we don't need as much bookkeeping in the loop.
p4raw-link: @26538 on //depot/perl: 263cb4a6f8ed72054b3a96de216b5a39651a5ec9

p4raw-id: //depot/maint-5.8/perl@29797
p4raw-integrated: from //depot/perl@26538 'edit in' hv.c (@26530..)

14 years agoIntegrate:
Andy Lester [Wed, 28 Dec 2005 13:30:51 +0000 (07:30 -0600)]
Integrate:
[ 26524]
Subject: [PATCH] Fixing the SVREFCNT macro
Message-ID: <20051228193051.GD23207@petdance.com>
p4raw-link: @26524 on //depot/perl: 38a574c7cd99f8022d4ac40300e9e0841811bd6b

p4raw-id: //depot/maint-5.8/perl@29795
p4raw-integrated: from //depot/perl@26524 'edit in' sv.h (@26382..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 19:26:17 +0000 (19:26 +0000)]
Integrate:
[ 26532]
Subject: [PATCH] Perl_gv_fetchpv vs. gv_fetchpvn
From: Tels <nospam-abuse@bloodgate.com>
Date: Thu, 29 Dec 2005 18:32:10 +0100
Message-Id: <200512291832.20651@bloodgate.com>

[ 26533]
Subject: [PATCH] perlio.c - gv_stashpvn() vs gv_stashpv()
From: Tels <nospam-abuse@bloodgate.com>
Date: Thu, 29 Dec 2005 18:57:43 +0100
Message-Id: <200512291857.59458@bloodgate.com>

[ 26556]
Subject: [PATCH] Making 0 pointers to NULLs
From: Andy Lester <andy@petdance.com>
Date: Fri, 30 Dec 2005 23:05:58 -0600
Message-ID: <20051231050558.GA29093@petdance.com>

[ 26558]
Subject: [PATCH] Making 0 pointers to NULLs
From: Andy Lester <andy@petdance.com>
Date: Fri, 30 Dec 2005 23:05:58 -0600
Message-ID: <20051231050558.GA29093@petdance.com>
p4raw-link: @26558 on //depot/perl: cbbf89328f29f925842d180c1410e324b297744d
p4raw-link: @26556 on //depot/perl: 301ccc64ea5df790971635545bbd07c19c67a8b8
p4raw-link: @26533 on //depot/perl: 89c1a98847aab770ea421d315d98085021b6187c
p4raw-link: @26532 on //depot/perl: 9fb9dfd8c3b83c6bae50a175d50c256456391d4c

p4raw-id: //depot/maint-5.8/perl@29794
p4raw-integrated: from //depot/perl@26558 'edit in' hv.c sv.c
(@26556..) 'merge in' doio.c doop.c mg.c pp.c pp_ctl.c util.c
(@26556..)
p4raw-integrated: from //depot/perl@26556 'ignore' regexec.c (@26258..)
utf8.c (@26281..) pp_sort.c (@26402..) pp_hot.c regcomp.c
(@26450..) toke.c (@26526..)
p4raw-integrated: from //depot/perl@26533 'merge in' perlio.c
(@26392..)
p4raw-integrated: from //depot/perl@26532 'edit in' gv.c (@26526..)

14 years agoIntegrate:
Andy Lester [Thu, 29 Dec 2005 01:15:09 +0000 (19:15 -0600)]
Integrate:
[ 26527]
Subject: [PATCH] Actual real consting of parms
Message-ID: <20051229071509.GA32653@petdance.com>
p4raw-link: @26527 on //depot/perl: eb86f8b30b3c669d547a1d9008e5860ab483ae2d

p4raw-id: //depot/maint-5.8/perl@29793
p4raw-edited: from //depot/perl@26527 'edit in' sv.c (@26526..)
p4raw-integrated: from //depot/perl@26527 'ignore' proto.h (@26526..)

14 years agoIntegrate:
Andy Lester [Wed, 28 Dec 2005 15:44:14 +0000 (09:44 -0600)]
Integrate:
[ 26526]
Subject: [PATCH] av.c cleanup, plus!
Message-ID: <20051228214414.GD26033@petdance.com>
p4raw-link: @26526 on //depot/perl: 7a5b473ebcffe303e0ee757c10a615cdeb97e2f3

p4raw-id: //depot/maint-5.8/perl@29792
p4raw-edited: from //depot/perl@26526 'edit in' sv.c (@26523..)
p4raw-integrated: from //depot/perl@26526 'edit in' perl.c (@26432..)
gv.c (@26450..) av.c (@26514..) 'merge in' dump.c (@26450..)
toke.c (@26512..)

14 years agoIntegrate:
Andy Lester [Tue, 27 Dec 2005 14:39:39 +0000 (08:39 -0600)]
Integrate:
[ 26505]
Subject: [PATCH] pre-likely cleanup
Message-ID: <20051227203939.GC1781@petdance.com>

Includes a small fix to the changes in tryAMAGICbinW_var() in pp.h.
p4raw-link: @26505 on //depot/perl: fabdb6c0879db76333e970b6c67260c877fc17b3

p4raw-id: //depot/maint-5.8/perl@29791
p4raw-integrated: from //depot/perl@26505 'edit in' doop.c (@26431..)
'merge in' pp.h (@26015..) av.c (@26132..) hv.c pp.c (@26450..)
sv.c (@26470..) util.c (@26478..) mg.c (@26492..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 18:10:34 +0000 (18:10 +0000)]
Integrate:
[ 26461]
Subject: [PATCH] Speed up Perl_sv_derived_from
From: Andy Lester <andy@petdance.com>
Message-ID: <20051222220044.GH4370@petdance.com>
Date: Thu, 22 Dec 2005 16:00:44 -0600

[ 26477]
For the rare case of EMFILE during require, save object code space
by using newSVpvf
(Would it be worth using it for all require failures?)

[ 26500]
Refactor the require failure message generation to use 1 less temporary
SV, and to build as much text as possible with newSVpvf

[ 26503]
gv_fetch_flags in newATTRSUB can actually be const.
Comment the logic behind the terms in the ternary that chooses the
flags value.

[ 26517]
As the backreferences AV doesn't hold references on its contents,
surely it should have AvREAL turned off?

[ 26534]
Reduce size of buffers for identifier names, as suggested in

Subject: Stack usage (in gv_stashpvn and others)
From: Tels <nospam-abuse@bloodgate.com>
Date: Thu, 29 Dec 2005 18:40:49 +0100
Message-Id: <200512291840.50765@bloodgate.com>

[ 26541]
Now that the backreference array has no NULL entries, and is correctly
marked as AvREAL_off(), there's no reason not to use sv_dup to clone
it.

[ 26544]
Tweak S_init_main_stash so as allocate PL_curstname as a shared string
scalar, and hence avoid thrashing the shared string table for "main".

[ 26550]
Remove unneeded test in Perl_hv_clear_placeholders.
Rejig S_hfreeentries to a double loop, which is clearer and smaller.

[ 26552]
Turn a for loop that's almost a while into an honest-to-goodness while.
p4raw-link: @26552 on //depot/perl: cf6db12b45410d62d1d8568c336c79f938bf3310
p4raw-link: @26550 on //depot/perl: 7440661e2628bf13f68b1828cf423db52f268294
p4raw-link: @26544 on //depot/perl: 23579a14417118b3085c688fa8e8359c0d0a93ba
p4raw-link: @26541 on //depot/perl: d7cbc7b5c258cffaf362ecafb36c5dfc354c1ffa
p4raw-link: @26534 on //depot/perl: 0cea005841294e1c066737aa1ee9f5a7235bc7bc
p4raw-link: @26517 on //depot/perl: e3d998840fa41946cf8ee609337ef4edea761fd2
p4raw-link: @26503 on //depot/perl: b48b272aa95a2266df9fecc3e1bbd0e34ff4d9ae
p4raw-link: @26500 on //depot/perl: b8f04b1b779ce1dfdaee8f5444dc413afe3e9866
p4raw-link: @26477 on //depot/perl: b9b739dc8249ced77343a7411d1a5714224db0f8
p4raw-link: @26461 on //depot/perl: 0b6f4f5cb8bbeb6c5d1eb714dbf6cdf58c5516d7

p4raw-id: //depot/maint-5.8/perl@29789
p4raw-edited: from //depot/perl@26552 'edit in' hv.c (@26551..)
p4raw-integrated: from //depot/perl@26544 'merge in' perl.c (@26535..)
p4raw-edited: from //depot/perl@26534 'edit in' gv.c (@26532..)
p4raw-integrated: from //depot/perl@26517 'edit in' sv.c (@26505..)
p4raw-integrated: from //depot/perl@26503 'merge in' op.c (@26494..)
p4raw-integrated: from //depot/perl@26477 'edit in' pp_ctl.c (@26450..)
p4raw-integrated: from //depot/perl@26461 'merge in' universal.c
(@26450..)

14 years agoIntegrate:
Andy Lester [Thu, 22 Dec 2005 16:38:39 +0000 (10:38 -0600)]
Integrate:
[ 26456]
Subject: [PATCH] Speedup (rn|n)?instr
Message-ID: <20051222223839.GI4370@petdance.com>

[ 26509]
Fix 2 off-by-one errors in the call to ninstr().
This code managed to still work because of a bug
in how ninstr() treats empty search strings.

[ 26510]
Remove test for NUL ending in r?instr().
This test is actually harmful because we will search
for any garbage found past the empty search string.
Ref change 26509.

[ 26511]
Leaner ninstr().
The compiled function ended up 37% smaller on Linux/gcc.
I ought to be faster as well, but I did not try to measure that.

[ 26512]
Use memchr() instead of ninstr() to locate the end-of-line.
The call to memchr() will faster.
p4raw-link: @26512 on //depot/perl: e81b061508e67c847690930e86f0a3899c902c62
p4raw-link: @26511 on //depot/perl: 4c8626beeba549aaf3f327729c56a599716ee8b7
p4raw-link: @26510 on //depot/perl: 260d78c9ff623f5d456f7d39acc9715eec2a85f4
p4raw-link: @26509 on //depot/perl: ad07e1310bf8286a17223f4f5f7abcb6926d9c81
p4raw-link: @26456 on //depot/perl: 4fc877accbeee7820b3c87ff559c82a99f60fe83

p4raw-id: //depot/maint-5.8/perl@29788
p4raw-integrated: from //depot/perl@29787 'copy in'
ext/Filter/Util/Call/Call.xs (@18269..)
p4raw-integrated: from //depot/perl@26512 'merge in' toke.c (@26450..)
p4raw-integrated: from //depot/perl@26510 'edit in' util.c (@26505..)

14 years agoIntegrate:
Andy Lester [Thu, 22 Dec 2005 10:57:17 +0000 (04:57 -0600)]
Integrate:
[ 26450]
Subject: [PATCH] Ho! Ho! Ho!  Santa brings consting!
Message-ID: <20051222165717.GA2874@petdance.com>
p4raw-link: @26450 on //depot/perl: c445ea15829fa1ef23c4453a817f9c096a56a192

p4raw-id: //depot/maint-5.8/perl@29787
p4raw-edited: from //depot/perl@26450 'edit in' proto.h (@26427..)
p4raw-integrated: from //depot/perl@26450 'edit in' dump.c (@26404..)
regcomp.c (@26415..) pp_ctl.c (@26416..) embed.fnc (@26427..)
pp.c sv.c (@26446..) 'merge in' hv.c (@26281..) pp_sys.c
universal.c (@26415..) embed.h (@26427..) toke.c (@26432..)
gv.c (@26446..) op.c (@26447..) pp_hot.c (@26448..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 16:56:44 +0000 (16:56 +0000)]
Integrate:
[ 26446]
Add an optimisation to allow proxy constant subroutines to be copied
as proxy constant subroutines in a new symbol table where possible.
(Rather than converting them to full blown constant subroutines and
instantiating 2 typeglobs)

[ 26448]
Regression tests for proxy subroutine glob assignment.
Fix a bug (it turns out that a typeglob isn't SvOK())
Remove stray debugging code.

[ 26470]
Now that proxy subroutines can be unproxied in 2 places without
becoming the same newCONSTSUB, need an explicit check to avoid a
warning about subroutines being redefined, as there has never been
a warning when you assing the same subroutine to a glob's GvCV()

[ 26482]
Unless the peephole optimiser already knows that we're in void context,
avoid even attempting the whole proxy constant sub copying
optimisation.
p4raw-link: @26482 on //depot/perl: de3370bc7b91fa6f0f1f71c18926bc94bdc83114
p4raw-link: @26470 on //depot/perl: 2111d92849f8443baa1adfc372a6bedf4537f3e8
p4raw-link: @26448 on //depot/perl: bb112e5a4b9e874a52fe07cda10dbc94d64316d8
p4raw-link: @26446 on //depot/perl: e26df76ac13ccf3f750bea05eac65b7ffffc7826

p4raw-id: //depot/maint-5.8/perl@29785
p4raw-edited: from //depot/perl@26482 'edit in' op.c (@26450..)
p4raw-integrated: from //depot/perl@26448 'edit in' t/op/gv.t
(@26422..) pp_hot.c (@26446..)
p4raw-integrated: from //depot/perl@26446 'edit in'
ext/B/t/concise-xs.t (@26402..) sv.c (@26439..) 'merge in' gv.h
(@26425..) gv.c (@26427..) op.h (@26429..) pp.c (@26434..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 16:30:48 +0000 (16:30 +0000)]
Integrate:
[ 26409]
Make gv_init recognise a reference-to-something in a symbol table as
meaning a constant subroutine with that thing as it value

[ 26417]
Verify that the code for initialising typeglobs from other types works.

[ 26422]
Croak if gv_init doesn't know how to create a typeglob from that type
of referant. Test that ARRAY, HASH, PVIO, CODE and FORMAT croak.
Globs are actually first class assignable objects, so test that you
can create a constant subroutine that returns one.

[ 26425]
Add a GV_NOADD_NOINIT flag to gv_fetch{pv,pvn,sv} that disables
addition of new typeglobs, and also disables initialisation of any
typeglob placeholders. Needed to make the new constant subroutine
proxy references work efficiently.

[ 26427]
Take care in toke.c not to convert constant subroutine reference
proxies into full blown PVGVs with PVCVs, and recognise them and inline
their values. Adds a new function gv_const_sv(gv) to return the value
of the constant subroutine from a GV, and adds a cv parameter to
S_intuit_method.
p4raw-link: @26427 on //depot/perl: 62d55b227f6b1e95d65e7faf12ed22fd467e4c0e
p4raw-link: @26425 on //depot/perl: add2581e58e8d35079b402632186684a5cef9cd2
p4raw-link: @26422 on //depot/perl: 5c1f4d79697c25c445705da5672c3103505b0d08
p4raw-link: @26417 on //depot/perl: 63fa9adcade8ebea86e41864381690cdfea27db9
p4raw-link: @26409 on //depot/perl: 756cb4773036ba2209d91fd1e0325202c13604e4

p4raw-id: //depot/maint-5.8/perl@29783
p4raw-edited: from //depot/perl@26427 'edit in' toke.c (@26423..)
p4raw-integrated: from //depot/perl@26427 'edit in' proto.h (@26402..)
'merge in' embed.fnc embed.h (@26402..)
p4raw-integrated: from //depot/perl@26425 'merge in' gv.h (@26395..)
p4raw-integrated: from //depot/perl@26422 'merge in' pod/perldiag.pod
(@26407..)
p4raw-integrated: from //depot/perl@26417 'edit in' t/op/gv.t
(@24973..)
p4raw-integrated: from //depot/perl@26409 'edit in' gv.c (@26381..)

14 years agoIntegrate:
Nicholas Clark [Sat, 13 Jan 2007 13:47:04 +0000 (13:47 +0000)]
Integrate:
[ 26411]
Assert that orig_keyword, gv and gvp aren't used before the main
keyword parser of Perl_yylex.

[ 26412]
In Perl_yylex, make tmp a temporary variable local to the blocks in
which it is used.

[ 26414]
In Perl_yylex, move the declaration of orig_keyword, gv and gvp down to
the block labelled keylookup.

[ 26423]
Get the "cv" from the "gv" once, and be more careful so that we can
cope if either aren't their regular types.
cv_const_sv should verify the type of SV passed, instead of assuming
that it's a viable CV.
p4raw-link: @26423 on //depot/perl: 5069cc751dbf8ccfb2c6036830812437af90a09b
p4raw-link: @26414 on //depot/perl: 0bfa2a8afc04ca8a47987d5890bbbe751faf4444
p4raw-link: @26412 on //depot/perl: 90771dc0db35b74d256518c888adeac5f760aa04
p4raw-link: @26411 on //depot/perl: d7183528816da5b6125a0d9a04b7f2e692de6e86

p4raw-id: //depot/maint-5.8/perl@29782
p4raw-integrated: from //depot/perl@26423 'merge in' op.c (@26415..)
p4raw-edited: from //depot/perl@26414 'edit in' toke.c (@26412..)

14 years agoIntegrate:
Nicholas Clark [Fri, 12 Jan 2007 14:24:33 +0000 (14:24 +0000)]
Integrate:
[ 26404]
Make sv_dump (and therefore Devel::Peek) report the value of the
constant in inlineable constant subroutines.
p4raw-link: @26404 on //depot/perl: b188609906d01f80253fa5875023a178dcb87f97

p4raw-id: //depot/maint-5.8/perl@29776
p4raw-integrated: from //depot/perl@26404 'merge in'
ext/Devel/Peek/t/Peek.t (@25340..) dump.c (@26281..)

14 years agoIntegrate:
YAMASHINA Hio [Tue, 30 Aug 2005 17:17:23 +0000 (02:17 +0900)]
Integrate:
[ 26334]
A suggestion by Yamashina Hio to speed up substitutions
with right-hand side expressions by freeing temporaries.
See :

Subject: s///ge; consumes PL_tmps_stack in its loop
Message-Id: <20050830160113.9716.HIO@ymir.co.jp>

[ 26369]
In Perl_apply, the name of the op can be found from PL_op_name, instead
of using local string constants.

[ 26372]
Use PL_op_desc rather than literal strings in pp_ioctl

[ 26392]
Move and const some definitions of variables used to save errno.

[ 26437]
Localise the stash variable in pp_entersub().

[ 26438]
For consistency sv_2cv should not leave the stash pointer uninitialised
for some cases. Although it seems that only pp_sort pays any attention
to it, of all the code on CPAN.

[ 26444]
Remove unused variable 'stash' since change 26437.
p4raw-link: @26444 on //depot/perl: fa4c416c179c82da6d55a50148d135ad38ba2770
p4raw-link: @26438 on //depot/perl: ef58ba18ed70b0d30770bdab409e1997885d9590
p4raw-link: @26437 on //depot/perl: f730a42d0edd6097a2336d4fa688925f1f317778
p4raw-link: @26392 on //depot/perl: 798525938d9e11ee1067df2b2406ec14aa83dd2b
p4raw-link: @26372 on //depot/perl: ed4b2e6b8e3e407b046b3d57848a2e57898d7d60
p4raw-link: @26369 on //depot/perl: 4634a855caf7cb9c97bd7d7c7bdb72d61fd2e9c0
p4raw-link: @26334 on //depot/perl: 8ff629d935fd2dba7977969e7922b9cd55cc75d2

p4raw-id: //depot/maint-5.8/perl@29775
p4raw-integrated: from //depot/perl@26444 'edit in' pp_hot.c (@26437..)
p4raw-integrated: from //depot/perl@26438 'edit in' sv.c (@26434..)
p4raw-integrated: from //depot/perl@26392 'merge in' perlio.c
(@26101..)
p4raw-integrated: from //depot/perl@26372 'merge in' pp_sys.c
(@26281..)
p4raw-integrated: from //depot/perl@26369 'edit in' doio.c (@26281..)
p4raw-integrated: from //depot/perl@26334 'merge in' pp_ctl.c
(@26281..)

14 years agoIntegrate:
Andy Lester [Fri, 9 Dec 2005 11:09:21 +0000 (05:09 -0600)]
Integrate:
[ 26301]
Merge common code from ptr_table_fetch and ptr_table_store into
S_ptr_table_find.

[ 26310]
Fixes compile errors introduce with change #26301 when compiling
with ithreads and DEBUGGING.

[ 26312]
A more efficient way to loop in ptr_table_clear

[ 26313]
An alternative way of structuring ptr_table_clear so that the variables
can be assigned to at declaration time.

[ 26317]
Subject: [PATCH] Code tweaks in sv.c
Message-ID: <20051209170921.GC16943@petdance.com>

Includes a minor change the patch to account for code that moved
elsewhere.
p4raw-link: @26317 on //depot/perl: 00b6aa4170b1d4f8cd86fa0a48749312580e6806
p4raw-link: @26313 on //depot/perl: d5cefff9a50376f4dad17a00e206b5748a29f116
p4raw-link: @26312 on //depot/perl: ab1e7f954de0531c104e9628076d0ac3e768f895
p4raw-link: @26310 on //depot/perl: e4cd187473b5443b84bf0c23f377f8bd4a0a1424
p4raw-link: @26301 on //depot/perl: 7bf61b542bce8caca5f166daaf28742d80217049

p4raw-id: //depot/maint-5.8/perl@29773
p4raw-integrated: from //depot/perl@26313 'edit in' sv.c (@26312..)

14 years agoIntegrate:
Nicholas Clark [Fri, 12 Jan 2007 13:28:49 +0000 (13:28 +0000)]
Integrate:
[ 26360]
Add a missing FREETMPS to match up with a SAVETMPS.  This change
fixes problems with nested sorts.  (RTs #7063 and #36430).

[ 26361]
Again, FREETMPS not SAVETMPS!

[ 26362]
Reverting change #26360 and #26361 since it appears that the bugs I
thought I fixed had been previously fixed with change #25953.
p4raw-link: @26362 on //depot/perl: 8535f7f6ae50d0da357b4c25ec59ab4a2213bd76
p4raw-link: @26361 on //depot/perl: a882b6a267ba65cf612aaa239eac8f9b5fb407c4
p4raw-link: @26360 on //depot/perl: f7ae8051c95a2bdf42aad8ef8cbdb82f5608126f
p4raw-link: @25953 on //depot/perl: 9850bf21fc4ed69d8ddb0293df59411f891c62df

p4raw-id: //depot/maint-5.8/perl@29772
p4raw-integrated: from //depot/perl@26362 'edit in' pp_sort.c
(@26361..)

14 years agoIntegrate:
Andy Lester [Mon, 5 Dec 2005 13:46:13 +0000 (07:46 -0600)]
Integrate:
[ 26281]
Subject: [PATCH] More consting, and putting stuff in embed.fnc
Message-ID: <20051205194613.GB7791@petdance.com>

[ 26287]
Add a ; that 26281 was lacking.
(Dear Mark, please can I have back one of the two that I sent you after
change 23614)
p4raw-link: @26287 on //depot/perl: 1f440eb2be23907e83a24cd58474579346e67832
p4raw-link: @26281 on //depot/perl: 0bd48802b00657d8da2da444a1c97fb25cb7d562

p4raw-id: //depot/maint-5.8/perl@29771
p4raw-integrated: from //depot/perl@26287 'edit in' util.c (@26281..)
p4raw-integrated: from //depot/perl@26281 'copy in' taint.c (@26001..)
'edit in' dump.c (@25296..) hv.c (@26171..) pp_ctl.c (@26195..)
pp.c (@26231..) op.c (@26236..) embed.fnc (@26257..) 'merge in'
op.h (@25808..) hv.h (@25897..) locale.c (@26028..) toke.c
(@26052..) doio.c (@26082..) pp_sys.c (@26090..) pp_sort.c
(@26147..) deb.c mg.c regcomp.c (@26175..) pp_hot.c (@26195..)
embed.h (@26229..) pp_pack.c (@26242..) proto.h utf8.c
(@26257..) sv.c (@26275..)

14 years agoIntegrate:
SADAHIRO Tomoyuki [Wed, 23 Nov 2005 17:57:34 +0000 (02:57 +0900)]
Integrate:
[ 26199]
Subject: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
Date: Wed, 23 Nov 2005 17:57:34 +0900
Message-Id: <20051123175603.FFD5.BQW10602@nifty.com>

And :
Message-Id: <20051123202935.4D9D.BQW10602@nifty.com>

with some nits to use U8 instead of char more consistently

[ 26203]
Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
From: SADAHIRO Tomoyuki <bqw10602@nifty.com>
Date: Fri, 25 Nov 2005 00:19:35 +0900
Message-Id: <20051125001031.24E3.BQW10602@nifty.com>

Date: Fri, 25 Nov 2005 01:18:17 +0900
Message-Id: <20051125011410.24E9.BQW10602@nifty.com>

[ 26229]
Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
From: SADAHIRO Tomoyuki <bqw10602@nifty.com>
Date: Sun, 27 Nov 2005 17:02:02 +0900
Message-Id: <20051127170016.A786.BQW10602@nifty.com>

[ 26255]
Clarification and cleanup of the XS SWASHGET code

Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
From: SADAHIRO Tomoyuki <bqw10602@nifty.com>
Date: Sun, 04 Dec 2005 16:28:35 +0900
Message-Id: <20051204162508.D726.BQW10602@nifty.com>

[ 26256]
Rework the error messages from the swashget code.

Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
From: SADAHIRO Tomoyuki <bqw10602@nifty.com>
Date: Sun, 04 Dec 2005 16:24:59 +0900
Message-Id: <20051204162431.D723.BQW10602@nifty.com>

[ 26257]
Better variable names make code clearer

Subject: Re: XS-assisted SWASHGET (esp. for t/uni/class.t speedup)
From: SADAHIRO Tomoyuki <bqw10602@nifty.com>
Date: Sun, 04 Dec 2005 16:24:29 +0900
Message-Id: <20051204162412.D720.BQW10602@nifty.com>
p4raw-link: @26257 on //depot/perl: 680c470ce925e5af5a9ca87f342016c7363e36fd
p4raw-link: @26256 on //depot/perl: 660a461690361c615b3b45ef731dd3d6f0d55d01
p4raw-link: @26255 on //depot/perl: 711a919c41ea4a93a45e4b6240ea6550abe85615
p4raw-link: @26229 on //depot/perl: 979f29225180f8c09f4adec52f850ae45694fd81
p4raw-link: @26203 on //depot/perl: 8fe4d5b293de0584fca8742f7dcccba7ce3e3a9d
p4raw-link: @26199 on //depot/perl: 4a818d86735b88cd762faade9872a9c2e89ab057

p4raw-id: //depot/maint-5.8/perl@29770
p4raw-integrated: from //depot/perl@26257 'edit in' embed.fnc
(@26253..) utf8.c (@26256..)
p4raw-integrated: from //depot/perl@26256 'merge in' pod/perldiag.pod
(@26073..)
p4raw-integrated: from //depot/perl@26255 'merge in' regexec.c
(@26228..)
p4raw-integrated: from //depot/perl@26229 'copy in' utfebcdic.h
(@24074..) 'edit in' proto.h (@26147..) 'ignore'
pod/perlintern.pod (@25802..) lib/utf8_heavy.pl (@26199..)
'merge in' utf8.h (@25926..) pod/perlapi.pod (@26124..) embed.h
(@26147..)
p4raw-integrated: from //depot/perl@26203 'edit in' universal.c
(@26199..)
p4raw-integrated: from //depot/perl@26199 'edit in' t/op/pat.t
(@26187..)

14 years agoIntegrate:
Andy Lester [Thu, 17 Nov 2005 07:53:38 +0000 (01:53 -0600)]
Integrate:
[ 26090]
const'ing Netdb_host_t broke HP-UX and created warnings on gcc for a double const.
Netdb_host_t is a macro that for a const pointer.

[ 26147]
Subject: [PATCH] Sort subs now in embed.fnc
Message-ID: <20051117135338.GA31715@petdance.com>

[ 26175]
Cleaning up some warnings generated by "gcc -W"

[ 26179]
Declarations must come first, or some compilers aren't happy.
(spotted by Jarkko)
p4raw-link: @26179 on //depot/perl: ef35129c7fc9e8b23677855fe4f6e7aa37b32ef4
p4raw-link: @26175 on //depot/perl: 65e66c80cefadd5e860e8232c69fd1a11e6c5b92
p4raw-link: @26147 on //depot/perl: f0f5dc9dd6402292e51fb413bf662b3e54145006
p4raw-link: @26090 on //depot/perl: 5bf7026a60a2e5536d6f6c6d3b2c6d38669c9b81

p4raw-id: //depot/maint-5.8/perl@29769
p4raw-integrated: from //depot/perl@29763 'copy in'
ext/PerlIO/encoding/encoding.xs (@24959..)
p4raw-integrated: from //depot/perl@26179 'edit in' ext/B/B.xs
(@26175..)
p4raw-integrated: from //depot/perl@26175 'merge in'
ext/Data/Dumper/Dumper.xs (@25308..) regcomp.c (@26006..) deb.c
(@26028..) mg.c op.c (@26132..) scope.c (@26134..)
p4raw-integrated: from //depot/perl@26147 'merge in' embed.h (@26069..)
pp_sort.c (@26082..) embed.fnc proto.h (@26123..)
p4raw-integrated: from //depot/perl@26090 'merge in' pp_sys.c
(@26082..)

14 years agoIntegrate:
Nicholas Clark [Fri, 12 Jan 2007 01:57:13 +0000 (01:57 +0000)]
Integrate:
[ 25956]
Adjust test count
p4raw-link: @25956 on //depot/perl: af9ecd68c9b31448775ad3ba8d8b8460f6271ec3

p4raw-id: //depot/maint-5.8/perl@29763
p4raw-integrated: from //depot/perl@25956 'edit in'
ext/B/t/concise-xs.t (@25344..)

14 years agoIntegrate:
Andy Lester [Thu, 10 Nov 2005 22:47:00 +0000 (16:47 -0600)]
Integrate:
[ 26082]
Subject: [PATCH] Const & local: Special Victims Unit
Message-ID: <20051111044700.GA24161@petdance.com>
p4raw-link: @26082 on //depot/perl: 0bcc34c2b0b0cb62c0df3d5e562b779fb96595ba

p4raw-id: //depot/maint-5.8/perl@29760
p4raw-integrated: from //depot/perl@26082 'edit in' pp_hot.c (@26022..)
pp_sys.c (@26028..) util.c (@26051..) 'merge in' doop.c
(@25915..) pp_sort.c (@26011..) pp_pack.c (@26032..) doio.c
sv.c (@26050..) cop.h (@26054..)

14 years agoIntegrate:
Robin Houston [Sat, 29 Oct 2005 21:33:07 +0000 (22:33 +0100)]
Integrate:
[ 25953]
Subject: [PATCH] sort/multicall patch
Date: Sat, 29 Oct 2005 21:33:07 +0100
Message-ID: <20051029203307.GA8869@rpc142.cs.man.ac.uk>

[ 25954]
Regen headers

[ 25957]
Remove last sort test, that was failing with and without threads.
Silence some warnings.

[ 25979]
Fix test failures introduced by the change of flags on op_sort

[ 25992]
Subject: Re: [PATCH] sort/multicall patch
From: Robin Houston <robin@cpan.org>
Date: Fri, 4 Nov 2005 15:20:29 +0000
Message-ID: <20051104152029.GA17169@rpc142.cs.man.ac.uk>

[ 26054]
Subject: [PATCH] Re: [perl #32383] DProf breaks List::Util::shuffle
From: Robin Houston <robin@cpan.org>
Date: Tue, 8 Nov 2005 19:02:34 +0000
Message-ID: <20051108190234.GA25953@rpc142.cs.man.ac.uk>

[ 27486]
Subject: [PATCH] Automatically SPAGAIN in the poor-man's-multicall API
From: Robin Houston <robin@cpan.org>
Date: Mon, 13 Mar 2006 12:48:21 +0000
Message-ID: <20060313124821.GA11203@rpc142.cs.man.ac.uk>

[ 27487]
Forgot the ending \. Why did it still compile ?
p4raw-link: @27487 on //depot/perl: ae0d9e91921718c695e551df9f5755561ee9964d
p4raw-link: @27486 on //depot/perl: ff1ebec3ae3704c211ef9a2572ce3adb50911b5b
p4raw-link: @26054 on //depot/perl: 82f35e8b14e93ac697812d1b28d2e79e1ad82d84
p4raw-link: @25992 on //depot/perl: d7507f7459e6b42ee8cfc80abf2510fc2ff6a5c0
p4raw-link: @25979 on //depot/perl: 9e84f099a236e8238736c147031d0637a4572587
p4raw-link: @25957 on //depot/perl: 9da9462bb3e8caa6ed89b73deed69ec85fa59066
p4raw-link: @25954 on //depot/perl: cd299c6e57209410a1331dd3e21dad7fec4cce55
p4raw-link: @25953 on //depot/perl: 9850bf21fc4ed69d8ddb0293df59411f891c62df

p4raw-id: //depot/maint-5.8/perl@29759
p4raw-integrated: from //depot/perl@27486 'ignore'
ext/List/Util/multicall.h (@26054..)
p4raw-edited: from //depot/perl@26054 'edit in' cop.h (@26027..)
p4raw-integrated: from //depot/perl@25979 'merge in' ext/B/t/f_sort.t
(@24967..)
p4raw-integrated: from //depot/perl@25957 'edit in' t/op/sort.t
(@25953..)
p4raw-integrated: from //depot/perl@25954 'edit in' pod/perlapi.pod
(@25913..) 'merge in' global.sym (@25924..) opcode.h (@25940..)
p4raw-edited: from //depot/perl@25953 'edit in' pp_sort.c (@25754..)
embed.fnc (@25946..)
p4raw-integrated: from //depot/perl@25953 'edit in' pod/perlcall.pod
(@23203..) pod/perldiag.pod (@25937..) pp_ctl.c (@25940..)
'merge in' embedvar.h (@25008..) makedef.pl perlapi.h
(@25850..) sv.c (@25915..) pp_hot.c (@25918..) AUTHORS
(@25931..) opcode.pl (@25940..) op.c (@25948..)

14 years agoIntegrate:
Andy Lester [Fri, 4 Nov 2005 15:12:56 +0000 (09:12 -0600)]
Integrate:
[ 26028]
Subject: [PATCH] Consting and localizing: Part LXVIII
Message-ID: <20051104211256.GA12651@petdance.com>
p4raw-link: @26028 on //depot/perl: 7452cf6af2e38d62832bbd8762076e54fa12a70f

p4raw-id: //depot/maint-5.8/perl@29755
p4raw-integrated: from //depot/perl@26028 'edit in' deb.c (@25067..)
universal.c util.c (@26001..) pp_sys.c (@26011..) 'merge in'
scope.c (@25101..) locale.c (@25898..) utf8.c (@25926..)
embed.fnc embed.h (@25996..)

14 years agoIntegrate:
Gisle Aas [Mon, 31 Oct 2005 13:53:53 +0000 (05:53 -0800)]
Integrate:
[ 25941]
Subject: futimes [PATCH]
Date: 31 Oct 2005 13:53:53 -0800
Message-ID: <lrk6ft8ia6.fsf_-_@caliper.activestate.com>

[ 25951]
Subject: Re: futimes [PATCH]
From: Gisle Aas <gisle@ActiveState.com>
Date: 01 Nov 2005 00:02:37 -0800
Message-ID: <lrbr1494o2.fsf@caliper.activestate.com>
p4raw-link: @25951 on //depot/perl: fc8d54b0ec8f51a3b3106f2c54bd0f1ada739e0e
p4raw-link: @25941 on //depot/perl: e96b369dc61077fe31b75895167f55dbce4d7519

p4raw-id: //depot/maint-5.8/perl@29754
p4raw-integrated: from //depot/perl@25941 'edit in' t/io/fs.t
(@25157..) handy.h (@25935..) 'merge in' pod/perlfunc.pod
(@25830..) doio.c (@25892..)

14 years agoIntegrate:
Andy Lester [Sun, 30 Oct 2005 23:44:13 +0000 (17:44 -0600)]
Integrate:
[ 25915]
Subject: [PATCH] Etta James presents: More consting
Message-ID: <20051031054413.GA10767@petdance.com>
p4raw-link: @25915 on //depot/perl: c4420975666e665b3282e2edeea3304e6626be36

p4raw-id: //depot/maint-5.8/perl@29752
p4raw-edited: from //depot/perl@25915 'edit in' universal.c (@25322..)
p4raw-integrated: from //depot/perl@25915 'edit in' doop.c (@25530..)
pp_hot.c (@25803..) sv.c (@25886..) util.c (@25906..) 'merge
in' cop.h (@25688..) perl.c pp_sys.c (@25850..) numeric.c
(@25866..) hv.c (@25897..) op.c (@25901..) toke.c (@25914..)

14 years agoIntegrate:
Nicholas Clark [Wed, 10 Jan 2007 15:52:19 +0000 (15:52 +0000)]
Integrate:
[ 29729]
socketpair.t was written in 2001. At that time, Test::More got confused
if you forked under it. Test::More 0.47 added support to detect forking
which resolves this. Hence there is now no need to fork() in a BEGIN
block, which causes issues on Win32 due to how pseudofork works.
p4raw-link: @29729 on //depot/perl: 850d607338c285d0f6a7d66f1c4baf08de921004

p4raw-id: //depot/maint-5.8/perl@29746
p4raw-integrated: from //depot/perl@29737 'merge in'
ext/Socket/t/socketpair.t (@29485..)

14 years agoConditionally compile out all op.c manipulation code for OP_THREADSV
Nicholas Clark [Tue, 9 Jan 2007 21:23:37 +0000 (21:23 +0000)]
Conditionally compile out all op.c manipulation code for OP_THREADSV
unless we are building for 5005threads, as nothing else can generate
this op. (Arguably pre 5.8.0 time we could have changed the headers to
not even have this op usually, but it's a tad late now and my time
machine is still on pre-order).

p4raw-id: //depot/maint-5.8/perl@29737

14 years agoWe can get in the messy situation of the COP that PL_curcop pointed
Nicholas Clark [Tue, 9 Jan 2007 12:48:39 +0000 (12:48 +0000)]
We can get in the messy situation of the COP that PL_curcop pointed
to getting freed, and as part of the same free overloading decides
to look for DESTROY, which needs to *create* a GV, which in turn
was expecting that PL_curcop pointed to something valid. So set
PL_curcop to NULL if we're freeing the COP that it points to, and
make Perl_gv_init() cope with a NULL PL_curcop.

p4raw-id: //depot/maint-5.8/perl@29735

14 years agoIntegrate:
Andy Lester [Sat, 19 Nov 2005 00:16:39 +0000 (18:16 -0600)]
Integrate:
[ 25973]
More core test cleanups.  Mainly fixes to remove code that caused
warnings, but there were a few bug fixes that were hidden by
no using warnings.

[ 26066]
I/O is UTF-8, not "UNICODE"

[ 26070]
Add tests for two untested syntax error messages about \N

[ 26178]
Subject: [PATCH] Pulling ancient RCS comments
Message-ID: <20051119061639.GA25086@petdance.com>

[ 26347]
Convert range.t to test.pl
p4raw-link: @26347 on //depot/perl: 4e086238dab7604a27d1e87c6edc434dec7cc39d
p4raw-link: @26178 on //depot/perl: f97d6588554acc8b88e745a23fe1f1d5fd04dfae
p4raw-link: @26070 on //depot/perl: fd7808cb43ac6038cce4f46f2e83c3042efbf142
p4raw-link: @26066 on //depot/perl: a45f1ba014589f25fbf825289b49af1c5cc4f3ee
p4raw-link: @25973 on //depot/perl: 3fb41248088529e4dffd3e393588e067e2934fc0

p4raw-id: //depot/maint-5.8/perl@29733
p4raw-integrated: from //depot/perl@29726 'copy in' t/op/push.t
(@536..) lib/importenv.pl lib/stat.pl lib/validate.pl
t/base/cond.t t/base/if.t t/base/pat.t t/cmd/elsif.t
t/cmd/switch.t t/comp/cmdopt.t t/comp/decl.t t/op/unshift.t
(@1575..) t/io/nargv.t (@4634..) t/base/term.t (@13503..)
t/cmd/subval.t (@13904..) t/op/append.t (@14479..) t/op/flip.t
(@15054..) lib/AnyDBM_File.t (@15720..) t/op/cond.t (@18336..)
t/comp/cpp.t t/io/inplace.t (@22091..) t/op/read.t (@23778..)
t/io/openpid.t (@23849..) t/op/range.t (@25319..) t/cmd/mod.t
(@25829..) t/io/layers.t (@25967..) 'merge in' t/op/goto_xs.t
(@24773..)
p4raw-integrated: from //depot/perl@26178 'copy in' t/op/auto.t
(@1760..) t/op/do.t (@18487..) t/op/time.t (@23505..) 'merge
in' t/op/my.t (@22874..)
p4raw-integrated: from //depot/perl@26070 'edit in' t/comp/parser.t
(@24901..)
p4raw-integrated: from //depot/perl@25973 'copy in' t/io/pipe.t
(@25965..) 'ignore' t/io/read.t (@22423..) t/io/tell.t
(@23874..) 'merge in' t/io/print.t (@22423..)

14 years agoUnbreak 5005 threads - pp_threadsv can't be aliased to unimplemented_op
Nicholas Clark [Mon, 8 Jan 2007 23:25:40 +0000 (23:25 +0000)]
Unbreak 5005 threads - pp_threadsv can't be aliased to unimplemented_op
for the 5005 threads case.

p4raw-id: //depot/maint-5.8/perl@29726

14 years agoIntegrate:
Nicholas Clark [Mon, 8 Jan 2007 22:09:41 +0000 (22:09 +0000)]
Integrate:
[ 29695]
Update copyright years in .h files. Also, in .pl
files that generate .h files, so they'll be ready
next time.

[just the .pl files for now]
p4raw-link: @29695 on //depot/perl: 699a97de988b5b9b54375d79201e72f1c259685c

p4raw-id: //depot/maint-5.8/perl@29725
p4raw-integrated: from //depot/perl@29722 'merge in' keywords.pl
(@29053..) opcode.pl (@29251..)

14 years agoIntegrate:
Robin Houston [Sun, 27 Nov 2005 00:43:13 +0000 (00:43 +0000)]
Integrate:
[ 26110]
Integrate:
[ 26108]
BEGIN blocks should start a new stack, as they can be called as a
side effect of "regular" Perl API calls within subroutines that have
already cached the current stack's address. If they don't, any stack
extension during the call may move the stack, rendering that cached
value invalid without the cachee realising. (For example, PP code
calling gv_fetchpv() which triggers a load of Errno.pm)

[ 26234]
Revert change #26110 (already reverted in maintperl by change 26182)

[ 27207]
Subject: Re: Perl_sighandler voodoo (was Re: Smoke [5.8.7] 26127 FAIL(XF) MSWin32 WinXP/.Net SP2 (x86/2 cpu))
Message-ID: <20051127004313.GA7007@rpc142.cs.man.ac.uk>

Simplification of the code in my_exit_jump() that unwinds context
stacks
p4raw-link: @27207 on //depot/perl: f97a0ef27cbaddb0a75b0772eacfc746e93f62f4
p4raw-link: @26234 on //depot/perl: cb4020efd135785a3a3f1bdcb17c9408f9b0faf3
p4raw-link: @26110 on //depot/perl: 678f9f8e69283f64dcdcd30e3fe602110d10a5a6
p4raw-link: @26108 on //depot/maint-5.8/perl: 5480675bc37b4a804a56a749cdedc70e27a270eb

p4raw-id: //depot/maint-5.8/perl@29722
p4raw-integrated: from //depot/perl@27207 'merge in' perl.c (@27194..)
p4raw-integrated: from //depot/perl@26234 'edit in' op.c (@26226..)

14 years agoIntegrate:
Nicholas Clark [Mon, 8 Jan 2007 15:51:22 +0000 (15:51 +0000)]
Integrate:
[ 26126]
Don't warn about lack of docs for functions that appear twice in embed.fnc.

[ 29138]
Modify autodoc.pl to add read-only editor boilerplate for perlapi.pod
and perlguts.pod

[ 29146]
In vim, modelines are not taken into account if they begin on the
first character. Also, regenerate perlintern.pod.
p4raw-link: @29146 on //depot/perl: 3f98fbb3afdb03dd2dc57e6d7233195e88e4f9bf
p4raw-link: @29138 on //depot/perl: e04926433bb6070f25203e63e55060257391035c
p4raw-link: @26126 on //depot/perl: 7eb550cf010090aecb73da60fde61194798b89d1

p4raw-id: //depot/maint-5.8/perl@29721
p4raw-integrated: from //depot/perl@29720 'ignore' pod/perlguts.pod
(@28599..)
p4raw-integrated: from //depot/perl@29146 'merge in' pod/perlintern.pod
(@28252..)
p4raw-integrated: from //depot/perl@29138 'edit in' pod/perlapi.pod
(@28915..) 'ignore' autodoc.pl (@26126..)

14 years agoIntegrate:
Nicholas Clark [Mon, 8 Jan 2007 15:43:25 +0000 (15:43 +0000)]
Integrate:
[ 25703]
Add -C to allowed $PERL5OPT options
Add -C to the $PERL5OPT documentation (and added the missing -A too)
t/run/runenv.t Could use some more tests about how supported
and unsupported options in $PERL5OPT are handled
p4raw-link: @25703 on //depot/perl: e4af53b035442614d6967aeb0941ba0a0e6238a0

p4raw-id: //depot/maint-5.8/perl@29720
p4raw-edited: from //depot/perl@25703 'edit in' pod/perldiag.pod
(@25307..) pod/perlrun.pod (@25623..)
p4raw-integrated: from //depot/perl@25703 'edit in' perl.c (@25693..)

14 years agoIntegrate:
Jan Dubois [Fri, 18 Nov 2005 11:38:24 +0000 (03:38 -0800)]
Integrate:
[ 26177]
Subject: Reworked PERL_TRACK_MEMPOOL patch
From: "Jan Dubois" <jand@ActiveState.com>
Message-ID: <003601c5ec77$a45eb260$2217a8c0@candy>

[tweaked so as to remove the automatic define of -DPERL_TRACK_MEMPOOL
on -DDEBUGGING]
p4raw-link: @26177 on //depot/perl: e8dda941161b48515d0da4da6e5157084cbd1df0

p4raw-id: //depot/maint-5.8/perl@29163
p4raw-integrated: from //depot/perl@26177 'edit in' perl.h (@26077..)
util.c (@26082..)

14 years agoIntegrate:
Nicholas Clark [Sun, 29 Oct 2006 22:02:32 +0000 (22:02 +0000)]
Integrate:
[The Perl_magic_killbackrefs change from:]
[ 24966]
Remove the reference loop between symbol tables and typeglobs.
Typeglobs now have a weak reference onto their symbol table.

[ 26132]
Mark all places where perl needs to look at a possibly-freed scalar
with a macro SvIS_FREED(sv)
p4raw-link: @26132 on //depot/perl: 0565a181ab920bd3cc76f2ab45d62768abfcaf8d
p4raw-link: @24966 on //depot/perl: e15faf7d09c73a41f95fbe6a0045ad5b17c899a6

p4raw-id: //depot/maint-5.8/perl@29141
p4raw-integrated: from //depot/perl@26132 'merge in' av.c (@25872..)
pad.c (@26060..) pp_hot.c (@26082..) op.c (@26110..) sv.h
(@26112..)
p4raw-integrated: from //depot/perl@24966 'edit in' mg.c (@24965..)

14 years agoIntegrate:
Nicholas Clark [Sun, 29 Oct 2006 20:23:57 +0000 (20:23 +0000)]
Integrate:
[ 26060]
Add a comment about possible future refactoring of the pad code.

[ 26123]
Suppress gcc warnings when ignoring the return value of io_close(),
as suggested by Gisle Aas.

[ 26124]
Fix indentation of apidoc for sv_2pvutf8
(so perlapi.pod is correctly generated)

[ 26176]
Down with "warning: code has no effect"
p4raw-link: @26176 on //depot/perl: 891c2e08c4b0cd567c57c23427f594d70b2bced2
p4raw-link: @26124 on //depot/perl: 035cbb0e21d9be3cc0345383c9ae0fe281e8befd
p4raw-link: @26123 on //depot/perl: 5836e3ecdff1c184f035811e31eb710069409212
p4raw-link: @26060 on //depot/perl: 6d6403992dc19fd3b831cbc6a211e3354a53c639

p4raw-id: //depot/maint-5.8/perl@29137
p4raw-integrated: from //depot/perl@26176 'merge in' XSUB.h (@25778..)
p4raw-integrated: from //depot/perl@26124 'edit in' pod/perlapi.pod
(@25954..) 'merge in' sv.c (@26082..)
p4raw-integrated: from //depot/perl@26123 'edit in' proto.h (@26028..)
'merge in' embed.fnc (@26069..)
p4raw-integrated: from //depot/perl@26060 'merge in' pad.c (@25754..)

14 years agoIntegrate:
Nicholas Clark [Sun, 29 Oct 2006 20:01:41 +0000 (20:01 +0000)]
Integrate:
[ 26112]
Fix breakages that prevended -DPERL_POISON from compiling.
p4raw-link: @26112 on //depot/perl: 06c0cc96ebd866767a6d107ed78967600f7e0395

p4raw-id: //depot/maint-5.8/perl@29136
p4raw-integrated: from //depot/perl@26112 'edit in' sv.h (@25885..)
'merge in' handy.h (@25941..)

14 years agoIntegrate:
Nicholas Clark [Sun, 29 Oct 2006 19:31:39 +0000 (19:31 +0000)]
Integrate:
[ 25917]
POD nit spotted by Jarkko

[ 25938]
Further pod nit spotted by Jarkko

[ 25944]
Fix nit in pod nit fix
p4raw-link: @25944 on //depot/perl: a015a77ee9cc914e7f9e8f0800206bb50400cc4a
p4raw-link: @25938 on //depot/perl: 7e2ff5e8a47a8317110c2e2e0c7435232d79b76e
p4raw-link: @25917 on //depot/perl: 91edb4ee687d28fc7146b5dbc6de5bbc9b90da2f

p4raw-id: //depot/maint-5.8/perl@29135
p4raw-integrated: from //depot/perl@25944 'edit in' pod/perlhack.pod
(@25938..)

14 years agoIntegrate:
Andy Lester [Mon, 31 Oct 2005 00:04:59 +0000 (18:04 -0600)]
Integrate:
[ 25914]
Subject: [PATCH] S_tokereport's unused parm
Message-ID: <20051031060459.GC10767@petdance.com>
p4raw-link: @25914 on //depot/perl: f5bd084c2c79901a2aea8ac589384123b5b7276d

p4raw-id: //depot/maint-5.8/perl@29134
p4raw-integrated: from //depot/perl@25914 'edit in' proto.h (@25906..)
'merge in' toke.c (@25799..) embed.fnc embed.h (@25906..)

14 years agoIntegrate:
Robin Houston [Fri, 14 Oct 2005 01:54:00 +0000 (01:54 +0000)]
Integrate:
[ 25808]
Subject: Re: [PATCH] Re: [perl #37350] $#{@$aref} in debugger gives: Bizarre copy of ARRAY in leave
Message-ID: <20051013235457.GA23386@rpc142.cs.man.ac.uk>
p4raw-link: @25808 on //depot/perl: e4c5ccf3177be837114b952c25e52a6812f35eb5

p4raw-id: //depot/maint-5.8/perl@29132
p4raw-edited: from //depot/perl@25808 'edit in' t/op/array.t (@25176..)
op.c (@25779..)
p4raw-integrated: from //depot/perl@25808 'merge in' global.sym
(@25325..) op.h (@25600..) embed.fnc (@25778..) embed.h proto.h
(@25802..)

14 years agoIntegrate:
Nicholas Clark [Sun, 29 Oct 2006 18:29:46 +0000 (18:29 +0000)]
Integrate:
[ 25697]
Subject: proposal [perl #34301]:  IO::Socket calls getpeername far too often
From: Peter.Dintelmann@Dresdner-Bank.com (Peter Dintelmann)
Date: Thu, 2 Jun 2005 13:34:49 +0200
Message-ID: <E9A2605289D8D7468B1A21EC24E59D2101852447@naimucx5.muc.allianz>

[ 25861]
Subject: Re: IO::File performace issue
From: gisle@ActiveState.com (Gisle Aas)
Date: 27 Oct 2005 01:00:39 -0700
Message-ID: <lrvezjv17c.fsf@caliper.activestate.com>

Also includes a version bump for IO::File.

[ 26300]
Fixup the setsockopt usage message; missing OPTVAL.

[ 26400]
Subject: [PATCH] latest switch/say/~~
From: Robin Houston <robin@cpan.org>
Date: Sat, 17 Dec 2005 20:44:31 +0000
Message-Id: <20051217204431.GB28940@rpc142.cs.man.ac.uk>

[ 26405]
Attempt at making IO::Handle backwards compatible again

[ 26481]
Given that IO::Socket is documented as exporting all of Socket's
exports, there's no need for IO::Socket::INET or IO::Socket::UNIX to
use both. (And re-exporting removes some of the efficiency of the new
constants implementation)

[ 26868]
Don't warn about a directory being closed in the DESTROY for
IO::Dir.

[ 26921]
Subject: Avoid most getprotobyname/number calls in IO::Socket::INET
From: Gisle Aas <gisle@ActiveState.com>
Date: 18 Jan 2006 09:28:24 -0800
Message-ID: <lr3bjlbg3r.fsf@caliper.activestate.com>

[ 26941]
Subject: Simplify &IO::Handle::say
From: Gisle Aas <gisle@ActiveState.com>
Date: 24 Jan 2006 05:01:28 -0800
Message-ID: <lrzmll7pav.fsf@caliper.activestate.com>

[ 27609]
Update to IO-1.23
p4raw-link: @27609 on //depot/perl: 90b9a7138c62121899b952367470c97e6a83988d
p4raw-link: @26941 on //depot/perl: 1576e684962a9b7e2100f3bcff6ad79fb0a8e169
p4raw-link: @26921 on //depot/perl: ebcd0cc070f3e120eecf39e812e058e26485aa69
p4raw-link: @26868 on //depot/perl: 7692a1edf7c7e1676cdb76e2a016e73fa1a5a254
p4raw-link: @26481 on //depot/perl: e67426a489d5f4a242c5edc688e24e7e32e60c26
p4raw-link: @26405 on //depot/perl: e4769da7e4ba2947901539be526b741c6157838a
p4raw-link: @26400 on //depot/perl: 0d863452f5cac86322a90184dc68dbf446006ed7
p4raw-link: @26300 on //depot/perl: f0bc0462cc91ff06615d9aca37933a66b68ea888
p4raw-link: @25861 on //depot/perl: 74af07f22d4e66739ed9bf90220ae0c162150d08
p4raw-link: @25697 on //depot/perl: 2d169392e9b607b54c89d91376e422380d400486

p4raw-id: //depot/maint-5.8/perl@29129
p4raw-integrated: from //depot/perl@29087 'copy in' ext/IO/t/io_taint.t
ext/IO/t/io_tell.t ext/IO/t/io_udp.t (@20268..)
ext/IO/ChangeLog (@25355..) ext/IO/lib/IO/File.pm (@25861..)
ext/IO/lib/IO/Dir.pm (@26868..)
p4raw-integrated: from //depot/perl@27609 'copy in'
ext/IO/t/io_multihomed.t (@20268..) ext/IO/t/io_unix.t
(@22258..) ext/IO/IO.pm ext/IO/t/io_pipe.t (@25355..)
ext/IO/t/io_sock.t (@25781..)
p4raw-integrated: from //depot/perl@26921 'ignore'
ext/IO/lib/IO/Socket/INET.pm (@26481..)
p4raw-integrated: from //depot/perl@26481 'ignore'
ext/IO/lib/IO/Socket/UNIX.pm (@25355..)
p4raw-integrated: from //depot/perl@26400 'ignore'
ext/IO/lib/IO/Handle.pm (@25355..)
p4raw-integrated: from //depot/perl@25697 'ignore'
ext/IO/lib/IO/Socket.pm (@25355..)

14 years agoIntegrate:
Nicholas Clark [Sun, 22 Oct 2006 23:09:33 +0000 (23:09 +0000)]
Integrate:
[ 27737]
Give more information in the panic in ss_dup. (Although I'm not sure
if croak() works at this point, given PerlIO's dependency on a
functional interpreter.)

[ 29084]
Fix a bug introduced by change 29079

[ 29086]
Fix the other bug introduced by change 29079
p4raw-link: @29086 on //depot/perl: 147bc37422bb9ff10b7db69f9d76b4e4e70636d7
p4raw-link: @29084 on //depot/perl: 1ccabee87bb0dbb12a9d126fc831a9de140b5cd3
p4raw-link: @27737 on //depot/perl: ca05af4a92ddd0af97a918d1f852c5c2f7142797

p4raw-id: //depot/maint-5.8/perl@29087
p4raw-integrated: from //depot/perl@29081 'edit in' sv.c (@29085..)

14 years agoNo need to save the PVX to the save stack when saving a GV, as the
Nicholas Clark [Sun, 22 Oct 2006 21:00:37 +0000 (21:00 +0000)]
No need to save the PVX to the save stack when saving a GV, as the
string buffer is only used as part of get/set magic when reading/
writing the stringified form. Keep the old save type in case any
code out there is still generating the old format on the save stack.

p4raw-id: //depot/maint-5.8/perl@29081

14 years agoIntegrate:
Nicholas Clark [Sun, 22 Oct 2006 20:12:38 +0000 (20:12 +0000)]
Integrate:
[ 29079]
const the variable used for the save stack type in Perl_ss_dup().
p4raw-link: @29079 on //depot/perl: b24356f5678a5867e2d91448d2f903c9e5b37540

p4raw-id: //depot/maint-5.8/perl@29080
p4raw-integrated: from //depot/perl@29022 'merge in' sv.c (@29053..)

14 years agoIntegrate:
Nicholas Clark [Sun, 15 Oct 2006 09:41:52 +0000 (09:41 +0000)]
Integrate:
[ 25254]
Another typo fix
p4raw-link: @25254 on //depot/perl: 2dfe1b172673363674e356ebb04df24a41dfd308

p4raw-id: //depot/maint-5.8/perl@29022
p4raw-integrated: from //depot/perl@25254 'merge in' XSUB.h (@24913..)
pod/perlapi.pod (@25172..)

14 years agoIntegrate:
Jarkko Hietaniemi [Tue, 25 Apr 2006 18:23:39 +0000 (21:23 +0300)]
Integrate:
[ 27987]
Subject: Re: [PATCH] use snprintf/strlcpy/strlcat when useful
Message-ID: <444E3EFB.8020503@gmail.com>

[ 27988]
Fix typo in function call
p4raw-link: @27988 on //depot/perl: ba1fe781b25ca91156a66df5a1cba2c16580a339
p4raw-link: @27987 on //depot/perl: e80fed9da44c731a6f85b5544b737325bd9a41a7

p4raw-id: //depot/maint-5.8/perl@29021
p4raw-integrated: from //depot/perl@27987 'edit in' universal.c
(@27542..) perlio.c pp_ctl.c util.c (@27962..) 'merge in'
perl.h (@27958..) op.c regcomp.c toke.c (@27962..) sv.c
(@27976..)

14 years agoIntegrate:
Nicholas Clark [Sat, 14 Oct 2006 16:42:04 +0000 (16:42 +0000)]
Integrate:
[ 25105]
Message-ID: <42D0F25E.3040801@gmail.com>
Date: Sun, 10 Jul 2005 13:03:10 +0300
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
Subject: [PATCH] yet another way of debugging memory allocations

adds PERL_MEM_LOG and PERL_MEM_LOG_STDERR options

[ 25109]
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
Date: Sun, 10 Jul 2005 21:50:27 +0300
Subject: [PATCH] yet another way of debugging memory allocations
Message-ID: <42D16DF3.4040806@gmail.com>

tweak PERL_MEM_LOG

[ 25115]
Subject: [patch: handy.c]  update Newx API pod to mention PERL_MEM_LOG build opt
From: Jim Cromie <jcromie@divsol.com>
Date: Mon, 11 Jul 2005 19:18:02 -0600
Message-ID: <42D31A4A.1020305@divsol.com>

(with some minor tweaks)

[ 25116]
Change New*() to Newx*() in various comments and documentation

[ 25128]
Subject: Make PERL_MEM_LOG more portable.
From:  Jarkko Hietaniemi <jhietaniemi@gmail.com>
Date:  Mon, 11 Jul 2005 15:29:46 +0300
Message-Id:  <42D2663A.4050204@gmail.com>

[ 27204]
Subject: Re: how to build with -DPERL_MEM_LOG ?
From: Andy Dougherty <doughera@lafayette.edu>
Date: Fri, 3 Feb 2006 11:55:58 -0500 (EST)
Message-ID: <Pine.SOC.4.62.0602031129530.9630@maxwell.phys.lafayette.edu>
p4raw-link: @27204 on //depot/perl: bc82975d259d743626ad1b4a960b4b1f13c7a816
p4raw-link: @25128 on //depot/perl: e352bcff231c07cf21f07ae801f374a3da3229ed
p4raw-link: @25116 on //depot/perl: 9f653bb54868b8547466924d4ce483acb8987efb
p4raw-link: @25115 on //depot/perl: c5008215525f2f0a2a10a4c6a997f4cccfb6d09b
p4raw-link: @25109 on //depot/perl: 46c6c7e2a233df6079f4ba33374086db68feb889
p4raw-link: @25105 on //depot/perl: fe4f188cfb649411f4ddac27f781a35304aab7d6

p4raw-id: //depot/maint-5.8/perl@29014
p4raw-integrated: from //depot/perl@29013 'copy in' x2p/a2p.h
(@26033..)
p4raw-integrated: from //depot/perl@25116 'edit in' pod/perlhack.pod
(@25109..)
p4raw-integrated: from //depot/perl@25115 'merge in' pod/perlapi.pod
(@25111..)
p4raw-integrated: from //depot/perl@25109 'edit in' handy.h (@25105..)
p4raw-integrated: from //depot/perl@25105 'edit in' util.c (@25101..)

14 years agoIntegrate:
Nicholas Clark [Sat, 14 Oct 2006 15:13:34 +0000 (15:13 +0000)]
Integrate:
[ 25104]
silence some compiler warnings
p4raw-link: @25104 on //depot/perl: 40e48b409b553fc7aff31fc8b93d589e4197ef3a

p4raw-id: //depot/maint-5.8/perl@29013
p4raw-integrated: from //depot/perl@25104 'edit in' embed.fnc proto.h
(@25079..) gv.h (@25099..)

15 years agoIntegrate:
Nicholas Clark [Sat, 16 Sep 2006 17:19:07 +0000 (17:19 +0000)]
Integrate:
[ 24803]
hash key code cleanup
p4raw-link: @24803 on //depot/perl: 97ddebaf393a19fb80bf52b8fdb8330e1c4a591b

p4raw-id: //depot/maint-5.8/perl@28854
p4raw-integrated: from //depot/perl@24803 'edit in' hv.h (@24660..)
embed.fnc (@24802..) 'merge in' hv.c (@24735..) proto.h
(@24802..)

15 years agoIntegrate:
Nicholas Clark [Sat, 16 Sep 2006 16:20:26 +0000 (16:20 +0000)]
Integrate:
[ 24352]
Skip PL_sig_sv when PERL_IMPLICIT_CONTEXT is defined
(rather than when PERL_IMPLICIT_SYS is defined)
p4raw-link: @24352 on //depot/perl: 605881df1187f0374622b9de459bb7d803f7d806

p4raw-id: //depot/maint-5.8/perl@28852
p4raw-integrated: from //depot/perl@24352 'merge in' makedef.pl
(@24341..)

15 years agoIntegrate:
Nicholas Clark [Sat, 2 Sep 2006 16:01:36 +0000 (16:01 +0000)]
Integrate:
[ 28771]
Change the generation of {} and [] from 3 ops to 1, and avoid 1 mortal
on the tempstack, by augmenting pp_anonlist and pp_anonhash to accept
OPf_SPECIAL to mean "return a reference to the aggregate" on the stack
rather than the aggregate itself.
p4raw-link: @28771 on //depot/perl: 78c72037c327e2cd8ede6cf098324435a670ca67

p4raw-id: //depot/maint-5.8/perl@28775
p4raw-integrated: from //depot/perl@28443 'edit in'
ext/B/t/concise-xs.t (@28487..) ext/B/B/Deparse.pm (@28656..)
'merge in' ext/B/t/f_map.t ext/B/t/f_sort.t (@28257..)
ext/Devel/Peek/t/Peek.t (@28559..) pp.c (@28657..) op.c
(@28686..) op.h (@28734..)

15 years agoIntegrate:
Nicholas Clark [Tue, 27 Jun 2006 22:39:26 +0000 (22:39 +0000)]
Integrate:
[ 28189]
A Configure probe for C99 variadic macros, based on code from Jarkko.

[ 28263]
Oops. Fix bad #! lines when not using userelocatableinc

[ 28283]
Re-generation after backports of
#28188 Only ask about MAD for 5.9.0 and greater. Otherwise silently
#28189 A Configure probe for C99 variadic macros, based on code from
#28202 Take advantage of the bug that binexp ignores the Configure
#28263 Oops. Fix bad #! lines when not using userelocatableinc
One small cleanup fix added. Some small re-ordering. Some whitespace.

[ 28284]
If I needed this now, I'll probably need it next time too :)

[ 28286]
HAS_HAS WAS NOW HAS
p4raw-link: @28286 on //depot/perl: 8d545908e1cd632fcaad42013d87f9fa4a034ad2
p4raw-link: @28284 on //depot/perl: f59c92c621b7937af4c128d98c292e91602e95f1
p4raw-link: @28283 on //depot/perl: a2d23ec243cb32ad5ac90ab8101b59ec7d77e541
p4raw-link: @28263 on //depot/perl: ea7d701d8a9efe1ba3e2127e0a97460c9f0c134c
p4raw-link: @28189 on //depot/perl: 9802685f01199cb057aa21dd571a78932fb81070

p4raw-id: //depot/maint-5.8/perl@28443
p4raw-integrated: from //depot/perl@28442 'merge in'
Cross/config.sh-arm-linux NetWare/config.wc epoc/config.sh
plan9/config_sh.sample (@27407..) win32/config.bc
win32/config.gc (@27634..) Porting/config.sh (@27758..)
win32/config.vc win32/config.vc64 (@28051..) uconfig.sh
(@28074..)
p4raw-integrated: from //depot/perl@28286 'edit in' handy.h (@28284..)
p4raw-integrated: from //depot/perl@28263 'edit in' Configure
(@28202..)
p4raw-integrated: from //depot/perl@28189 'edit in' Porting/Glossary
(@27758..) 'ignore' config_h.SH (@27863..) 'merge in'
configure.com (@27648..)

15 years agoIntegrate:
Nicholas Clark [Tue, 27 Jun 2006 22:20:20 +0000 (22:20 +0000)]
Integrate:
[ 28024]
OK, Win32 must no have snprintf()/vsnprintf

[ 28025]
I was mistaken.  Borland and gcc do have snprintf() and vsnprintf()
on Win32.

[ 28026]
Subject: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m) MSWin32 Win2000 SP4 (x86/1 cpu))
From: Abe Timmerman <abe@ztreet.demon.nl>
Date: Sun, 30 Apr 2006 15:15:24 +0200
Message-Id: <200604301515.24580.abe@ztreet.demon.nl>

[ 28051]
Subject: RE: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m) MSWin32 Win2000 SP4 (x86/1 cpu))
From: "Jan Dubois" <jand@ActiveState.com>
Date: Mon, 1 May 2006 18:55:11 -0700
Message-ID: <08ff01c66d8b$7282e320$2217a8c0@candy>

Subject: Re: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m)
From: "H.Merijn Brand" <h.m.brand@xs4all.nl>
Date: Tue, 2 May 2006 09:23:51 +0200
Message-ID: <20060502092351.7bae0896@pc09>

[ 28052]
Ahem. And here's the rest of #28051...

[ 28053]
Sigh. Third time lucky.
p4raw-link: @28053 on //depot/perl: 80e18237757da0670ddbfa6973109e70dbad24f3
p4raw-link: @28052 on //depot/perl: 8492fbab56e812aaa2531a774dba8ee2158b3a93
p4raw-link: @28051 on //depot/perl: 0586e26ac882da507fe050161dec1c4647418319
p4raw-link: @28026 on //depot/perl: 7f9dcb269dc64cc7b1ca55e6703c0c441758e7dd
p4raw-link: @28025 on //depot/perl: f71c8be366afc67b84ea5caf78d04d21dcb8be51
p4raw-link: @28024 on //depot/perl: 92f6af9f34268f0eae9b7cd58a369acbf8c5f1b7

p4raw-id: //depot/maint-5.8/perl@28442
p4raw-integrated: from //depot/perl@28441 'edit in' win32/config_H.bc
(@28024..)
p4raw-integrated: from //depot/perl@28052 'edit in' win32/win32.h
(@28003..)
p4raw-integrated: from //depot/perl@28051 'edit in' win32/config.vc64
(@28036..)
p4raw-integrated: from //depot/perl@28026 'edit in' win32/config.vc
(@27634..)
p4raw-integrated: from //depot/perl@28025 'edit in' win32/config_H.vc64
(@28024..)
p4raw-integrated: from //depot/perl@28024 'edit in' win32/config_H.gc
win32/config_H.vc (@27555..)

15 years agoIntegrate:
Nicholas Clark [Tue, 27 Jun 2006 22:15:42 +0000 (22:15 +0000)]
Integrate:
[ 27863]
Support for -DDEBUGGING and its alias -DEBUGGING
p4raw-link: @27863 on //depot/perl: eaf812ae1a347289872c15b0fb8a27a85b03dc2f

p4raw-id: //depot/maint-5.8/perl@28441
p4raw-integrated: from //depot/perl@27863 'copy in' config_h.SH
(@27703..) 'edit in' Configure (@27703..) 'merge in' INSTALL
(@27625..)

15 years agoIntegrate:
Nicholas Clark [Tue, 27 Jun 2006 22:00:05 +0000 (22:00 +0000)]
Integrate:
[ 27686]
First stab at a more reliable Glossary. This now is (again)
mostly generated. (Well, It's a repair to the existing version
"based on" a generated version, which is now well sorted, but
still incomplete for less obvious reasons).
p4raw-link: @27686 on //depot/perl: df4c34dc6f95fdf32fd0462242a4d4adc90fd779

p4raw-id: //depot/maint-5.8/perl@28440
p4raw-integrated: from //depot/perl@27686 'edit in' Porting/Glossary
(@27652..)

15 years agoIntegrate:
Nicholas Clark [Tue, 27 Jun 2006 21:54:10 +0000 (21:54 +0000)]
Integrate:
[ 27370]
Subject: [PATCH] Support for __builtin_expect and __builtin_choose_expr
From: Andy Lester <andy@petdance.com>
Date: Wed, 28 Dec 2005 15:34:08 -0600
Message-ID: <20051228213408.GB26033@petdance.com>

[ 27372]
Make Win32 configuration changes for HAS_BUILTIN_CHOOSE_EXPR and
HAS_BUILTIN_EXPECT.

[ 27373]
Add d_builtin_choose_expr and d_builtin_expect to configure.com as
'undef'.

[ 27412]
Complete change #27407/27410 on Win32 and tidy up change #27372

[ 27473]
Subject: [PATCH] Reapply change 24432
From: "Jan Dubois" <jand@ActiveState.com>
Date: Fri, 10 Mar 2006 18:21:39 -0800
Message-ID: <01b001c644b2$879a1f50$6062a8c0@candy>
p4raw-link: @27473 on //depot/perl: 85a556a55972fa9231f9b89742f002ffae39d10a
p4raw-link: @27412 on //depot/perl: 3825bc8f5d59257852813dc434ad90251414e9f5
p4raw-link: @27407 on //depot/perl: a724edfe531a4a4cce2d4bbb94e1f583d86bc9a3
p4raw-link: @27373 on //depot/perl: 3c2b4a8b2af84a0e73d85ae9816a9ec64789a9e8
p4raw-link: @27372 on //depot/perl: df012815e587b94cd356692431756ba265085fbf
p4raw-link: @27370 on //depot/perl: 635aebb78abd81c28ceb76ef8d65d262f3647e23

p4raw-id: //depot/maint-5.8/perl@28439
p4raw-integrated: from //depot/perl@27473 'edit in' config_h.SH
(@27410..)
p4raw-integrated: from //depot/perl@27412 'edit in' win32/config_H.bc
win32/config_H.gc win32/config_H.vc (@27372..)
p4raw-integrated: from //depot/perl@27373 'merge in' configure.com
(@27115..)
p4raw-integrated: from //depot/perl@27372 'edit in' win32/config_H.vc64
(@27007..) 'merge in' win32/config.bc win32/config.gc
win32/config.vc win32/config.vc64 (@26936..)
p4raw-integrated: from //depot/perl@27370 'merge in' Porting/Glossary
(@26606..) perl.h (@27361..) Configure (@27367..)

15 years agoIntegrate:
Jason Vas Dias [Tue, 31 Jan 2006 09:50:32 +0000 (01:50 -0800)]
Integrate:
[ 27363]
Subject: [perl #38385] _h2ph_pre.ph / $Config{cppsymbols} omits gcc-3.4+ cpp "predefined macros"
From: Jason Vas Dias (via RT) <perlbug-followup@perl.org>

[ 27367]
#27363 broke HP-UX (and others). if [[ ... ]] syntax not supported
p4raw-link: @27367 on //depot/perl: b6a7163e84fec2ee27fc3d0c252e50424d27241f
p4raw-link: @27363 on //depot/perl: ddfca5da10590b8934c0a4e6b1f77a03901648cf

p4raw-id: //depot/maint-5.8/perl@28438
p4raw-integrated: from //depot/perl@27367 'edit in' Configure
(@27363..)
p4raw-integrated: from //depot/perl@27363 'copy in' utils/h2ph.PL
(@26812..)

15 years agoIntegrate:
Robert Sebastian Gerus [Tue, 14 Feb 2006 17:27:52 +0000 (18:27 +0100)]
Integrate:
[ 27189]
Subject: Patch for perl to compile/work on DragonFlyBSD
Message-ID: <4a1e16420602140827w17fd6595w@mail.gmail.com>

[ 27190]
Added hints/dragonfly.sh for #27189

[ 27263]
Additional hints needed to build threaded Perls on NetBSD.
p4raw-link: @27263 on //depot/perl: 5d0b7876b0019191af58e1bc2dbfe65297fb07aa
p4raw-link: @27190 on //depot/perl: 6295ebfaf1e0ca1b6ba18bec94c8355b342cc67f
p4raw-link: @27189 on //depot/perl: a774dfe6b6f995a7b0f1353bd08c10bb60822960

p4raw-id: //depot/maint-5.8/perl@28437
p4raw-branched: from //depot/perl@28436 'branch in' hints/dragonfly.sh
p4raw-integrated: from //depot/perl@28436 'copy in' hints/netbsd.sh
(@20552..)
p4raw-integrated: from //depot/perl@27190 'merge in' MANIFEST
(@27180..)
p4raw-integrated: from //depot/perl@27189 'edit in' Configure
(@26993..) Makefile.SH (@27177..)

15 years agoIntegrate:
Steve Peters [Mon, 2 Jan 2006 09:37:27 +0000 (03:37 -0600)]
Integrate:
[ 26606]
Add probe for snprintf () and vsnprintf ()

Subject: [PATCH] snprintf() and vsnprintf() (was Re: [PATCH] Configure: stdio char (un)signedness)
Message-ID: <20060102153727.GA14247@mccoy.peters.homeunix.org>

[ 26630]
Add snprintf() and vsnprintf() to the various Win32 configuration
files.

[ 26632]
Added snprintf() and vsnprintf() to configure.com as 'undef'.

[ 26655]
Reorder changes made in change 26630

(Keep the order in win32/config.* and win32/config_H.* the same as in
Configure and config_H.SH for easier diffing)

[ 26668]
Test if the probed availability of v?snprintf () is
actually usable. Thanks to Russ and Jarkko.

[ 26703]
Make v?snprintf available on VMS v7.3-2 and later and clean up
some other version-dependency checks.
p4raw-link: @26703 on //depot/perl: d00eb2498c2f3efedfc04e6a6a3691e600b0c96a
p4raw-link: @26668 on //depot/perl: 2478f7a0ecfc00f4d83ec0abe7521859385d9893
p4raw-link: @26655 on //depot/perl: aeb8b986a1665673ee977bbacc4401c792f66cd1
p4raw-link: @26632 on //depot/perl: ed3e35345042264d83e70f04a3168d38072ed0b8
p4raw-link: @26630 on //depot/perl: 4ae8a42e2d893d542fe5ac274d3d7a2fb77e0f25
p4raw-link: @26606 on //depot/perl: 4f5da3e92a0c530bfe4334764eb75169e997c27f

p4raw-id: //depot/maint-5.8/perl@28436
p4raw-integrated: from //depot/perl@26703 'edit in' configure.com
(@26690..)
p4raw-integrated: from //depot/perl@26668 'edit in' Configure
(@26606..)
p4raw-integrated: from //depot/perl@26655 'edit in' win32/config.vc64
(@26630..)
p4raw-integrated: from //depot/perl@26630 'edit in' win32/config.bc
win32/config.gc win32/config.vc win32/config_H.bc
win32/config_H.gc win32/config_H.vc win32/config_H.vc64
(@25943..)
p4raw-integrated: from //depot/perl@26606 'edit in' handy.h (@26505..)
'ignore' Porting/Glossary (@25935..) 'merge in' config_h.SH
(@25935..)

15 years agoIntegrate:
Nicholas Clark [Fri, 19 May 2006 15:01:03 +0000 (15:01 +0000)]
Integrate:
[ 28007]
Subject: two [PATCH]es: dVAR for malloc.c, and a signed/unsigned char*
From: Jarkko Hietaniemi <jhietaniemi@gmail.com>
Date: Fri, 28 Apr 2006 21:04:59 +0300
Message-ID: <4452594B.4040609@gmail.com>
[the signed/unsigned part]

[ 28042]
Subject: [PATCH] signed vs unsigned char * nit
From: Jarkko Hietaniemi <jhi@cc.hut.fi>
Date: Sat, 29 Apr 2006 20:59:29 +0300 (EEST)
Message-Id: <200604291759.k3THxTji032009@kosh.hut.fi>
p4raw-link: @28042 on //depot/perl: 3b416f4149e31f8665cf9074e631ca0d2529406e
p4raw-link: @28007 on //depot/perl: 899be1018553cb37b5cccbe4f65d169fd1c17028

p4raw-id: //depot/maint-5.8/perl@28233
p4raw-integrated: from //depot/perl@28042 'edit in' pp.c (@28027..)

15 years agoUpdate Changes
Nicholas Clark [Wed, 17 May 2006 21:36:24 +0000 (21:36 +0000)]
Update Changes

p4raw-id: //depot/maint-5.8/perl@28220

15 years agoIntegrate:
Nicholas Clark [Tue, 16 May 2006 22:44:31 +0000 (22:44 +0000)]
Integrate:
[ 28034]
Fix two errors found by Coverity.
p4raw-link: @28034 on //depot/perl: 4b0c4b6fb611d776b6e7507f70c235f361e01815

p4raw-id: //depot/maint-5.8/perl@28213
p4raw-integrated: from //depot/perl@28034 'merge in' pp_sys.c
(@28019..)

15 years agoIntegrate:
Andy Lester [Sun, 30 Oct 2005 23:44:13 +0000 (17:44 -0600)]
Integrate:
The perlio.c part of:
[ 25915]
Subject: [PATCH] Etta James presents: More consting
Date: Sun, 30 Oct 2005 23:44:13 -0600
Message-ID: <20051031054413.GA10767@petdance.com>

[ 25948]
Subject: [PATCH] perlio.c consting
From: Andy Lester <andy@petdance.com>
Date: Oct 31, 2005 6:54 PM
Message-ID: <20051031175411.GA18480@petdance.com>
p4raw-link: @25948 on //depot/perl: dcda55fce16d4bfd5fd692594c1b771b8c7e87d8
p4raw-link: @25915 on //depot/perl: c4420975666e665b3282e2edeea3304e6626be36

p4raw-id: //depot/maint-5.8/perl@28212
p4raw-integrated: from //depot/perl@25948 'edit in' perlio.c (@25925..)
'merge in' op.c (@25915..)

15 years agoIntegrate:
Nicholas Clark [Tue, 16 May 2006 17:29:06 +0000 (17:29 +0000)]
Integrate:
[ 27484]
The "Change installation prefix, if necessary." code needs to use
the ~ expanded prefix and installprefix in the substitution.

[ 27485]
The existing order of the checks for whether man1dir and man3dir were
' ' were obviously buggy, because they set installman[13]dir only for
the next if block to set it again. Reordering removes that daftness.

[ 27488]
Refactor most of the cut & paste for setting prefix/prefixexp variables
and the "Change installation prefix, if necessary" into a new
"function" setprefixvar (which I assume will become Setprefixvar.U)
How many platforms still have Bourne shells that can't do shell
functions? Someone's going to say Irix?

[ 27489]
Split break out the installprefix code from setprefixvar, which allows
the remaining 8 places to call the common prefix conversion code.

[ 27490]
First stab at rather shaky Configure support for relocatable @INC.
Seems to be installing rather more that it's supposed to be.

[ 27491]
Somewhat less shaky relocatable @INC support. You can install things
to the current location of the perl tree, move it, install more things,
move it again, lather rinse repeat.
Configure with -Duserelocatableinc

[ 27513]
Make the original versions of relocated paths available from
%Config::Config with the prefix "raw_". Not sure if "raw_" is the
best choice.

[ 27603]
make configpm only update Config.pm, Config_heavy.pl if changed.
Should stop spurious rebuilding of extensions.
Also add documentation and copyright to top of file.

[ 27703]
Regeneration after backports of #27447, #27484, #27485, #27488,
#27489, #27490, #27491, and #27632

[ 27758]
Regeneration of Glossary and the underlying tools.

[ 28188]
Only ask about MAD for 5.9.0 and greater. Otherwise silently select
'n'.

[ 28196]
Simplify the implementation in ExtUtils::Packlist::read.

[ 28198]
Encode run-time relocation of file names in packlist with a relocate_as
attribute. With this, unmodified instmodsh correctly verifies installed
modules even after relocation.

[ 28202]
Take advantage of the bug that binexp ignores the Configure
installprefix, by using initialinstalllocation rather than binexp
to determine the #! line for installed scripts. This way they are at
least correct initially for a relocatable @INC perl, rather than
starting as .../../bin/perl

[ 28210]
Revert change 27513
[Make the original versions of relocated paths available from
 %Config::Config with the prefix "raw_". Not sure if "raw_" is the
 best choice.]
p4raw-link: @28210 on //depot/perl: 8d962fa19aed5e09e2a40f248faf69d89e34ac51
p4raw-link: @28202 on //depot/perl: d0e36aa98afbfc3010e3967466f74fb90a5f87db
p4raw-link: @28198 on //depot/perl: c776f839f30384ddfe6b6dc36234e7e9c6769025
p4raw-link: @28196 on //depot/perl: 2670f2fb63e9d801bb95741ca4b37440856f6dc9
p4raw-link: @28188 on //depot/perl: fd655d330c4a545eb836be2bf58736622e036e45
p4raw-link: @27758 on //depot/perl: 1d8961043b9b86e13dafc590cceb9dd2c36fc93e
p4raw-link: @27703 on //depot/perl: f3f1a2d8b86b4e98226148e5f6cbaed401f4f44f
p4raw-link: @27603 on //depot/perl: 962e59f3942cd3c21a40f74d9355b5264589f9a0
p4raw-link: @27513 on //depot/perl: 86ef366e59c075737dda06eda5c86422f489d06f
p4raw-link: @27491 on //depot/perl: 1d230ada0b2ff8ef3af3370141f10c3315abf450
p4raw-link: @27490 on //depot/perl: 4d20abadde4f672afab51524d4ff00c7c65bbed7
p4raw-link: @27489 on //depot/perl: a092d240526911dd8284a018cd9aceb03393940a
p4raw-link: @27488 on //depot/perl: 79522dd28c2cdf92c115561db038e46cd34e5073
p4raw-link: @27485 on //depot/perl: 477140ee87d4de70d22c41fe9cdb326baa1d9749
p4raw-link: @27484 on //depot/perl: 7056f94a252273b10cc029678e8fd38f9090525a

p4raw-id: //depot/maint-5.8/perl@28211
p4raw-integrated: from //depot/perl@28196 'ignore'
lib/ExtUtils/Packlist.pm (@27983..)
p4raw-integrated: from //depot/perl@27758 'edit in' Porting/Glossary
(@27686..)
p4raw-integrated: from //depot/perl@27703 'merge in' config_h.SH
(@27632..)
p4raw-integrated: from //depot/perl@27491 'edit in' configpm (@27490..)
'merge in' installperl (@27389..)
p4raw-integrated: from //depot/perl@27488 'edit in' Configure
(@27485..)

15 years agoIntegrate:
Yves Orton [Tue, 31 Jan 2006 09:55:25 +0000 (10:55 +0100)]
Integrate:
[ 27016]
Subject: Re: [PATCH] Re: replacing "inuse" Win files (was Re: Help with a Cwd.pm build error)
Message-ID: <9b18b3110601310055h7aeb9aa1gdc2d63cc56d97768@mail.gmail.com>

[ 27587]
Get version numbers in line with what's in the CPAN
EU::MM 6.30_01 tarball. (ExtUtils::Install has local changes,
so bump its version number.)

[ 27983]
Upgrade to ExtUtils-Install-1.39

[ 28101]
Upgrade to ExtUtils-Install-1.40
p4raw-link: @28101 on //depot/perl: dc7d4075528440745316b7c771b25ec178ce8384
p4raw-link: @27983 on //depot/perl: 3a465856879d8f5c62068f777bdbd4b60c7e7eb4
p4raw-link: @27587 on //depot/perl: b308eaac984433b634f42b8721523057190cf20c
p4raw-link: @27016 on //depot/perl: 3b4a80d1d9e181ce3db176cafa62162ddbd00ced

p4raw-id: //depot/maint-5.8/perl@28208
p4raw-integrated: from //depot/perl@28207 'copy in'
lib/ExtUtils/t/Packlist.t (@16663..) lib/ExtUtils/t/Install.t
(@21652..) lib/ExtUtils/t/Installed.t (@24510..)
p4raw-integrated: from //depot/perl@27587 'ignore'
lib/ExtUtils/Packlist.pm (@16663..) lib/ExtUtils/Installed.pm
(@20754..)
p4raw-integrated: from //depot/perl@27016 'ignore'
lib/ExtUtils/Install.pm (@24185..)

15 years agoIntegrate:
Nicholas Clark [Tue, 16 May 2006 13:57:39 +0000 (13:57 +0000)]
Integrate:
[ 27407]
Add a Configure question for mad (Misc Attribute Decoration - Larry's
perl5 to perl[56] convertor), which if set defines PERL_MAD in config.h

[ 27410]
Backport #27407
Add a Configure question for mad (Misc Attribute Decoration - Larry's
perl5 to perl[56] convertor), which if set defines PERL_MAD in config.h

[ 27632]
Introduce d_sitearch and d_inc_version_list config.sh variables.
These allow me to set sitearch and sitelib to be the same without
ending up with duplicate entries in @INC.

Basically the same way the old d_archlib variable is used.

[ 27634]
Populate pre-canned config.sh files with
d_archlib and d_inc_version_list.
Ref change 27632.

[ 27652]
Glossary part for #27447 (madlyh, madlyobj, madlysrc)
p4raw-link: @27652 on //depot/perl: 52ca670a8fddebef5ced52ed063f29408da24778
p4raw-link: @27634 on //depot/perl: a04d9d89390de90855aea3352a83bfabc09fcd3b
p4raw-link: @27632 on //depot/perl: c95d0e17d41adab48cd67f4e46a8183fa17438e1
p4raw-link: @27410 on //depot/perl: d620c7b31fc6dbd13dded070810962b5b0782c28
p4raw-link: @27407 on //depot/perl: a724edfe531a4a4cce2d4bbb94e1f583d86bc9a3

p4raw-id: //depot/maint-5.8/perl@28207
p4raw-integrated: from //depot/perl@27652 'edit in' Porting/Glossary
(@27632..)
p4raw-integrated: from //depot/perl@27634 'edit in' win32/config.gc
wince/config.ce (@27407..)
p4raw-integrated: from //depot/perl@27632 'edit in' perl.c (@27617..)
p4raw-integrated: from //depot/perl@27410 'edit in' config_h.SH
(@27407..)
p4raw-integrated: from //depot/perl@27407 'edit in' Configure
(@27370..) win32/config.bc win32/config.vc win32/config.vc64
(@27372..) configure.com (@27386..) 'merge in'
Cross/config.sh-arm-linux NetWare/config.wc
plan9/config_sh.sample (@26639..) uconfig.sh (@26764..)
epoc/config.sh (@27007..)

15 years agoIntegrate:
Yitzchak Scott-Thoennes [Mon, 9 Jan 2006 06:38:25 +0000 (22:38 -0800)]
Integrate:
[ 26757]
Subject: Re: relaxing TEST restrictions (was: Re: 5.9.3 approaches)
Message-ID: <20060109143825.GB4132@efn.org>

[ 26959]
Revert change 24461, now that change 26757 allows TEST
to accept extra output from module tests

[ 28192]
TEST needs to binmode the file handle that is reading the TAP, else it
can get killed if TEST's environment has made it default all opens to
UTF-8 but the TAP is not UTF-8.
p4raw-link: @28192 on //depot/perl: 9c8d215a6f7e1098759dbf707ed95f4895bc227c
p4raw-link: @26959 on //depot/perl: fce9dd68bde848d8e3cace4ead96a2070769c394
p4raw-link: @26757 on //depot/perl: dbf51d072f3a6cc24fb165e2f676abaf7526375d

p4raw-id: //depot/maint-5.8/perl@28204
p4raw-integrated: from //depot/perl@28203 'copy in' cygwin/perlld.in
(@24461..) 'edit in' t/TEST (@26846..)

15 years agoIntegrate:
Nicholas Clark [Tue, 16 May 2006 12:08:39 +0000 (12:08 +0000)]
Integrate:
[ 26048]
3 calls to strlen() we can avoid.

[ 26049]
Eliminate duplicate strlen()s by explicitly calling it.
Note two places for future audit with FIXME.
Convert a SvPVX_const to SvPVX_const_nolen, where the length is unused.

[ 26050]
Eliminate some unnecessary strlen()s

[ 26051]
Moving the 4 writes of PL_no_mem followed by exit(1) to a static
function makes the object code slightly smaller.

[ 26052]
It helps to actually *remove* the now-superfluous strlen().
(An addendum to 26050.)

[ 26059]
Remove superfluous strlen() from pp_require().

[ 26061]
Simplify Perl_allocmy slightly, and cope better with the name is ""
case.

[ 26180]
Eliminate two more strlen()s, by using the return value of sprintf().

[ 26188]
Subject: [PATCH] ff_chop.patch redux
From: Andy Lester <andy@petdance.com>
Date: Mon, 21 Nov 2005 21:16:14 -0600
Message-ID: <20051122031614.GB19424@petdance.com>

[ 26231]
Subject: [PATCH] Remove redundant SvUTF8_on() calls
From: Gisle Aas <gisle@ActiveState.com>
Date: 30 Nov 2005 09:28:54 -0800
Message-ID: <lrhd9uhwo9.fsf@caliper.activestate.com>
p4raw-link: @26231 on //depot/perl: 2219f6da8b4df34299c1085ceb0611febcdea865
p4raw-link: @26188 on //depot/perl: af68e75656cbfd664098f1282fc660db7e34b9ca
p4raw-link: @26180 on //depot/perl: fc009855d5dd3ec0391bdd89fe8d709ff3609d46
p4raw-link: @26061 on //depot/perl: 6b58708ba0b8d2e44d1ba2d0c16da2fae0767752
p4raw-link: @26059 on //depot/perl: 238d24b47319609016b1ceeca1f7146f7484b9a0
p4raw-link: @26052 on //depot/perl: 261492a9c792cc5996fa288aed06262ae8bc3cb7
p4raw-link: @26051 on //depot/perl: ca8d897694915d32eefc26fbdc726d3457e7fedc
p4raw-link: @26050 on //depot/perl: 42d9b98d3f03094883cfc4bb765785a6d4396077
p4raw-link: @26049 on //depot/perl: f7997f866fdcafc687fbaa99dbeb48f109b2e8d8
p4raw-link: @26048 on //depot/perl: 2b2a7552a15f8e825abc97e9ae95ff726e336474

p4raw-id: //depot/maint-5.8/perl@28203
p4raw-integrated: from //depot/perl@26231 'merge in' pp.c (@26039..)
p4raw-integrated: from //depot/perl@26180 'edit in' pp_ctl.c (@26059..)
p4raw-integrated: from //depot/perl@26061 'edit in' op.c (@26050..)
p4raw-integrated: from //depot/perl@26050 'edit in' toke.c (@25915..)
perlio.c (@25948..) sv.c (@26003..) util.c (@26028..) doio.c
(@26048..) 'merge in' perl.c (@26046..)

15 years agoIntegrate:
Nicholas Clark [Mon, 15 May 2006 16:44:06 +0000 (16:44 +0000)]
Integrate:
[ 24081]

[with modification - the extra argument to incpush was supposed to
be being used]
p4raw-link: @24081 on //depot/perl: dd374669df59cc2457708a01ea0f6d332912530b

p4raw-id: //depot/maint-5.8/perl@28201
p4raw-edited: from //depot/perl@24081 'edit in' perl.c (@24077..)

15 years agoIntegrate:
Nicholas Clark [Mon, 15 May 2006 16:20:18 +0000 (16:20 +0000)]
Integrate:
[ 23667]
Move the setting of $^X ahead of the initialisation of @INC

[ 23668]
Move the definition of the S_procself_val() function before
the point where it's used

[ 23674]
Relocatable @INC entries for Unix.
(With appropriate fixups in Config.pm to complete the illusion)
Currently can only be enabled with hackery to config.sh
TODO - proper Configure support, and support for otherlibdirs in
Config.pm

[ 23675]
Oops. You can't add new entries to config_h.SH without making some
sort of corresponding defined/undefined value in config.sh somehow.

[ 23676]
Bother. It helps if you also propagate the new entry to config.sh

[ 23677]
Subject: [PATCH] Re: Smoke [5.9.2] 23675 FAIL(m) openvms E8.2 (Alpha/4 cpu)
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41CB6BD1.8030207@mac.com>
Date: Thu, 23 Dec 2004 19:07:29 -0600

[ 23679]
Don't do the ... expansion on archlib, sitelib etc, given that
everyone should already be using archlibext etc
Add the extra special case code for otherlibdirs

[ 23696]
Rebuilt after backport start for 23674, 23675, and 23676

(and the configpm part of)
[ 24271]
Subject: [PATCH] Symbian port of Perl
From: <jarkko.hietaniemi@nokia.com>
Date: Mon, 18 Apr 2005 13:18:30 +0300
Message-ID: <B356D8F434D20B40A8CEDAEC305A1F2453D653@esebe105.NOE.Nokia.com>
p4raw-link: @24271 on //depot/perl: 27da23d53ccce622bc51822f59df8def79b4df95
p4raw-link: @23696 on //depot/perl: db0f2be49373138d6e6d3c0766652079b73f7811
p4raw-link: @23679 on //depot/perl: 91f668c3f8088a8ade9864ff2621af073dcb5766
p4raw-link: @23677 on //depot/perl: 4fd0a66c13e2fc6d8b573192b10e547eb574af3b
p4raw-link: @23676 on //depot/perl: d51aaa9d21dc3a78c1d9dc7a1cac0fb9ea283618
p4raw-link: @23675 on //depot/perl: 780a879fbce551af3f93d2602d9e2640cedba3cb
p4raw-link: @23674 on //depot/perl: 88fe16b231aae255ffd6ec9561af9af9f6edf830
p4raw-link: @23668 on //depot/perl: 56cf6df88be94735387b08ddb4d6153b4d344490
p4raw-link: @23667 on //depot/perl: b7975bdd15a2f8cfdd39f81ddeda20aac688230d

p4raw-id: //depot/maint-5.8/perl@28199
p4raw-integrated: from //depot/perl@23679 'edit in' configpm (@23674..)
p4raw-integrated: from //depot/perl@23677 'merge in' configure.com
(@23601..)
p4raw-integrated: from //depot/perl@23676 'edit in' Configure
(@23675..)
p4raw-integrated: from //depot/perl@23674 'edit in' proto.h (@23612..)
embed.fnc (@23644..) 'merge in' Porting/Glossary (@23457..)
embed.h (@23612..)
p4raw-integrated: from //depot/perl@23668 'edit in' perl.c (@23667..)

15 years agoIntegrate:
Yves Orton [Thu, 20 Apr 2006 22:36:08 +0000 (00:36 +0200)]
Integrate:
[ 27902]
Upgrade to Test::Harness 2.57_05

[ 27925]
Subject: Re: TODO tests and test::harness
Message-ID: <9b18b3110604201336k5a974f28h732a2819853b995@mail.gmail.com>

[ 27940]
Assimilate Test::Harness 2.57_06

[ 28190]
Upgrade to Test::Harness 2.58.
p4raw-link: @28190 on //depot/perl: 8d0d504096dac80115e0133d173ed8b2b603e2ee
p4raw-link: @27940 on //depot/perl: ea5423ed7213500644a0e5d3956d06216e1dfa0f
p4raw-link: @27925 on //depot/perl: c6b05a01efa19bab6d6168ada898b9ae1e4177e2
p4raw-link: @27902 on //depot/perl: 20f9f807e1e82c57258ff80abead8fc8ae928a83

p4raw-id: //depot/maint-5.8/perl@28191
p4raw-branched: from //depot/perl@28184 'branch in'
lib/Test/Harness/Util.pm
p4raw-integrated: from //depot/perl@28184 'copy in'
lib/Test/Harness/t/inc_taint.t (@21826..)
lib/Test/Harness/Assert.pm lib/Test/Harness/t/prove-globbing.t
lib/Test/Harness/t/prove-switches.t (@23847..)
lib/Test/Harness/t/strap.t (@24314..) lib/Test/Harness/Point.pm
(@24315..) lib/Test/Harness/TAP.pod
lib/Test/Harness/t/test-harness.t (@25649..)
lib/Test/Harness/Changes (@27902..)
p4raw-integrated: from //depot/perl@27925 'edit in' lib/Test/Harness.pm
(@27902..) 'ignore' lib/Test/Harness/t/version.t (@24315..)
p4raw-integrated: from //depot/perl@27902 'ignore'
lib/Test/Harness/bin/prove (@25649..)
lib/Test/Harness/Straps.pm (@25731..) 'merge in' MANIFEST
(@27884..)

15 years agoCasts to cope with non-const function prototypes in maint.
Nicholas Clark [Fri, 12 May 2006 21:35:03 +0000 (21:35 +0000)]
Casts to cope with non-const function prototypes in maint.

p4raw-id: //depot/maint-5.8/perl@28184

15 years agoIntegrate:
Nicholas Clark [Fri, 12 May 2006 18:29:48 +0000 (18:29 +0000)]
Integrate:
[ 27176]
Ensure that public I, N and P flags are off when SvTAINT is called on
something that already has taint magic.

[ 27219]
Convert utftaint.t to test.pl (from Test.pm) and provide it with
tainted() from taint.t to remove the dependency on Scalar::Util.
(So it will now work with miniperl)

[ 27221]
Turn of tainting locally inside swash_init(), as the internal
implementation of the regexp engine has nothing to do with user data,
so when and where it happens to call require is agnostic of the current
expression's taintedness.

[ 27222]
save_re_context() and even errsv_save = newSVsv(ERRSV); can turn
PL_tainted back on, so defer turning if off as late as possible.
This gets lib/locale.t working once more.
p4raw-link: @27222 on //depot/perl: dc0c6abb4831ca4f92936b3f2d60d8c6cf65c6f1
p4raw-link: @27221 on //depot/perl: d020f5c489f4f9dfad0aa88c9bea73bdb19071d1
p4raw-link: @27219 on //depot/perl: d2a59f97adfd492f72c6841a4b888253ca972521
p4raw-link: @27176 on //depot/perl: 2a509ed3c095f7d712013e653f68821f6bb2d6db

p4raw-id: //depot/maint-5.8/perl@28182
p4raw-integrated: from //depot/perl@27221 'edit in' utf8.c (@27177..)
p4raw-integrated: from //depot/perl@27219 'edit in' t/op/utftaint.t
(@24010..)
p4raw-integrated: from //depot/perl@27176 'merge in' sv.c (@27159..)

15 years agoIntegrate:
Jarkko Hietaniemi [Wed, 19 Oct 2005 16:19:23 +0000 (19:19 +0300)]
Integrate:
[ 25804]
Subject: [PATCH] blead 25801: Symbian batch of today
Date: Wed, 19 Oct 2005 16:19:23 +0300
Message-ID: <B356D8F434D20B40A8CEDAEC305A1F24E7A663@esebe105.NOE.Nokia.com>

[ 26030]
Subject: [PATCH] Symbian update blead@26025
From: <jarkko.hietaniemi@nokia.com>
Date: Mon, 7 Nov 2005 13:32:15 +0200
Message-ID: <B356D8F434D20B40A8CEDAEC305A1F24E7A70C@esebe105.NOE.Nokia.com>
p4raw-link: @26030 on //depot/perl: d0d72822ba0a68d160ea4c98ca80f24b8f73969b
p4raw-link: @25804 on //depot/perl: 1215b447b68a44982cbab6532e02152be37089dd

p4raw-id: //depot/maint-5.8/perl@28170
p4raw-integrated: from //depot/perl@26030 'merge in' doio.c (@25969..)
perl.c (@25991..)
p4raw-integrated: from //depot/perl@25804 'merge in' pp_sys.c
(@25778..) perl.h (@25790..)

15 years agoIntegrate:
SADAHIRO Tomoyuki [Sat, 25 Feb 2006 18:16:45 +0000 (03:16 +0900)]
Integrate:
[ 27329]
Subject: Re: [perl #38619] Bug in lc and uc (interaction between UTF-8, substr, and lc/uc)
Message-Id: <20060225180934.FCC3.BQW10602@nifty.com>

[ 28006]
Fix bug 34297 (length of overloaded UTF-8 strings)

[ 28011]
lc plus an 8 bit locale could mangle UTF-8 values returned by
overloaded stringification.

[ 28012]
uc plus an 8 bit locale could get confused by UTF-8 values returned by
overloaded stringification.

[ 28013]
lcfirst/ucfist plus an 8 bit locale could mangle UTF-8 values
returned by overloaded stringification.

[ 28014]
There were more ways to break uc/lc/ucfirst/lcfirst even without
use 'locale'; so test for them too. Correct the skip count.

[ 28016]
print couldn't correctly handle surprises from UTF-8 overloading.

[ 28019]
syswrite couldn't correctly handle surprises from UTF-8 overloading.
As part of fixing this, syswrite now tries to take advantage of the
UTF-8 cache logic for lengths and offsets on regular scalars.

[ 28022]
index and rindex couldn't correctly handle surprises from UTF-8
overloading.

[ 28027]
Dave noticed that change 28022 was wrong - should read is_index
rather than just index.

[ 28028]
We had no tests that covered the grow paths in pp_uc and pp_lc.

[ 28029]
do_vop() couldn't correctly handle surprises from UTF-8 overloading.

[ 28030]
One part of pp_pack couldn't correctly handle surprises from UTF-8
overloading.
p4raw-link: @28030 on //depot/perl: ce399ba62db9cda174a31da7c5310c71b8a9adc4
p4raw-link: @28029 on //depot/perl: 12abf4f0efbd7338e12bce75e8fe77c524383458
p4raw-link: @28028 on //depot/perl: c2955298f73609931e7742722d6cdab7cad91e16
p4raw-link: @28027 on //depot/perl: e4e44778093d8ab0f643e5c4d3bbf079882672c3
p4raw-link: @28022 on //depot/perl: 73ee8be2712c500c98e5976864ba96726bf311e2
p4raw-link: @28019 on //depot/perl: c9cb0f4189a96c284198e261ba3e6a7df9d31f55
p4raw-link: @28016 on //depot/perl: 676f44e7e401461aa81575a0e3d8e005bbe94251
p4raw-link: @28014 on //depot/perl: 6e08b83d756ad133b8bc2487444be12cd5bed405
p4raw-link: @28013 on //depot/perl: d54190f6ca0aac8b08bb59370c53932771933c40
p4raw-link: @28012 on //depot/perl: 673061948a634568cc156286d219e7f736c6048a
p4raw-link: @28011 on //depot/perl: ec9af7d430b6660eff7240fa20757fa5feb233a8
p4raw-link: @28006 on //depot/perl: 923318002ce505ec75344304b64394034456b5b8
p4raw-link: @27329 on //depot/perl: 6818a3573a254af22852a6102b2d70b346bae901

p4raw-id: //depot/maint-5.8/perl@28169
p4raw-added: from //depot/perl@28167 'edit' t/uni/overload.t (@28029..)
p4raw-integrated: from //depot/perl@28167 'copy in' t/op/lc.t
(@27329..) 'merge in' doop.c (@27962..)
p4raw-integrated: from //depot/perl@28030 'merge in' pp_pack.c
(@28008..)
p4raw-integrated: from //depot/perl@28019 'edit in' pp_sys.c (@28008..)
p4raw-integrated: from //depot/perl@28016 'merge in' doio.c (@28008..)
p4raw-integrated: from //depot/perl@28011 'edit in' pp.c (@28008..)
p4raw-integrated: from //depot/perl@28006 'merge in' MANIFEST
(@28005..)

15 years agoDie die die die die! And stay dead, please.
Nicholas Clark [Thu, 11 May 2006 16:08:47 +0000 (16:08 +0000)]
Die die die die die! And stay dead, please.

p4raw-id: //depot/maint-5.8/perl@28167

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 16:01:23 +0000 (16:01 +0000)]
Integrate:
[ 25821]
Mark more static Encode data structures as const.

[ 25823]
use more 'const' in the Encode data structures.

[ 26081]
Pod nit in Encode.pm, found by Marc Lehmann in RT #36949.

[ 26295]
Don't build manpages for Encode and Unicode::Normalize
(when compiling perl manpages are built afterwards, not
by MakeMaker like when installing modules.) This fix a
bootstrap problem (now that Pod::Man uses POSIX.)

[ 26863]
Upgrade to Encode 2.14

[ 26922]
Avoid warning with MS Visual C compiler.
Encode.xs(443) : warning C4761: integral size mismatch in argument; conversion supplied

[ 27721]
There should be only one META.yml file

[ 27824]
Coverity notes that resource are leaked in the unfinished and never
called function _utf8_to_bytes.

[ 27982]
Upgrade to Encode-2.15

[ 28098]
Upgrade to Encode 2.16

[ 28141]
Ressurect change 27824, which plugs a resource leak in uncalled code.

[ 28152]
Upgrade to Encode-2.17
p4raw-link: @28152 on //depot/perl: 5a1dbf3942f1e2ad6a95fb40929e663709bd4e44
p4raw-link: @28141 on //depot/perl: 2cdf8b6c82a522ab6054376c5495b61d5124fe25
p4raw-link: @28098 on //depot/perl: d1256cb1bc05a9b21e5ab396a011ea9c02150dd4
p4raw-link: @27982 on //depot/perl: 0a8c69ed98534e4cb5df7fb14bb378b3457ef4ef
p4raw-link: @27824 on //depot/perl: 5860085a49b592c6a586022a93b99a5b2e2d24a5
p4raw-link: @27721 on //depot/perl: f8cd812dc4998f8b7cfb96262c9f9652d45d74e1
p4raw-link: @26922 on //depot/perl: f5a22bee2f0219400ae1a034d612824b40d53944
p4raw-link: @26863 on //depot/perl: 41c240f59398510e3a736bd441215c051e190e68
p4raw-link: @26295 on //depot/perl: f506ffab3a9790503594078dbe049cd53fe08007
p4raw-link: @26081 on //depot/perl: 50c1ac04356af5f8e8f967db7ed083187aacb550
p4raw-link: @25823 on //depot/perl: 7dd03145f7521e677db128080742a33214229568
p4raw-link: @25821 on //depot/perl: 0629a5b339b45d14dcfb89e3642fe75983f27c16

p4raw-id: //depot/maint-5.8/perl@28165
p4raw-branched: from //depot/perl@28164 'branch in'
ext/Encode/t/from_to.t
p4raw-deleted: from //depot/perl@28164 'delete in'
ext/Devel/PPPort/META.yml (@26914..)
p4raw-integrated: from //depot/perl@28164 'copy in'
ext/Encode/bin/unidump (@15780..) ext/Encode/t/unibench.pl
(@15925..) ext/Encode/t/encoding.t (@15993..)
ext/Encode/Unicode/Makefile.PL (@16628..)
ext/Encode/Byte/Makefile.PL ext/Encode/CN/Makefile.PL
ext/Encode/EBCDIC/Makefile.PL ext/Encode/Encode/Makefile_PL.e2x
ext/Encode/JP/Makefile.PL ext/Encode/KR/Makefile.PL
ext/Encode/Symbol/Makefile.PL ext/Encode/TW/Makefile.PL
(@16840..) ext/Encode/t/CJKT.t (@19325..) ext/Encode/t/guess.t
(@19811..) ext/Encode/Byte/Byte.pm ext/Encode/CN/CN.pm
ext/Encode/EBCDIC/EBCDIC.pm ext/Encode/KR/KR.pm
ext/Encode/Symbol/Symbol.pm ext/Encode/TW/TW.pm
ext/Encode/bin/ucm2table ext/Encode/bin/ucmlint
ext/Encode/lib/Encode/CJKConstants.pm
ext/Encode/lib/Encode/Encoder.pm ext/Encode/lib/Encode/Guess.pm
ext/Encode/lib/Encode/JP/H2Z.pm
ext/Encode/lib/Encode/JP/JIS7.pm
ext/Encode/lib/Encode/KR/2022_KR.pm ext/Encode/t/Unicode.t
ext/Encode/t/at-cn.t ext/Encode/t/at-tw.t
ext/Encode/t/enc_data.t ext/Encode/t/enc_eucjp.t
ext/Encode/t/enc_module.t ext/Encode/t/enc_utf8.t
ext/Encode/t/jperl.t ext/Encode/t/rt.pl (@22835..)
ext/Encode/JP/JP.pm ext/Encode/bin/piconv
ext/Encode/bin/ucmsort (@23380..) ext/Encode/Unicode/Unicode.pm
ext/Encode/lib/Encode/Encoding.pm (@23421..)
ext/Encode/t/Encode.t (@23624..)
ext/Unicode/Normalize/Makefile.PL (@24166..)
ext/Encode/t/Aliases.t ext/Encode/t/utf8strict.t (@24231..)
ext/Encode/lib/Encode/PerlIO.pod (@25266..) ext/Encode/MANIFEST
ext/Encode/lib/Encode/Alias.pm ext/Encode/lib/Encode/Config.pm
(@25271..) ext/Encode/lib/Encode/MIME/Header/ISO_2022_JP.pm
ext/Encode/t/mime_header_iso2022jp.t (@25273..)
ext/Encode/AUTHORS ext/Encode/t/fallback.t
ext/Encode/ucm/8859-7.ucm (@25609..) ext/Encode/encengine.c
(@25821..) ext/Encode/t/perlio.t (@26067..)
ext/Encode/bin/enc2xs ext/Encode/lib/Encode/CN/HZ.pm
ext/Encode/t/mime-header.t (@26863..)
ext/Encode/lib/Encode/Unicode/UTF7.pm (@27982..)
ext/Encode/Changes (@28098..)
p4raw-integrated: from //depot/perl@27982 'ignore'
ext/Encode/Unicode/Unicode.xs (@23624..) ext/Encode/Encode.xs
(@27824..)
p4raw-integrated: from //depot/perl@27721 'edit in' MANIFEST (@27663..)
p4raw-integrated: from //depot/perl@26863 'ignore'
ext/Encode/lib/Encode/MIME/Header.pm (@25271..)
ext/Encode/encoding.pm (@25609..)
p4raw-integrated: from //depot/perl@26295 'ignore'
ext/Encode/Makefile.PL (@23380..)
p4raw-integrated: from //depot/perl@26081 'ignore' ext/Encode/Encode.pm
(@25609..)
p4raw-integrated: from //depot/perl@25821 'ignore'
ext/Encode/Encode/encode.h (@25271..)

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 13:34:17 +0000 (13:34 +0000)]
Integrate:
[ 26352]
The logic to use SVt_NV or SVt_PVNV is in sv_upgrade, so no need to
dupliate it in sv_2nv. Also, the final sv_upgrade is never called.

[ 26353]
Simplify the SvGMAGIC code in sv_2nv, removing duplicated checks to
warn for uninitialized values.

[ 26354]
 Simplify the SvGMAGIC code in sv_[ipu]v_flags.

[ 26355]
Duplicate the AMAGIC temporary variable consting from sv_2iv_flags into
sv_2uv_flags, sv_2nv and sv_2pv_flags.

[ 26385]
The THINKFIRST check after the GMAGICAL check in sv_2iv_flags and
sv_2uv_flags should have been else if.

[ 26386]
The IV/UV choice can be made inside uiv_2buf rather than sv_2pv_flags.

[ 26390]
Pull the definition of olderrno in sv_2pv_flags into the block where
it's used.
p4raw-link: @26390 on //depot/perl: c81271c318db4fc452c901997c383f327c851326
p4raw-link: @26386 on //depot/perl: 4ea1d5509b412a58fa64cd5ebc1ea31750b05303
p4raw-link: @26385 on //depot/perl: 4cb1ec55c1e2db383f2cc2e1c02c9ba36503a201
p4raw-link: @26355 on //depot/perl: deb46114c3cc895c9e08a296579a1315c920625c
p4raw-link: @26354 on //depot/perl: 1c7ff15ea62f0cb57f76bc4b2a270c075f724f44
p4raw-link: @26353 on //depot/perl: 47a72cb8cdd89092524c4dfa4bb85802a951515f
p4raw-link: @26352 on //depot/perl: 7e25a7e974022d38c0b211f280644364acb3c3ee

p4raw-id: //depot/maint-5.8/perl@28164
p4raw-integrated: from //depot/perl@26386 'edit in' sv.c (@26385..)

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 13:08:38 +0000 (13:08 +0000)]
Integrate:
[ 26002]
You can't there from here. (Dead code in sv_2pv_flags)

[ 26003]
Use the return value of sprintf in sv_2pv_flags. Remove dead code.

[ 26267]
Untease the regexp stringification from the reference naming in
sv_2pv_flags. (Lots of re-indentation, little real change)

[ 26268]
As they are now the same, can fold the entire switch statement for
reference type in sv_2pv_flags into a call to sv_reftype.

[ 26269]
Clone the brief return logic and thereby remove a goto.

[ 26270]
Move the scope of origsv inwards, and rename variables to avoid the
need to re-assign to sv.

[ 26271]
Make all the return statements closer to the final calcuation of the
returned value in the reference stringification code. Pull variables
into tigher scope which also allows some to become const.

[ 26272]
sv_2pv_flags shouldn't return a constant string "NULLREF" - it was the
only constant non-"" string returned.

[ 26273]
Eliminate all the gotos in sv_2pv_flags, by moving the tokensave*
code into the GMAGIC block.

[ 26274]
Eliminate an unneeded local variable.

[ 26275]
Don't use Copy for 1 and 2 character string constants.

[ 26290]
Pull the regexp stringification code out into S_stringify_regexp, to
make sv_2pv_flags clearer.

[ 26345]
Inline asIV and asUV, as each is only used once, and it distracts from
the patterns of repeated code in sv_2iv_flags, sv_2uv_flags, sv_2nv
and sv_2pv_flags. Add a comment noting the return path from the end of
the SvGMAGICAL case to all 4.

[ 26346]
Update embed.fnc and headers after change 26345 (spotted by Rafael)
p4raw-link: @26346 on //depot/perl: d870712163dce2ef7e0a77999cef2ce40ff04bde
p4raw-link: @26345 on //depot/perl: 71c558c3bb71d4ea530abb3cc25180c1ccf2bedc
p4raw-link: @26290 on //depot/perl: 9af30d341ef97abc147c19943ded57444789091d
p4raw-link: @26275 on //depot/perl: cd0e59aa9623dc38e7eeafa9836a6ce08f163f0d
p4raw-link: @26274 on //depot/perl: e8ada2d0ac7fd0374d9ca5622b4ae32d9d359bea
p4raw-link: @26273 on //depot/perl: 75dfc8ec3081fc68ba9300a87ce568ff4b65f5b9
p4raw-link: @26272 on //depot/perl: 042dae7a710ff8f70aa445a52e7438f595bf26ce
p4raw-link: @26271 on //depot/perl: d8eae41ed6c62a8f34922d4cd7ac5baaf5ee54f0
p4raw-link: @26270 on //depot/perl: 69c71a440db2ed4aec5ba500863ee61ef46bd67a
p4raw-link: @26269 on //depot/perl: b4c255aa9b64e6ec7b507b55de2b6fd71a922447
p4raw-link: @26268 on //depot/perl: 8193e65bb36d71e3ea0cfdd7548f511b368fe2bd
p4raw-link: @26267 on //depot/perl: c080367dabc9773787a665f0cb0409433d932027
p4raw-link: @26003 on //depot/perl: 8a9c777e2c77e4986acca93933c193ed57804ec4
p4raw-link: @26002 on //depot/perl: 0a2d26d92481df1892a243c1a740dcd2effde1fa

p4raw-id: //depot/maint-5.8/perl@28163
p4raw-integrated: from //depot/perl@26346 'edit in' proto.h (@26296..)
'merge in' embed.h (@26281..) embed.fnc (@26296..)
p4raw-edited: from //depot/perl@26290 'edit in' sv.c (@26289..)

15 years agoIntegrate:
David Landgren [Fri, 5 May 2006 17:03:39 +0000 (19:03 +0200)]
Integrate:
[ 28131]
Subject: [PATCH] ext/IPC/SysV/t/ipcsysv.t using test.pl
Message-ID: <445B694B.8060901@landgren.net>
Date: Fri, 05 May 2006 17:03:39 +0200

Subject: Re: [PATCH] ext/IPC/SysV/t/sem.t using test.pl
From: David Landgren <david@landgren.net>
Message-ID: <445B75EF.3000100@landgren.net>
Date: Fri, 05 May 2006 17:57:35 +0200

[ 28138]
Subject: Re: [PATCH] ext/IPC/SysV/t/ipcsysv.t using test.pl
From: David Landgren <david@landgren.net>
Date: Tue, 09 May 2006 13:03:22 +0200
Message-ID: <446076FA.6010409@landgren.net>
p4raw-link: @28138 on //depot/perl: 2b06bec16437d2ccbb6a387eb4ac5cf4f6eb08fe
p4raw-link: @28131 on //depot/perl: 1ba50a1a00c6e314206a5bf3d222b0d76401bbb0

p4raw-id: //depot/maint-5.8/perl@28162
p4raw-integrated: from //depot/perl@28161 'copy in'
ext/IPC/SysV/t/ipcsysv.t (@20269..) ext/IPC/SysV/t/sem.t
(@28131..)

15 years agoIntegrate:
David Landgren [Mon, 1 May 2006 15:50:03 +0000 (17:50 +0200)]
Integrate:
[ 27220]
Assume that if runperl is called under tainting, that the caller really
really wanted to run perl, so brute force untaint everything.

[ 27345]
Move all the de-tainting logic for runperl into test.pl.

[ 27364]
Taint handling for runperl:
- better taint detection (switch -T in command)
- $ENV{PATH} stripping of writeable directories on unix/linux

[ 27550]
Also strip $ENV{PATH} dirs writable by world.
The stripping was introduced in change 27364 to improve taint handling.

[ 27551]
Avoid "uninitialized value" warnings during 'make test'.
My system is set up with a few PATH entries I'm not allowed
to access, so stat() fails for these.

[ 28037]
Subject: Re: [PATCH] provide diag() and don't use ++ in test.pl
Message-ID: <4456120B.3000302@landgren.net>

Plus some additional comment (also from David) about WHY not to
use ++ in test.pl

[ 28059]
Change 28037 broke t/op/each.t when running with TEST.
p4raw-link: @28059 on //depot/perl: 178eff928e12522422417310bee9331fccc184cf
p4raw-link: @28037 on //depot/perl: 485f531e502dcba5ee00641e3b64706a16e1b995
p4raw-link: @27551 on //depot/perl: 3fdeee05312bf904b2b698f85963a6d644083194
p4raw-link: @27550 on //depot/perl: 6f998dadd365dcf88776abd404d1a47b068400ff
p4raw-link: @27364 on //depot/perl: 8210c8d394ae8b3f99882bcf9feccbb0aac08035
p4raw-link: @27345 on //depot/perl: 613de57f1df271b4819b04c5522a963f3b1f0f50
p4raw-link: @27220 on //depot/perl: a70a16279b57a1b432b27e8b15d0377583bdb21f

p4raw-id: //depot/maint-5.8/perl@28161
p4raw-integrated: from //depot/perl@28037 'ignore' t/test.pl (@27551..)

15 years agoIntegrate:
Tassilo von Parseval [Tue, 25 Oct 2005 08:11:42 +0000 (10:11 +0200)]
Integrate:
[ 25615]
Micro-optimisation: use PL_globalstash instead of looking up
CORE::GLOBAL::require by name

[ 25848]
Code in wait4pid was calling hv_delete with the hash iterator
currently on that entry. On aggregate this does more work, beacuse
the next call to hv_iterinit() would spot the flag, and have to call
the delete routine, while in the meantime any new entries can't
re-use that memory.

[ 25854]
Subject: Re: [PATCH] minor speed-up for pp_push()
Message-id: <20051025061141.GA2256@ethan>
p4raw-link: @25854 on //depot/perl: 0a75904b806e52eae8a54feaebd1661bb58649d4
p4raw-link: @25848 on //depot/perl: 7b9a32411c4ec6251e6f3ab9bb69dd43222d7692
p4raw-link: @25615 on //depot/perl: d6a985f2bb09f0fd197b7c4af4b2d8913ce7f573

p4raw-id: //depot/maint-5.8/perl@28160
p4raw-integrated: from //depot/perl@25854 'merge in' pp.c (@25757..)
p4raw-integrated: from //depot/perl@25848 'merge in' util.c (@25841..)
p4raw-integrated: from //depot/perl@25615 'merge in' op.c (@25599..)

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 11:55:15 +0000 (11:55 +0000)]
Integrate:
[ 24958]
Indent some of the #ifdef/#define/#endif to make the nesting clearer.
Simplify SvPV_free slightly.

[just the second part]
p4raw-link: @24958 on //depot/perl: 771ba71a7bf3673decf297992c8591f2ff873802

p4raw-id: //depot/maint-5.8/perl@28159
p4raw-integrated: from //depot/perl@24958 'edit in' sv.h (@24857..)

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 10:36:47 +0000 (10:36 +0000)]
Integrate:
[ 25832]
Add my_sprintf, which is usually just a macro for sprintf, for those
places where we want to use the return value of sprintf. This allows
a wrapper to be used for platforms where the C library isn't ANSI-
conformant.

[ 25841]
Replace all the strlen()s related to PL_pidstatus with the return
value of my_sprintf

[ 25862]
Use the return value from sprintf and avoid a call to strlen

[ 26001]
Use the return value from sprintf().

[ 26006]
s/printf/my_printf/ because we're using the return value.
My mistake spotted by Gisle.
p4raw-link: @26006 on //depot/perl: e5105eda9ec104fa4cd12906af09da2e3a0c3386
p4raw-link: @26001 on //depot/perl: 86c11942206ec09dd2a486bb22552aa2f170e322
p4raw-link: @25862 on //depot/perl: 4150c1890ffe73fc298ab9944c3d80e0d6511038
p4raw-link: @25841 on //depot/perl: 7ea75b6170327bc14c03f69e90eb8c7d3cb91382
p4raw-link: @25832 on //depot/perl: ce582ceece605be1a68752611f28e5b1a8e80455

p4raw-id: //depot/maint-5.8/perl@28158
p4raw-integrated: from //depot/perl@26006 'edit in' regcomp.c
(@26001..)
p4raw-integrated: from //depot/perl@26001 'copy in' taint.c (@24965..)
'ignore' universal.c (@25915..)
p4raw-integrated: from //depot/perl@25862 'merge in' sv.c (@25850..)
p4raw-integrated: from //depot/perl@25841 'edit in' util.c (@25832..)
p4raw-integrated: from //depot/perl@25832 'merge in' makedef.pl
(@25749..) embed.h global.sym (@25808..) perl.h (@25810..)
embed.fnc proto.h (@25822..)

15 years agoIntegrate:
Nicholas Clark [Thu, 11 May 2006 10:03:53 +0000 (10:03 +0000)]
Integrate:
[ 23763]
Add TODO tests for UTF8 encoded soft references

[ 23766]
Stage 1 of utf8 support for soft references.
Change gv_fetchpv to take a UTF8 flag, as gv_fetchpvn_flags
Add gv_fetchsv to look up a GV by SV rather than a char * pointer
Provide a backwards compatability gv_fetchpv
Migrate from gv_fetchpv to gv_fetchsv where the caller was grabbing
the pointer from an SV
All tests still pass.

[ 23770]
Pull the am-I-utf8-or-not logic into one place (S_newSV_maybe_utf8)
as I think that it will be needed for utf8 soft references.

[ 26415]
gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, rather
than a simple boolean, so passing FALSE or TRUE is bogus.

[ 26434]
The lref argument of sv_2cv is actually passed onwards to gv_fetchsv,
so it is a bitmap of flag bits rather than simple TRUE/FALSE.

[ 27028]
Make Perl_gv_fetchpvn_flags actually heed the passed in length.
This means that \0 bytes in symbolic references now work.

[ 27044]
Oops. 1 NUL termination assumption remains in Perl_gv_fetchpvn_flags

[ 27046]
doubleplusoops. Apart from the documented NUL termination assumption.
Now removed.

[ 27049]
And another assumption.
p4raw-link: @27049 on //depot/perl: b208e10c815b328b5c2ddc25197ff4990f6302e0
p4raw-link: @27046 on //depot/perl: 8ccce9aeff05ce7be92baddaafcf71c608c453d4
p4raw-link: @27044 on //depot/perl: ad6bfa9d0ae142db0b494810d12ba03c60e2ebbe
p4raw-link: @27028 on //depot/perl: b3d904f31378536c078f52a858f0bfe70f0bade7
p4raw-link: @26434 on //depot/perl: f2c0649b2032ef5d607fe4e0874cdfa49e41eaf2
p4raw-link: @26415 on //depot/perl: f776e3cd68509957cc5ab2967a78fb0ad213d8aa
p4raw-link: @23770 on //depot/perl: d0a148a65266eeca56c2cf89da692556239ed991
p4raw-link: @23766 on //depot/perl: 7a5fd60d4ce737f71e7a689eaa2061a36dd225dc
p4raw-link: @23763 on //depot/perl: 512d1826fd68dfaa1c1d14e56029c984b9ee7eca

p4raw-id: //depot/maint-5.8/perl@28157
p4raw-integrated: from //depot/perl@27028 'edit in' doio.c (@26989..)
perl.c (@27000..) toke.c (@27006..)
p4raw-integrated: from //depot/perl@26434 'edit in' pp_hot.c (@26415..)
sv.c (@26432..)
p4raw-integrated: from //depot/perl@26415 'edit in' regcomp.c
(@26281..) universal.c (@26381..)
p4raw-integrated: from //depot/perl@23824 'edit in' gv.c (@23766..)
p4raw-edited: from //depot/perl@23766 'edit in' pp_sys.c (@23705..)
p4raw-integrated: from //depot/perl@23766 'edit in' global.sym
(@23499..) embed.h proto.h (@23674..) pp.c (@23725..) mg.c op.c
(@23746..) 'merge in' sv.h (@23373..) gv.h (@23614..) perl.h
(@23633..) embed.fnc (@23674..)
p4raw-integrated: from //depot/perl@23763 'edit in' t/op/ref.t
(@23760..)

15 years agoIntegrate:
Nicholas Clark [Wed, 10 May 2006 18:31:34 +0000 (18:31 +0000)]
Integrate:
[ 25746]
The new REQUIRE token introduced by change 25599 must be
nonassoc, just like the UNIOP token it's patterned after.
(While we're at it, allow to use bison 2.1 to regenerate
the parser files.)

plus fix change 28153 - rename the two parameter Perl_dofile() to
Perl_dofile2(), and make Perl_dofile() a wrapper to it just in case
anything is linking to it.
p4raw-link: @25746 on //depot/perl: 2051588124b1d9accc9aeb526746bb222cea5170

p4raw-id: //depot/maint-5.8/perl@28154
p4raw-edited: from //depot/perl@25746 'edit in' perly.y (@25616..)
p4raw-integrated: from //depot/perl@25746 'ignore' perly.h (@25599..)

15 years agoIntegrate:
Nicholas Clark [Wed, 10 May 2006 17:44:54 +0000 (17:44 +0000)]
Integrate:
[ 25599]
CORE::require was always parsed as require().
That's because require() isn't overridable at tokenizer-level
like other overridable built-ins, but is handled by the optree
builder. So, find a way to pass the information that require()
was written as CORE::require() to Perl_ck_require. This is
done by adding a new token type REQUIRE and by adding OPf_SPECIAL
to OP_REQUIRE when it's saw as CORE::require in the program text.
This fixes bug [perl #37274] The "CORE" in CORE::require is ignored.

[ 25600]
Document the new meaning of OPf_SPECIAL on OP_REQUIRE

[ 25611]
Test for OPpCONST_NOVER only on OP_CONST ops.
Plus a regression test by Schwern.

[ 25616]
Fix the overriding of CORE::do, just like change 25599
was fixing the overriding of CORE::require
p4raw-link: @25616 on //depot/perl: 850e851687c46990a59eb0bed2e5e3dc49703472
p4raw-link: @25611 on //depot/perl: 149c1637f9ccfb0115aa2ef613b82cf441e6dd11
p4raw-link: @25600 on //depot/perl: 6b514a0d693c3972afe865013c60b5994c1c323c
p4raw-link: @25599 on //depot/perl: a72a1c8b669f627c80c2fa5d710eb7980a143476

p4raw-id: //depot/maint-5.8/perl@28153
p4raw-integrated: from //depot/perl@28151 'copy in' t/op/override.t
(@17964..)
p4raw-integrated: from //depot/perl@25616 'edit in' op.c (@25615..)
'ignore' proto.h (@25605..) 'merge in' embed.h (@25476..)
embed.fnc (@25605..)
p4raw-integrated: from //depot/perl@25611 'edit in' pp_ctl.c (@25511..)
p4raw-integrated: from //depot/perl@25600 'merge in' op.h (@25344..)
p4raw-integrated: from //depot/perl@25599 'edit in' toke.c (@25411..)
perly.y (@25530..) 'ignore' perly.h (@25399..)

15 years agoIntegrate:
Nicholas Clark [Wed, 10 May 2006 14:36:06 +0000 (14:36 +0000)]
Integrate:
[ 25344]
Add the "no 6" / "no v6" syntax.

[ 25346]
Oops, fix threaded build

[ 28149]
Convert use.t to an inlined is/isnt/like implementation, to give better
diagnostics.

[ 28150]
no 5.9.4; should fail in version 5.9.4.
Improve the diagnostics and test names in t/comp/use.t
p4raw-link: @28150 on //depot/perl: 3cacfbb9b2d87693f7e1ca19103800cc2118ccb4
p4raw-link: @28149 on //depot/perl: 6a4a49dd808ad2c69f6e654d449e72d713a54229
p4raw-link: @25346 on //depot/perl: cc6ed77d04bf16cb06af8602b4d69f01bf68bd79
p4raw-link: @25344 on //depot/perl: 468aa647417bbcdb0729a787fa25968401364880

p4raw-id: //depot/maint-5.8/perl@28151
p4raw-edited: from //depot/perl@28149 'edit in' t/comp/use.t (@25344..)
p4raw-integrated: from //depot/perl@25344 'edit in' pp_ctl.c toke.c
(@25343..) 'merge in' embed.fnc embed.h op.c op.h proto.h
(@25343..)