This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
16 years agoUse the new SV_NOSTEAL flag to avoid the SvTEMP dance in newSVsv
Nicholas Clark [Thu, 13 Jan 2005 23:13:05 +0000 (23:13 +0000)]
Use the new SV_NOSTEAL flag to avoid the SvTEMP dance in newSVsv

p4raw-id: //depot/perl@23797

16 years agosv_2mortal(NEWSV(0,0)) better written as sv_newmortal()
Nicholas Clark [Thu, 13 Jan 2005 23:10:38 +0000 (23:10 +0000)]
sv_2mortal(NEWSV(0,0)) better written as sv_newmortal()

p4raw-id: //depot/perl@23796

16 years agoreplace NEWSV(), SvSetSV() with newSVsv()
Nicholas Clark [Thu, 13 Jan 2005 22:54:10 +0000 (22:54 +0000)]
replace NEWSV(), SvSetSV() with newSVsv()

p4raw-id: //depot/perl@23795

16 years agoTurn the unreachable code into assertions. (So prove me wrong...)
Nicholas Clark [Thu, 13 Jan 2005 22:39:58 +0000 (22:39 +0000)]
Turn the unreachable code into assertions. (So prove me wrong...)

p4raw-id: //depot/perl@23794

16 years agoSource code tidy up - avoid assigning to sv.
Nicholas Clark [Thu, 13 Jan 2005 22:07:20 +0000 (22:07 +0000)]
Source code tidy up - avoid assigning to sv.

p4raw-id: //depot/perl@23793

16 years agoAvoid dogfood problems when an empty string accidentally ends up
Nicholas Clark [Thu, 13 Jan 2005 21:54:21 +0000 (21:54 +0000)]
Avoid dogfood problems when an empty string accidentally ends up
as a constant name. [They don't work in qw(), strangely]

p4raw-id: //depot/perl@23792

16 years agoThe leaktesting of NEWSV() is long dead, so create and initialise
Nicholas Clark [Thu, 13 Jan 2005 21:44:53 +0000 (21:44 +0000)]
The leaktesting of NEWSV() is long dead, so create and initialise
SV values in one, to simplify source code and shrink object code
by about 1%

p4raw-id: //depot/perl@23791

16 years agoNot a good idea to use unpack "H*" to peek at a scalar's internal
Nicholas Clark [Thu, 13 Jan 2005 20:55:37 +0000 (20:55 +0000)]
Not a good idea to use unpack "H*" to peek at a scalar's internal
representation.

p4raw-id: //depot/perl@23790

16 years agoUpdate copyright years. Add an editor block while passing by.
Nicholas Clark [Thu, 13 Jan 2005 14:05:08 +0000 (14:05 +0000)]
Update copyright years. Add an editor block while passing by.

p4raw-id: //depot/perl@23789

16 years agoutf.pm needs to require Carp before croak()ing
Nicholas Clark [Thu, 13 Jan 2005 13:50:40 +0000 (13:50 +0000)]
utf.pm needs to require Carp before croak()ing

p4raw-id: //depot/perl@23788

16 years agoRefactor all the unpack checksum-or-not logic to avoid massive
Nicholas Clark [Thu, 13 Jan 2005 13:21:11 +0000 (13:21 +0000)]
Refactor all the unpack checksum-or-not logic to avoid massive
duplication.

p4raw-id: //depot/perl@23787

16 years agoRe: killing USE_5005THREADS in blead?
Stas Bekman [Wed, 12 Jan 2005 16:32:42 +0000 (11:32 -0500)]
Re: killing USE_5005THREADS in blead?
Message-ID: <41E5977A.3060306@stason.org>

p4raw-id: //depot/perl@23786

16 years agoFix Win32 build problem caused by change 23757
Steve Hay [Thu, 13 Jan 2005 10:24:13 +0000 (10:24 +0000)]
Fix Win32 build problem caused by change 23757

Change 23757 added a glob() call to win32/FindExt.pm.  That code is
run by miniperl.exe when making the ..\config.sh target, but
miniperl.exe is built with -D PERL_EXTERNAL_GLOB so it requires
perlglob.exe to do the glob().  perlglob.exe has been built, but is
in the top-level of the source tree so is not found when miniperl.exe
is executed from within the win32/ sub-directory.

This was causing smokes to fail on t/lib/commonsense.t because the
"extensions" field in lib/Config_heavy.pl only contained
"threads/shared" as a result of the glob() not finding anything.

Manual builds had been working fine for me because I had an installed
perl in my PATH so perlglob.exe was being found there instead!

p4raw-id: //depot/perl@23785

16 years agofollow-up to #23765
Craig A. Berry [Tue, 11 Jan 2005 21:01:27 +0000 (15:01 -0600)]
follow-up to #23765
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41E49307.7080900@mac.com>

p4raw-id: //depot/perl@23783

16 years agoFix bug 32294 - index()/rindex() ignore UTF8 flag
Nicholas Clark [Tue, 11 Jan 2005 19:10:20 +0000 (19:10 +0000)]
Fix bug 32294 - index()/rindex() ignore UTF8 flag
(for cases of mixed UTF8/bytes)
Test code based on bug report by John Gardiner Myers

p4raw-id: //depot/perl@23782

16 years agofollow-up to 23767
Robin Barker [Tue, 11 Jan 2005 15:48:49 +0000 (15:48 +0000)]
follow-up to 23767
Message-ID: <533D273D4014D411AB1D00062938C4D90849C56A@hotel.npl.co.uk>

p4raw-id: //depot/perl@23781

16 years agoRemove PERL_FLEXIBLE_EXCEPTIONS code.
Marcus Holland-Moritz [Mon, 10 Jan 2005 19:25:27 +0000 (19:25 +0000)]
Remove PERL_FLEXIBLE_EXCEPTIONS code.

p4raw-id: //depot/perl@23780

16 years agot/op/split.t #11 nit on VMS
Craig A. Berry [Sun, 9 Jan 2005 17:46:41 +0000 (11:46 -0600)]
t/op/split.t #11 nit on VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41E1C261.5020100@mac.com>
Date: Sun, 09 Jan 2005 17:46:41 -0600

p4raw-id: //depot/perl@23779

16 years agoNeed to close files before unlinking them on Win32
Steve Hay [Mon, 10 Jan 2005 11:53:10 +0000 (11:53 +0000)]
Need to close files before unlinking them on Win32

(Various files created by test programs are left behind otherwise,
and distclean doesn't clean them up)

p4raw-id: //depot/perl@23778

16 years agoMake Win32's distclean target clean up properly
Steve Hay [Mon, 10 Jan 2005 10:28:00 +0000 (10:28 +0000)]
Make Win32's distclean target clean up properly

p4raw-id: //depot/perl@23777

16 years agoGet $Config{osvers} filled in on Win32
Steve Hay [Mon, 10 Jan 2005 09:45:50 +0000 (09:45 +0000)]
Get $Config{osvers} filled in on Win32

p4raw-id: //depot/perl@23776

16 years agofollow-up to #23748, -Duselargefiles on VMS
Craig A. Berry [Sun, 9 Jan 2005 17:52:09 +0000 (11:52 -0600)]
follow-up to #23748, -Duselargefiles on VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41E1C3A9.9080900@mac.com>

p4raw-id: //depot/perl@23775

16 years agoShorter source code in pp_gelem. (But it compiles to the same size)
Nicholas Clark [Sun, 9 Jan 2005 23:42:25 +0000 (23:42 +0000)]
Shorter source code in pp_gelem. (But it compiles to the same size)

p4raw-id: //depot/perl@23774

16 years agoIf we know the length of the string constant, save a strlen()
Nicholas Clark [Sun, 9 Jan 2005 21:50:28 +0000 (21:50 +0000)]
If we know the length of the string constant, save a strlen()

p4raw-id: //depot/perl@23773

16 years agosavepv(SvPV(sv,n_a)) is common, and creates an unnecessary call to
Nicholas Clark [Sun, 9 Jan 2005 21:26:40 +0000 (21:26 +0000)]
savepv(SvPV(sv,n_a)) is common, and creates an unnecessary call to
strlen(). Add savesvpv(sv), which gets the length from the SV,
and returns a copy of its PV.

p4raw-id: //depot/perl@23772

16 years agoCan pass in a length here without introducing a bug. Might save
Nicholas Clark [Sun, 9 Jan 2005 19:42:30 +0000 (19:42 +0000)]
Can pass in a length here without introducing a bug. Might save
a strlen()

p4raw-id: //depot/perl@23771

16 years agoPull the am-I-utf8-or-not logic into one place (S_newSV_maybe_utf8)
Nicholas Clark [Sun, 9 Jan 2005 15:05:33 +0000 (15:05 +0000)]
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.

p4raw-id: //depot/perl@23770

16 years agoDisable PERL_MALLOC and DEBUG_MSTATS in win32/makefile.mk by default
Steve Hay [Fri, 7 Jan 2005 17:25:35 +0000 (17:25 +0000)]
Disable PERL_MALLOC and DEBUG_MSTATS in win32/makefile.mk by default
and force PERL_MALLOC off if USE_IMP_SYS is on

This brings makefile.mk into line with Makefile in this regard

(PERL_MALLOC cannot currently be used with USE_IMP_SYS, e.g. see:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2004-07/msg00465.html
so it is sensible to enforce this, and to not have the default set
to a configuration that isn't allowed)

p4raw-id: //depot/perl@23769

16 years agoRe: [PATCH] Remove Carp from warnings.pm
Jim Cromie [Mon, 3 Jan 2005 06:36:16 +0000 (23:36 -0700)]
Re: [PATCH] Remove Carp from warnings.pm
Message-ID: <cfe85dfa05010305367445dee6@mail.gmail.com>

p4raw-id: //depot/perl@23768

16 years agoto improve -DCHECK_FORMAT
Robin Barker [Wed, 5 Jan 2005 11:55:09 +0000 (11:55 +0000)]
to improve -DCHECK_FORMAT
Message-ID: <533D273D4014D411AB1D00062938C4D90849C55A@hotel.npl.co.uk>

p4raw-id: //depot/perl@23767

16 years agoStage 1 of utf8 support for soft references.
Nicholas Clark [Fri, 7 Jan 2005 12:46:07 +0000 (12:46 +0000)]
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.

p4raw-id: //depot/perl@23766

16 years agomake lib/warnings.t use t/test.pl
Craig A. Berry [Thu, 6 Jan 2005 17:32:01 +0000 (11:32 -0600)]
make lib/warnings.t use t/test.pl
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41DDCA71.1080704@mac.com>
Date: Thu, 06 Jan 2005 17:32:01 -0600

p4raw-id: //depot/perl@23765

16 years agoFix win32/config.*'s cc, ld and other related values
Yitzchak Scott-Thoennes [Wed, 5 Jan 2005 10:01:41 +0000 (02:01 -0800)]
Fix win32/config.*'s cc, ld and other related values

cc and ld themselves always get replaced with correct values anyway
       so we just provide example values as per other similar settings

       Other related values (ccname, cpp, cpprun, cppstdin) need to use the
       correct ~keyword~, namely ~cc~, not ~CC~, otherwise they do not get set

Subject: [PATCH] Re: lib/Config/Extensions.t fails on Win32
Date: Wed, 5 Jan 2005 10:01:41 -0800
Message-ID: <20050105180141.GA676@efn.org>

Subject: Re: [PATCH] Re: lib/Config/Extensions.t fails on Win32
From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
Date: Thu, 6 Jan 2005 11:53:11 -0800
Message-ID: <20050106195311.GC1300@efn.org>

p4raw-id: //depot/perl@23764

16 years agoAdd TODO tests for UTF8 encoded soft references
Nicholas Clark [Thu, 6 Jan 2005 17:42:59 +0000 (17:42 +0000)]
Add TODO tests for UTF8 encoded soft references

p4raw-id: //depot/perl@23763

16 years agoAllow static linking core extensions on Win32 with MinGW
Yitzchak Scott-Thoennes [Wed, 5 Jan 2005 10:01:41 +0000 (02:01 -0800)]
Allow static linking core extensions on Win32 with MinGW

Subject: [PATCH] Re: lib/Config/Extensions.t fails on Win32
Message-ID: <20050105180141.GA676@efn.org>

p4raw-id: //depot/perl@23762

16 years agoSilence a compilation warning
Rafael Garcia-Suarez [Thu, 6 Jan 2005 15:49:39 +0000 (15:49 +0000)]
Silence a compilation warning

p4raw-id: //depot/perl@23761

16 years agoTurn barewords into strings to run under strict subs.
Nicholas Clark [Thu, 6 Jan 2005 14:59:17 +0000 (14:59 +0000)]
Turn barewords into strings to run under strict subs.
Run under strict refs outside the soft reference tests.

p4raw-id: //depot/perl@23760

16 years agoAll tests now use test.pl
Nicholas Clark [Thu, 6 Jan 2005 14:34:24 +0000 (14:34 +0000)]
All tests now use test.pl

p4raw-id: //depot/perl@23759

16 years agoStart converting t/op/ref.t to use test.pl
Nicholas Clark [Thu, 6 Jan 2005 11:44:08 +0000 (11:44 +0000)]
Start converting t/op/ref.t to use test.pl

p4raw-id: //depot/perl@23758

16 years agoFix extensions config fields on Win32 to be as they are on Unix
Yitzchak Scott-Thoennes [Wed, 5 Jan 2005 10:01:41 +0000 (02:01 -0800)]
Fix extensions config fields on Win32 to be as they are on Unix

Subject: [PATCH] Re: lib/Config/Extensions.t fails on Win32
Message-ID: <20050105180141.GA676@efn.org>

p4raw-id: //depot/perl@23757

16 years agoCorrect a Greengrocer's apostrophe.
Nicholas Clark [Wed, 5 Jan 2005 21:58:15 +0000 (21:58 +0000)]
Correct a Greengrocer's apostrophe.

p4raw-id: //depot/perl@23756

16 years agoFoolishly I committed change 23753 before remembering to test without
Nicholas Clark [Wed, 5 Jan 2005 21:36:26 +0000 (21:36 +0000)]
Foolishly I committed change 23753 before remembering to test without
ithreads. No tests => bugs. This should fix them.

p4raw-id: //depot/perl@23755

16 years agoError-free constant folding is a TODO
Nicholas Clark [Wed, 5 Jan 2005 20:14:02 +0000 (20:14 +0000)]
Error-free constant folding is a TODO

p4raw-id: //depot/perl@23754

16 years agoTurn INIT_TLS_AND_INTERP into a static function
Nicholas Clark [Wed, 5 Jan 2005 19:44:28 +0000 (19:44 +0000)]
Turn INIT_TLS_AND_INTERP into a static function

p4raw-id: //depot/perl@23753

16 years agoShave off the explict 1; from the end of lib/Config.pm
Nicholas Clark [Wed, 5 Jan 2005 16:27:19 +0000 (16:27 +0000)]
Shave off the explict 1; from the end of lib/Config.pm

p4raw-id: //depot/perl@23752

16 years agounnecessary rmdir in Makefile
Robin Barker [Wed, 5 Jan 2005 11:58:54 +0000 (11:58 +0000)]
unnecessary rmdir in Makefile
Message-ID: <533D273D4014D411AB1D00062938C4D90849C55C@hotel.npl.co.uk>

p4raw-id: //depot/perl@23751

16 years agogcc and ld in Configure
Robin Barker [Wed, 5 Jan 2005 12:04:25 +0000 (12:04 +0000)]
gcc and ld in Configure
Message-ID: <533D273D4014D411AB1D00062938C4D90849C55D@hotel.npl.co.uk>

p4raw-id: //depot/perl@23750

16 years agoAvoid segfault when pthread_key_create fails
Gisle Aas [Wed, 5 Jan 2005 01:09:51 +0000 (17:09 -0800)]
Avoid segfault when pthread_key_create fails
Message-ID: <lracroz1gg.fsf@caliper.activestate.com>

p4raw-id: //depot/perl@23749

16 years ago-Duselargefiles for VMS
Craig A. Berry [Tue, 4 Jan 2005 21:48:54 +0000 (15:48 -0600)]
-Duselargefiles for VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41DB63A6.7040504@mac.com>
Date: Tue, 04 Jan 2005 21:48:54 -0600

p4raw-id: //depot/perl@23748

16 years agoRafael spotted that my changes caused warnings. So clean up.
Nicholas Clark [Wed, 5 Jan 2005 10:10:14 +0000 (10:10 +0000)]
Rafael spotted that my changes caused warnings. So clean up.

p4raw-id: //depot/perl@23747

16 years agoUpdate copyright years.
Nicholas Clark [Tue, 4 Jan 2005 23:07:25 +0000 (23:07 +0000)]
Update copyright years.

p4raw-id: //depot/perl@23746

16 years agoMake the switch statement discriminate similar names more
Nicholas Clark [Tue, 4 Jan 2005 19:32:01 +0000 (19:32 +0000)]
Make the switch statement discriminate similar names more
efficiently.

p4raw-id: //depot/perl@23745

16 years agoCheck all attributes in modify_SV_attributes are recognised.
Nicholas Clark [Tue, 4 Jan 2005 16:20:43 +0000 (16:20 +0000)]
Check all attributes in modify_SV_attributes are recognised.
Fix bug where 'assertion' was always rejected as invalid.

p4raw-id: //depot/perl@23744

16 years agoUse the new ${^UTF8LOCALE} to make the test reliable.
Nicholas Clark [Tue, 4 Jan 2005 12:46:56 +0000 (12:46 +0000)]
Use the new ${^UTF8LOCALE} to make the test reliable.

p4raw-id: //depot/perl@23743

16 years agoRE: [perl #32660] INT2PTR not mentioned in perlxs(1)
Robin Barker [Tue, 4 Jan 2005 12:32:29 +0000 (12:32 +0000)]
RE: [perl #32660] INT2PTR not mentioned in perlxs(1)
Message-ID: <533D273D4014D411AB1D00062938C4D90849C553@hotel.npl.co.uk>

p4raw-id: //depot/perl@23742

16 years agoAdd ${^UTF8LOCALE} to give perl space access to PL_utf8locale
Nicholas Clark [Tue, 4 Jan 2005 11:27:57 +0000 (11:27 +0000)]
Add ${^UTF8LOCALE} to give perl space access to PL_utf8locale

p4raw-id: //depot/perl@23741

16 years agoBring win32/config.* into line with win32/config_H.*
Steve Hay [Tue, 4 Jan 2005 10:56:55 +0000 (10:56 +0000)]
Bring win32/config.* into line with win32/config_H.*
so that "perl -V:usemallocwrap" tells us what the configuration is
instead of saying 'UNKNOWN'.

p4raw-id: //depot/perl@23740

16 years agoMath::BigInt v1.74, Math::BigRat v0.14, bignum v0.16
Tels [Sat, 1 Jan 2005 18:59:51 +0000 (19:59 +0100)]
Math::BigInt v1.74, Math::BigRat v0.14, bignum v0.16
Message-Id: <200501011859.52858@bloodgate.com>

p4raw-id: //depot/perl@23739

16 years agoHappy new year
Rafael Garcia-Suarez [Tue, 4 Jan 2005 08:05:16 +0000 (08:05 +0000)]
Happy new year

p4raw-id: //depot/perl@23738

16 years agoReturn an immortal from attributes::_warn_reserved (a private
Nicholas Clark [Mon, 3 Jan 2005 21:17:28 +0000 (21:17 +0000)]
Return an immortal from attributes::_warn_reserved (a private
function). (saves creating a new IV)

p4raw-id: //depot/perl@23736

16 years agoChange dXSTARGET to dXSTARG as recommended by Spider Boardman.
Nicholas Clark [Mon, 3 Jan 2005 20:58:09 +0000 (20:58 +0000)]
Change dXSTARGET to dXSTARG as recommended by Spider Boardman.

p4raw-id: //depot/perl@23735

16 years agoD'oh! Spurious aTHX_. Here was I thinking that my test build was
Nicholas Clark [Mon, 3 Jan 2005 18:54:22 +0000 (18:54 +0000)]
D'oh! Spurious aTHX_. Here was I thinking that my test build was
threaded, but "oh no it isn't!" :-(

p4raw-id: //depot/perl@23733

16 years agoIntegrate a patch from Gentoo for uclibc support.
Alexey Tourbin [Tue, 28 Dec 2004 14:25:42 +0000 (17:25 +0300)]
Integrate a patch from Gentoo for uclibc support.
See :
Subject: Re: Static linking notes --- perl5.8.6 and uClibc
Message-ID: <20041228112542.GB21037@solemn.turbinal.org>

p4raw-id: //depot/perl@23732

16 years agoRemove compiler warnings.
Nicholas Clark [Sun, 2 Jan 2005 23:18:07 +0000 (23:18 +0000)]
Remove compiler warnings.

p4raw-id: //depot/perl@23731

16 years agoChange 23727 broke code that relied on \ being escaped.
Nicholas Clark [Sun, 2 Jan 2005 22:49:49 +0000 (22:49 +0000)]
Change 23727 broke code that relied on \ being escaped.
Fix this. *Everything* should work now.

p4raw-id: //depot/perl@23730

16 years agoSplitting the -n/-p code and concatenating strings generates
Nicholas Clark [Sun, 2 Jan 2005 07:46:12 +0000 (07:46 +0000)]
Splitting the -n/-p code and concatenating strings generates
smaller object code.

p4raw-id: //depot/perl@23729

16 years agoConcatenate some string constants
Nicholas Clark [Sat, 1 Jan 2005 21:34:52 +0000 (21:34 +0000)]
Concatenate some string constants

p4raw-id: //depot/perl@23728

16 years agoUse Rafael's sick trick of ASCII NUL as a q'' delimiter to save a
Nicholas Clark [Sat, 1 Jan 2005 21:13:53 +0000 (21:13 +0000)]
Use Rafael's sick trick of ASCII NUL as a q'' delimiter to save a
lot of quoting code

p4raw-id: //depot/perl@23727

16 years agoProbably should be using *pvn rather than *pv forms for speed in
Nicholas Clark [Sat, 1 Jan 2005 20:48:31 +0000 (20:48 +0000)]
Probably should be using *pvn rather than *pv forms for speed in
toke.c (to save a strlen())

p4raw-id: //depot/perl@23726

16 years agostrEQ/strNE of 1 character strings seems better hand inlined,
Nicholas Clark [Sat, 1 Jan 2005 20:26:27 +0000 (20:26 +0000)]
strEQ/strNE of 1 character strings seems better hand inlined,
because it generates smaller object code (as well as being
faster than a true function call)

p4raw-id: //depot/perl@23725

16 years agoNot all the world's a VAX, er ASCII, so don't make assumptions.
Nicholas Clark [Sat, 1 Jan 2005 17:15:58 +0000 (17:15 +0000)]
Not all the world's a VAX, er ASCII, so don't make assumptions.
Tweak is_gv_magical's string comparisons to produce smaller object
code.
First 2005 copyright notice.

p4raw-id: //depot/perl@23724

16 years agoChange 23714 accidentally broke t/io/layers.t when testing with
Nicholas Clark [Sat, 1 Jan 2005 13:54:33 +0000 (13:54 +0000)]
Change 23714 accidentally broke t/io/layers.t when testing with
UTF8 locales and the -C flag. When UTF8 is flagged as enabled
based on the locale, we have no perl space access to PL_utf8locale
so assume for the moment that UTF8 is never conditionally enabled.

p4raw-id: //depot/perl@23723

16 years agoSkip the switch statement entirely if the pointer is null, rather
Nicholas Clark [Fri, 31 Dec 2004 23:04:47 +0000 (23:04 +0000)]
Skip the switch statement entirely if the pointer is null, rather
than the old pointless switch on '\0'. Also skip re-comparing the
first character. Faster, and generates terser object code.

p4raw-id: //depot/perl@23722

16 years agoDoing the strnEQ char by char for 2 and 3 character strings
Nicholas Clark [Fri, 31 Dec 2004 22:46:25 +0000 (22:46 +0000)]
Doing the strnEQ char by char for 2 and 3 character strings
generates a smaller object file, and will be faster.

p4raw-id: //depot/perl@23721

16 years agoImprove documentation for is_gv_magical, and split the switch
Nicholas Clark [Fri, 31 Dec 2004 21:41:25 +0000 (21:41 +0000)]
Improve documentation for is_gv_magical, and split the switch
statement into 2 parts, lengths > 1 and lengths <= 1
This should cause most variables (lower case, multicharacter)
to escape the function without passing through a switch table.

p4raw-id: //depot/perl@23720

16 years agoBecause name is always NUL terminated we can incorporate length
Nicholas Clark [Fri, 31 Dec 2004 21:02:59 +0000 (21:02 +0000)]
Because name is always NUL terminated we can incorporate length
0 names in the switch statement for length 1.

p4raw-id: //depot/perl@23719

16 years agoGenerate smaller object code by using a single switch statement
Nicholas Clark [Fri, 31 Dec 2004 20:25:52 +0000 (20:25 +0000)]
Generate smaller object code by using a single switch statement
for determining which names are forced into main::

p4raw-id: //depot/perl@23718

16 years agoTidy up comments in change 23716
Nicholas Clark [Fri, 31 Dec 2004 18:31:18 +0000 (18:31 +0000)]
Tidy up comments in change 23716

p4raw-id: //depot/perl@23717

16 years agoRefactor gv_fetchpv so that the overwhelmingly common case
Nicholas Clark [Fri, 31 Dec 2004 18:22:54 +0000 (18:22 +0000)]
Refactor gv_fetchpv so that the overwhelmingly common case
(variable names starting with a lower case letter or _, longer
than one character) get out of the function very quickly.
(Without even passing through a switch statement jump table)
Also fixes bug 33631

p4raw-id: //depot/perl@23716

16 years agorandbits and randfunc for VMS
Craig A. Berry [Fri, 31 Dec 2004 09:31:11 +0000 (03:31 -0600)]
randbits and randfunc for VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <41D570BF.8010409@mac.com>
Date: Fri, 31 Dec 2004 09:31:11 -0600

p4raw-id: //depot/perl@23715

16 years agoBug in t/io/layers.t spotted by Ignasi Roca CarriĆ³
Nicholas Clark [Fri, 31 Dec 2004 13:14:18 +0000 (13:14 +0000)]
Bug in t/io/layers.t spotted by Ignasi Roca CarriĆ³

p4raw-id: //depot/perl@23714

16 years agoMention ppport.h and its --api-info switch in perlguts.
Marcus Holland-Moritz [Thu, 30 Dec 2004 18:29:02 +0000 (18:29 +0000)]
Mention ppport.h and its --api-info switch in perlguts.

p4raw-id: //depot/perl@23712

16 years agoAllow Configure's d_attribut to be set from the command line
Gisle Aas [Thu, 30 Dec 2004 03:39:36 +0000 (19:39 -0800)]
Allow Configure's d_attribut to be set from the command line
Message-ID: <lrllbgypzb.fsf@caliper.activestate.com>

p4raw-id: //depot/perl@23711

16 years agoThinko in the description of Config::Extensions
Nicholas Clark [Wed, 29 Dec 2004 21:41:04 +0000 (21:41 +0000)]
Thinko in the description of Config::Extensions

p4raw-id: //depot/perl@23708

16 years agoExperimental module intended to simplify core regression tests
Nicholas Clark [Wed, 29 Dec 2004 21:25:29 +0000 (21:25 +0000)]
Experimental module intended to simplify core regression tests

p4raw-id: //depot/perl@23707

16 years agoSkip tests that binmode :utf8 if there is no perlio
Nicholas Clark [Wed, 29 Dec 2004 21:24:30 +0000 (21:24 +0000)]
Skip tests that binmode :utf8 if there is no perlio

p4raw-id: //depot/perl@23706

16 years agoOoops. Fix unitialised variable
Nicholas Clark [Wed, 29 Dec 2004 21:04:43 +0000 (21:04 +0000)]
Ooops. Fix unitialised variable

p4raw-id: //depot/perl@23705

16 years agoOops. Forgot to uncomment the last set of Unicode values for
Nicholas Clark [Wed, 29 Dec 2004 19:47:12 +0000 (19:47 +0000)]
Oops. Forgot to uncomment the last set of Unicode values for
testing.

p4raw-id: //depot/perl@23704

16 years agoread (and presuambly sysread) would expose the UTF8 internals when
Nicholas Clark [Wed, 29 Dec 2004 19:00:12 +0000 (19:00 +0000)]
read (and presuambly sysread) would expose the UTF8 internals when
reading from a byte orientated file handle into a UTF8 scalar.

p4raw-id: //depot/perl@23703

16 years agoAdd a lot of tests for combinations of values, offsets and lengths
Nicholas Clark [Wed, 29 Dec 2004 17:20:29 +0000 (17:20 +0000)]
Add a lot of tests for combinations of values, offsets and lengths

p4raw-id: //depot/perl@23702

16 years agoConvert op/read.t to use test.pl and make it stricture compliant.
Nicholas Clark [Wed, 29 Dec 2004 16:28:58 +0000 (16:28 +0000)]
Convert op/read.t to use test.pl and make it stricture compliant.

p4raw-id: //depot/perl@23701

16 years agoUpgrade to Devel::PPPort 3.04
Marcus Holland-Moritz [Wed, 29 Dec 2004 13:46:36 +0000 (13:46 +0000)]
Upgrade to Devel::PPPort 3.04

p4raw-id: //depot/perl@23700

16 years agoRebuilt after backport start for 23674, 23675, and 23676
H.Merijn Brand [Wed, 29 Dec 2004 12:41:14 +0000 (12:41 +0000)]
Rebuilt after backport start for 23674, 23675, and 23676

p4raw-id: //depot/perl@23696

16 years agoCleanup ext/B tests for -w and to run separately
Stephen McCamant [Tue, 28 Dec 2004 13:49:19 +0000 (05:49 -0800)]
Cleanup ext/B tests for -w and to run separately
Message-ID: <16849.54495.424654.896889@apocalypse.OCF.Berkeley.EDU>

p4raw-id: //depot/perl@23691

16 years agoMake Config.t warnings and strictures clean
Nicholas Clark [Tue, 28 Dec 2004 10:25:28 +0000 (10:25 +0000)]
Make Config.t warnings and strictures clean

p4raw-id: //depot/perl@23688

16 years ago[patch sv.c] comment fix
Stas Bekman [Sun, 26 Dec 2004 19:02:06 +0000 (14:02 -0500)]
[patch sv.c] comment fix
Message-ID: <41CF50FE.5070307@stason.org>
Date: Sun, 26 Dec 2004 19:02:06 -0500

p4raw-id: //depot/perl@23683

16 years agoAdd investigating self tie segfaults to the TODO
Nicholas Clark [Mon, 27 Dec 2004 15:48:24 +0000 (15:48 +0000)]
Add investigating self tie segfaults to the TODO

p4raw-id: //depot/perl@23682

16 years ago[perl #33173] shellwords.pl and tainting
perl-5.8.0@ton.iguana.be [Fri, 24 Dec 2004 00:14:19 +0000 (00:14 +0000)]
[perl #33173] shellwords.pl and tainting
From: perl-5.8.0@ton.iguana.be (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-33173-103504.3.54366755060383@perl.org>

p4raw-id: //depot/perl@23681

16 years agoMissign STATEMENT brackets in PUSHMARK
Ton Hospel [Thu, 23 Dec 2004 17:55:13 +0000 (17:55 +0000)]
Missign STATEMENT brackets in PUSHMARK
Message-Id: <cqf0q1$9cc$1@post.home.lunix>

p4raw-id: //depot/perl@23680

16 years agoDon't do the ... expansion on archlib, sitelib etc, given that
Nicholas Clark [Fri, 24 Dec 2004 10:33:32 +0000 (10:33 +0000)]
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

p4raw-id: //depot/perl@23679