15 years agoAdd Cygwin to supported platforms list
Jerry D. Hedden [Mon, 19 Oct 2009 14:20:49 +0000]
Add Cygwin to supported platforms list

15 years agoPorting/makerel no longer massages win32 files during the final tarball build process
Jesse Vincent [Mon, 19 Oct 2009 16:45:21 +0000]
Porting/makerel no longer massages win32 files during the final tarball build process

I _believe_ that this change will mean that our shipped tarball will
contain all files exactly as they are in the repo - The only difference
will be in file permissions.

I'm told that git can version the execute bit on files. If I'm feeling
especially adventurous, I may write a porting test to ensure that the
right files (and only the right files?) are marked +x in git and then
remove that bit from Porting/makerel. I wouldn't mind it if someone beat
me to that.

15 years agoadd a test_porting target which runs basic porting tests to verify pod, manifest...
Jesse Vincent [Mon, 19 Oct 2009 15:16:02 +0000]
add a test_porting target which runs basic porting tests to verify pod, manifest, etc

15 years agoConsistent spelling of HP-UX
H.Merijn Brand [Mon, 19 Oct 2009 14:43:52 +0000]
Consistent spelling of HP-UX

15 years agoRemove the entry about removing Perl_deprecate()
Nicholas Clark [Mon, 19 Oct 2009 14:18:32 +0000]
Remove the entry about removing Perl_deprecate()

As a minor C function, I feel that at most it should be in "changed internals".
However, as it was not part of the public API, and searches showed that nothing
was using it, likely nothing is going to break if it goes. And if any naughty
code does break:
a: It will be at link time
b: It will be easy to find the cause from git log

I also feel that it's worth removing it, as existing perldeltas are the most
obvious guide for new volunteers in terms of "write something like this".
So having bad examples isn't going to help educate future authors.

15 years agoFix minor pod formatting error in perl5111delta.pod
Nicholas Clark [Mon, 19 Oct 2009 14:17:10 +0000]
Fix minor pod formatting error in perl5111delta.pod

15 years agoupdate perl5111delta to mark our current release point.
Jesse Vincent [Mon, 19 Oct 2009 14:14:21 +0000]
update perl5111delta to mark our current release point.

15 years agoperldelta editing
Jesse Vincent [Mon, 19 Oct 2009 14:09:19 +0000]
perldelta editing

15 years agoHP/UX should have been HP-UX
Jesse Vincent [Mon, 19 Oct 2009 14:08:16 +0000]
HP/UX should have been HP-UX

15 years agoFirst pass at updating perlport.pod with data from p5p for 5.12
Jesse Vincent [Mon, 19 Oct 2009 14:00:43 +0000]
First pass at updating perlport.pod with data from p5p for 5.12

15 years agoAdd two (U8 *) casts to placate C++.
Nicholas Clark [Mon, 19 Oct 2009 10:04:54 +0000]
Add two (U8 *) casts to placate C++.

15 years agoIn utf16_to_utf8(), fix off-by-one errors for the range of valid surrogates.
Nicholas Clark [Sun, 18 Oct 2009 21:09:14 +0000]
In utf16_to_utf8(), fix off-by-one errors for the range of valid surrogates.

Both high ends were one too low.

15 years agoutf16_to_utf8() should croak on encountering a bare low surrogate.
Nicholas Clark [Sun, 18 Oct 2009 21:01:49 +0000]
utf16_to_utf8() should croak on encountering a bare low surrogate.

15 years agoutf16_to_utf8() should croak if the buffer ends without the second surrogate.
Nicholas Clark [Sun, 18 Oct 2009 20:55:52 +0000]
utf16_to_utf8() should croak if the buffer ends without the second surrogate.

15 years agoutf16_to_utf8_reversed() should croak early when passed an odd byte length.
Nicholas Clark [Sun, 18 Oct 2009 20:30:41 +0000]
utf16_to_utf8_reversed() should croak early when passed an odd byte length.

Rather than transposing n + 1 bytes, including 1 it was not passed, before
calling utf16_to_utf8() and having that croak.
e 69422~

15 years agoExpose utf16_to_utf8{,reversed} via XS::APItest, and provide some basic tests.
Nicholas Clark [Sun, 18 Oct 2009 20:06:06 +0000]
Expose utf16_to_utf8{,reversed} via XS::APItest, and provide some basic tests.

15 years agoAnother pass at getting the perldelta for 5.11.1 in shape
Jesse Vincent [Sun, 18 Oct 2009 20:21:32 +0000]
Another pass at getting the perldelta for 5.11.1 in shape

15 years agoEviscerate README.macos to match the state of the world
Jesse Vincent [Sun, 18 Oct 2009 19:05:50 +0000]
Eviscerate README.macos to match the state of the world

15 years agoRemove Mac OS Classic caveats from perlport.pod as Perl is no longer portable to...
Jesse Vincent [Sun, 18 Oct 2009 18:34:30 +0000]
Remove Mac OS Classic caveats from perlport.pod as Perl is no longer portable to Mac OS Classic

15 years agoAdded four new AUTHORS who hadn't yet been acknowledged
Jesse Vincent [Sun, 18 Oct 2009 18:22:19 +0000]
Added four new AUTHORS who hadn't yet been acknowledged

15 years agoRan into Bert Dvornik at a cafe - updated his AUTHORS file address
Jesse Vincent [Sun, 18 Oct 2009 18:12:04 +0000]
Ran into Bert Dvornik at a cafe - updated his AUTHORS file address

15 years agoMerge S_utf16_textfilter and S_utf16rev_textfilter().
Nicholas Clark [Sun, 18 Oct 2009 16:47:10 +0000]
Merge S_utf16_textfilter and S_utf16rev_textfilter().

Use IoLINES() on the filter's SV to determine which encoding is in use.

15 years agoNote why S_pending_ident's prototype can't be generated by embed.fnc
Nicholas Clark [Sun, 18 Oct 2009 16:10:02 +0000]
Note why S_pending_ident's prototype can't be generated by embed.fnc

15 years agoGenerate prototypes for utf16_textfilter and utf16rev_textfilter using embed.fnc
Nicholas Clark [Sun, 18 Oct 2009 16:06:55 +0000]
Generate prototypes for utf16_textfilter and utf16rev_textfilter using embed.fnc

15 years agoUse gmtime() instead of localtime(), as timezones hinder testing strtime().
Nicholas Clark [Sun, 18 Oct 2009 16:41:19 +0000]
Use gmtime() instead of localtime(), as timezones hinder testing strtime().

(Specifically negative timezones on operating systems without tzset(). Coming
from Washington State, you would have thought that they would have thought of
this.)

15 years agoFirst pass of weeding commit meesages from "git log v5.11.0..blead" into a perldelta.
Jesse Vincent [Sun, 18 Oct 2009 06:27:11 +0000]
First pass of weeding commit meesages from "git log v5.11.0..blead" into a perldelta.

perl5111delta.pod is synced up to 704e1b1ec3309aeb0e2629c93331ffd4c18c8183
but needs heavy editing and organization

15 years agoUpdate CPANPLUS to CPAN version 0.89_02
Chris Williams [Sat, 17 Oct 2009 15:37:54 +0000]
Update CPANPLUS to CPAN version 0.89_02

  Changes for 0.89_02     Sat Oct 17 13:04:59 2009
  ================================================
  * Core module prereqs should be dealt with correctly now.

  Changes for 0.89_01     Fri Oct 16 10:22:43 2009
  ================================================
  * Corrected spelling mistake in CPANPLUS::Configure documentation
  * Fixed a problem with the core module detection when sending
    NA reports
  * Internals::Report will use Parse::CPAN::Meta instead of
    YAML::Tiny for parsing CPAN Test report data
  * Address #50428 Fixed edge-case in the arbitary paths support in
    parse_module(), reported by Robert Krimen
  * Address #49104 Fixed the SYNOPSIS in CPANPLUS::Module::Author::Fake
    reported by Tyler MacDonald
  * Address #47820 Don't try to update custom sources if they are disabled
    in configuration, reported by Curtis Jewell

15 years agoUpgrade to threads::shared 1.32
Jerry D. Hedden [Fri, 16 Oct 2009 17:24:11 +0000]
Upgrade to threads::shared 1.32

Message-ID: <1ff86f510910161058y554bc05cra48c0c3decd60738@mail.gmail.com>

15 years agoHelp ExtUtils::Install's tests find PERL_SRC on VMS.
Craig A. Berry [Fri, 16 Oct 2009 21:24:35 +0000]
Help ExtUtils::Install's tests find PERL_SRC on VMS.

We're testing from one level deeper than when we were in lib/.

15 years agorefactor the special CC code in reg_try()
Yves Orton [Fri, 16 Oct 2009 18:52:58 +0000]
refactor the special CC code in reg_try()

this is a precursor step to fixing the re/pat_special_cc.t failures.

15 years agoEnable deprecation warnings by default.
Nicholas Clark [Tue, 13 Oct 2009 15:04:18 +0000]
Enable deprecation warnings by default.

15 years agolocked is deprecated, so use :lvalue instead.
Nicholas Clark [Tue, 13 Oct 2009 15:02:05 +0000]
locked is deprecated, so use :lvalue instead.

15 years agoCan't use C<shift INC> to avoid @ in a commandline now, so use eval and octal.
Nicholas Clark [Tue, 13 Oct 2009 14:59:58 +0000]
Can't use C<shift INC> to avoid @ in a commandline now, so use eval and octal.

15 years agoshift with barewords is deprecated, so this test from perl 1 needs updating.
Nicholas Clark [Tue, 13 Oct 2009 14:37:12 +0000]
shift with barewords is deprecated, so this test from perl 1 needs updating.

15 years agopush and pop on barewords are deprecated, so need no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:36:14 +0000]
push and pop on barewords are deprecated, so need no warnings 'deprecated';

15 years agoOpening dirhandle DIR also as a file needs no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:35:15 +0000]
Opening dirhandle DIR also as a file needs no warnings 'deprecated';

15 years agodefined @array and defined %hash need no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:33:16 +0000]
defined @array and defined %hash need no warnings 'deprecated';

15 years agolocalisation of $[ is deprecated, so needs no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:32:03 +0000]
localisation of $[ is deprecated, so needs no warnings 'deprecated';

15 years ago:locked is deprecated, so use :lvalue instead.
Nicholas Clark [Tue, 13 Oct 2009 15:39:16 +0000]
:locked is deprecated, so use :lvalue instead.

15 years agoTests for barewords and hash operators need no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:26:32 +0000]
Tests for barewords and hash operators need no warnings 'deprecated';

15 years agodo subname() is deprecated, so tests for it need no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:25:03 +0000]
do subname() is deprecated, so tests for it need no warnings 'deprecated';

15 years agodo subname() is deprecated, so update this hunk of test dating from perl 1.
Nicholas Clark [Tue, 13 Oct 2009 14:16:53 +0000]
do subname() is deprecated, so update this hunk of test dating from perl 1.

15 years agoBracket deprecated features with no warnings 'deprecated';
Nicholas Clark [Tue, 13 Oct 2009 14:16:16 +0000]
Bracket deprecated features with no warnings 'deprecated';

15 years agodo subname() is deprecated, so this test from perl 3 needs updating.
Nicholas Clark [Tue, 13 Oct 2009 14:14:12 +0000]
do subname() is deprecated, so this test from perl 3 needs updating.

15 years agoMove tests for $[ from comp/hints.t to op/array_base.t
Nicholas Clark [Tue, 13 Oct 2009 14:10:40 +0000]
Move tests for $[ from comp/hints.t to op/array_base.t

Tests in t/comp/ are too early to rely on pragmata working.

15 years agoMove tests for $[ from comp/parser.t to op/array_base.t
Nicholas Clark [Tue, 13 Oct 2009 13:33:38 +0000]
Move tests for $[ from comp/parser.t to op/array_base.t

Tests in t/comp/ are too early to rely on pragmata working.

15 years agodo subname() is deprecated, so this test from perl 1 needs updating.
Nicholas Clark [Tue, 13 Oct 2009 12:56:06 +0000]
do subname() is deprecated, so this test from perl 1 needs updating.

15 years agoMove the test for the deprecated feature <<; out of t/base/lext.t
Nicholas Clark [Tue, 13 Oct 2009 12:44:50 +0000]
Move the test for the deprecated feature <<; out of t/base/lext.t

Tests in base can't utilise pragmata, specifically no warnings 'deprecated';

15 years agoAdd no warnings 'deprecated' to a test that assigns to $[
Nicholas Clark [Tue, 13 Oct 2009 12:32:50 +0000]
Add no warnings 'deprecated' to a test that assigns to $[

15 years agoMake the watchdog create a valid command for spawning.
Craig A. Berry [Fri, 16 Oct 2009 15:58:43 +0000]
Make the watchdog create a valid command for spawning.

It was inserting a newline in the command string, which
causes a syntax error (at least on VMS).

15 years agoConvert sv_2mortal(newSVpvn()) to newSVpvn_flags(), for 5.11.0 and later.
Nicholas Clark [Fri, 16 Oct 2009 10:59:48 +0000]
Convert sv_2mortal(newSVpvn()) to newSVpvn_flags(), for 5.11.0 and later.

15 years agoConvert sv_2mortal(newSVpvn_utf8(...)) to newSVpvn_flags()
Nicholas Clark [Fri, 16 Oct 2009 10:41:10 +0000]
Convert sv_2mortal(newSVpvn_utf8(...)) to newSVpvn_flags()

15 years agoConvert sv_2mortal(newSVpvn(...)) to newSVpvs_flags(..., SVs_TEMP)
Nicholas Clark [Fri, 16 Oct 2009 09:47:14 +0000]
Convert sv_2mortal(newSVpvn(...)) to newSVpvs_flags(..., SVs_TEMP)

Optionally use ppport.h to provide it for us.

15 years agoAdd missing MANIFEST entries
Steve Hay [Fri, 16 Oct 2009 09:11:16 +0000]
Add missing MANIFEST entries

Missed by commit 55b77936aef50881a71470fd06e66edffd66d9de

15 years agoRestore 8d2345e02f493825c3e22467caf8508ee3a19450.
Craig A. Berry [Thu, 15 Oct 2009 23:05:50 +0000]
Restore 8d2345e02f493825c3e22467caf8508ee3a19450.

Also reported upstream this time (oops):

https://rt.cpan.org/Ticket/Display.html?id=50542

15 years agoSkip testing the be_BY.CP1131 locale on Darwin 10, as it's still buggy.
Nicholas Clark [Thu, 15 Oct 2009 22:37:41 +0000]
Skip testing the be_BY.CP1131 locale on Darwin 10, as it's still buggy.

Correct infelicities in the regexp used to identify buggy locales on Darwin 8
and 9.

15 years agoReplace sv_2mortal(newSVpvn(...)) with newSVpvn_flags(..., SVs_TEMP)
Nicholas Clark [Thu, 15 Oct 2009 22:17:02 +0000]
Replace sv_2mortal(newSVpvn(...)) with newSVpvn_flags(..., SVs_TEMP)

15 years agoUse newSVpvn(), newSVpvs() and gv_fetchpvs(), the later with proper arguments.
Nicholas Clark [Thu, 15 Oct 2009 19:02:51 +0000]
Use newSVpvn(), newSVpvs() and gv_fetchpvs(), the later with proper arguments.

Brought to you by the Campaign for the Elimination of strlen().

15 years agoUse gv_stashsv() and gv_fetchpvs(), the later with proper arguments.
Nicholas Clark [Thu, 15 Oct 2009 18:38:08 +0000]
Use gv_stashsv() and gv_fetchpvs(), the later with proper arguments.

Brought to you by the Campaign for the Elimination of strlen().
(And the elimination of accidental bugs due to typos in lenghts of constants,
and the elimination of abuse of boolean constants for parameters with more than
2 values.)

15 years agoUse sv_catpvs(), newSVpvs(), newSVpvn(), newSVhek(), gv_stashpvs() and the
Nicholas Clark [Thu, 15 Oct 2009 17:51:16 +0000]
Use sv_catpvs(), newSVpvs(), newSVpvn(), newSVhek(), gv_stashpvs() and the
return value of sprintf().

Brought to you by the Campaign for the Elimination of strlen().
(And the elimination of accidental bugs due to typos in lengths of constant
strings.)

15 years agoIn strftime(), save a malloc()/free() by using sv_usepvn_flags().
Nicholas Clark [Thu, 15 Oct 2009 15:26:51 +0000]
In strftime(), save a malloc()/free() by using sv_usepvn_flags().

15 years agoPOSIX::strftime() should be able to handle Unicode characters in the format
Nicholas Clark [Thu, 15 Oct 2009 16:09:12 +0000]
POSIX::strftime() should be able to handle Unicode characters in the format
string.

(Restore the intent of 9e8c01f558a03902ff2f54935fd7e6dcc7ec656c, but with non-
buggy tests. Improve the implementation so that it doesn't always upgrade the
format string to UTF-8.)

15 years agoFix 2 pod errors in perlvms.pod.
Craig A. Berry [Thu, 15 Oct 2009 16:01:33 +0000]
Fix 2 pod errors in perlvms.pod.

15 years agoMake p_tainted.t find its tests on VMS.
Craig A. Berry [Thu, 15 Oct 2009 15:59:09 +0000]
Make p_tainted.t find its tests on VMS.

Reported upstream at:

https://rt.cpan.org/Ticket/Display.html?id=50528

15 years agoHmmm... this may be a heisenbug. Works on some terminals but not
Steve Peters [Thu, 15 Oct 2009 14:50:42 +0000]
Hmmm... this may be a heisenbug.  Works on some terminals but not
others.

This reverts commit 9e8c01f558a03902ff2f54935fd7e6dcc7ec656c.

15 years agoMerge branch 'blead' of ssh://stevep@perl5.git.perl.org/gitroot/perl into blead
Steve Peters [Thu, 15 Oct 2009 14:14:47 +0000]
Merge branch 'blead' of ssh://stevep@perl5.git.perl.org/gitroot/perl into blead

15 years agoPOSIX::strftime() should be able to handle Unicode characters in the
Steve Peters [Thu, 15 Oct 2009 14:12:57 +0000]
POSIX::strftime() should be able to handle Unicode characters in the
format string the same as ASCII ones.

15 years agoMove the boolkeys op to the group of hash ops.
Nicholas Clark [Thu, 15 Oct 2009 14:12:49 +0000]
Move the boolkeys op to the group of hash ops.

This breaks binary compatibility.

15 years agoOptimise if (%foo) to be faster than if(keys %foo)
demerphq [Thu, 15 Oct 2009 13:27:30 +0000]
Optimise if (%foo) to be faster than if(keys %foo)

Thread was "[PATCH] Make if (%hash) {} act the same as if (keys %hash) {}"
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00432.html
but the implementation evolved from the approach described in the subject, to
instead add a new opcode pp_boolkeys, to exactly preserve the existing
behaviour.

Various conflicts with the passage of time resolved, 'register' removed, and a
$VERSION bump.

15 years agoSupport for pp_boolkeys in B::Deparse.
demerphq [Thu, 15 Oct 2009 13:22:47 +0000]
Support for pp_boolkeys in B::Deparse.

Part of "[PATCH] Make if (%hash) {} act the same as if (keys %hash) {}"
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00432.html
which evolved from the approach described in the subject, to instead add a new
opcode pp_boolkeys, to exactly preserve the existing behaviour.

Plus a $VERSION bump.

15 years agoUpdated a comment in Porting/makerel
Jesse Vincent [Wed, 14 Oct 2009 19:24:54 +0000]
Updated a comment in Porting/makerel

15 years agoAdd mingw64 support for win32
Sisyphus [Wed, 14 Oct 2009 14:02:16 +0000]
Add mingw64 support for win32

15 years agoRemove old code dealing with installing 5.003's perldiag
Rafael Garcia-Suarez [Wed, 14 Oct 2009 09:40:35 +0000]
Remove old code dealing with installing 5.003's perldiag

15 years agoIgnore files installed by Parse::CPAN::Meta
Rafael Garcia-Suarez [Wed, 14 Oct 2009 09:36:44 +0000]
Ignore files installed by Parse::CPAN::Meta

15 years agoDon't install uupacktool.pl
Rafael Garcia-Suarez [Wed, 14 Oct 2009 09:35:10 +0000]
Don't install uupacktool.pl

15 years agoPatch t/win32/system.t for mingw32/64
Sisyphus [Wed, 14 Oct 2009 10:58:49 +0000]
Patch t/win32/system.t for mingw32/64

15 years agoFix {$^MATCH} typo in perlre
brian d foy [Wed, 14 Oct 2009 08:08:25 +0000]
Fix {$^MATCH} typo in perlre

15 years agoThe winsock select() implementation doesn't support all empty 'fd_set's.
Jan Dubois [Tue, 13 Oct 2009 23:46:58 +0000]
The winsock select() implementation doesn't support all empty 'fd_set's.

The code already contained a workaround for the special case

    select(undef, undef, undef, $sleep);

but didn't handle the case when actual bit vectors were passed in
that didn't have any bits set.

Fixes http://rt.perl.org/rt3/Public/Bug/Display.html?id=54544

15 years agoSort MANIFEST following commit 9bc662c9c4c134e4.
Nicholas Clark [Tue, 13 Oct 2009 17:05:09 +0000]
Sort MANIFEST following commit 9bc662c9c4c134e4.

15 years agoNote that a test that regen.pl was run is TODO.
Nicholas Clark [Tue, 13 Oct 2009 17:02:46 +0000]
Note that a test that regen.pl was run is TODO.

15 years agoMinor podification nit. *2 legs bad* B<4 legs good>.
Nicholas Clark [Tue, 13 Oct 2009 15:51:09 +0000]
Minor podification nit. *2 legs bad* B<4 legs good>.

15 years agoIncorrect warning category case
Eric Brine [Tue, 13 Oct 2009 16:14:51 +0000]
Incorrect warning category case

15 years agoFix minor typo in perlpolicy.pod
Steve Hay [Tue, 13 Oct 2009 16:44:41 +0000]
Fix minor typo in perlpolicy.pod

15 years agoWork around Parse-CPAN-Meta's desire to run a command at 'make test' time. - Commit...
Jesse Vincent [Tue, 13 Oct 2009 15:14:03 +0000]
Work around Parse-CPAN-Meta's desire to run a command at 'make test' time.  - Commit the generated file

15 years agoMove the new "perl policy" document into pod/
Jesse Vincent [Tue, 13 Oct 2009 14:36:34 +0000]
Move the new "perl policy" document into pod/

15 years agoPodify the social contract about contributed modules
Jesse Vincent [Tue, 13 Oct 2009 14:32:38 +0000]
Podify the social contract about contributed modules

15 years agoperlvar $1 clarification
Smylers [Tue, 13 Oct 2009 12:14:46 +0000]
perlvar $1 clarification

$1 is currently documented as being set by the "last pattern match".
But it is left alone by unsuccessful pattern match attempts (continuing
to hold a value from an earlier successful match).

Saying "last successful pattern match" clarifies this; it's also the
phrase used to document $&.

Second, the entry for $1 in perlvar doesn't actually contain the text
"$1" anywhere.  As such, doing man perlvar then using /\$1 to search for
it in less doesn't locate it (though does match other places in that
file where $1 happens to be used).

15 years agoChange S_ckwarn_common() to looping over the packed warning value.
Nicholas Clark [Tue, 13 Oct 2009 12:01:52 +0000]
Change S_ckwarn_common() to looping over the packed warning value.

The core never uses WARN3() or WARN4(), and rarely uses WARN2(), so the
previous code, effectively an unwrapped loop, wasn't a speed up. Functionally
equivalent smaller code fits better into CPU caches.

15 years agoMigrate common code in Perl_ckwarn() and Perl_ckwarn_d() to S_ckwarn_common()
Nicholas Clark [Tue, 13 Oct 2009 10:41:36 +0000]
Migrate common code in Perl_ckwarn() and Perl_ckwarn_d() to S_ckwarn_common()

15 years agoIn Perl_ckwarn() and Perl_ckwarn_d() disentangle the complex conditionals.
Nicholas Clark [Tue, 13 Oct 2009 10:30:14 +0000]
In Perl_ckwarn() and Perl_ckwarn_d() disentangle the complex conditionals.

It's much easier to see what is going on, if we use multiple return statements.

15 years agoReplace Perl_deprecate() with a macro that calls Perl_ck_warner()
Nicholas Clark [Tue, 13 Oct 2009 10:05:49 +0000]
Replace Perl_deprecate() with a macro that calls Perl_ck_warner()

Perl_deprecate was not part of the public API, and did not have a deprecate()
shortcut macro defined without -DPERL_CORE. Neither codesearch.google.com nor
CPAN::Unpack show any users outside the core.

15 years agoMove the code related to deprecate("comma-less variable list") into a function.
Nicholas Clark [Tue, 13 Oct 2009 09:27:36 +0000]
Move the code related to deprecate("comma-less variable list") into a function.

This makes all calls to deprecate() string constants.

15 years agoRemove category 'syntax' from 5 warnings that should just be in 'deprecated'.
Nicholas Clark [Tue, 13 Oct 2009 06:37:35 +0000]
Remove category 'syntax' from 5 warnings that should just be in 'deprecated'.

None were documented as also being in 'syntax'. Effectively, this completes the
reorganisation of commits 12bcd1a617c74d6e and 9014280dc8264580. See
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2009-10/msg00601.html and
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-03/msg00850.html

15 years agoUse deprecate() in place of deprecate_old(), and remove S_deprecate_old().
Nicholas Clark [Tue, 13 Oct 2009 06:12:04 +0000]
Use deprecate() in place of deprecate_old(), and remove S_deprecate_old().

15 years agockWARNreg() and ckWARNregdep() now use string concatenation, like their brethren
Nicholas Clark [Mon, 12 Oct 2009 17:48:38 +0000]
ckWARNreg() and ckWARNregdep() now use string concatenation, like their brethren

They had been concatenating "%s" REPORT_LOCATION, as they weren't passing in a
format string, which wasn't consistent with the 2-5 argument versions. None of
the strings passed in have % characters in them, so this is safe (and any static
analyser will be able to see this).

15 years agoReplace "%s"/SvPVX(sv_name) with "%"SVf/SVfARG(sv_name), which is UTF-8 safe.
Nicholas Clark [Mon, 12 Oct 2009 17:32:12 +0000]
Replace "%s"/SvPVX(sv_name) with "%"SVf/SVfARG(sv_name), which is UTF-8 safe.

15 years agoIn regcomp.c, where possible replace vWARN* with ckWARN*, using Perl_ck_warner.
Nicholas Clark [Mon, 12 Oct 2009 16:59:49 +0000]
In regcomp.c, where possible replace vWARN* with ckWARN*, using Perl_ck_warner.

This folds many pairs of ckWARN*() && Perl_warner() calls into singles call to
Perl_ck_warner(). vWARN(), vWARNdep() and vWARN2() are no longer used, so are
removed.

15 years agooverload no longer implicitly unsets fallback on repeated 'use overload' lines -...
Geoffrey T. Dairiki [Wed, 5 Aug 2009 00:54:34 +0000]
overload no longer implicitly unsets fallback on repeated 'use overload' lines - Fix for RT#68916

Subject: overload::import resets the setting of 'fallback'
Date: Tue, 04 Aug 2009 17:54:34 -0700
From: "Geoffrey T. Dairiki" <dairiki at dairiki.org>

15 years agoRemove Test-Simple's 00compile.t from core
Steve Hay [Mon, 12 Oct 2009 16:21:05 +0000]
Remove Test-Simple's 00compile.t from core

It required a hand-edited version of Test-Simple's MANIFEST due to the
exclusion of a .pm file from core, but we shouldn't have edited versions
of CPAN files in core. The presence of the MANIFEST file also caused
warnings from the Makefile.PL due to other files being excluded from core,
so rather than further editing of the MANIFEST it is simplest to just
remove it and the test that requires it.

15 years agoAdd Perl_ck_warner_d(), which combines Perl_ckwarn_d() and Perl_warner().
Nicholas Clark [Mon, 12 Oct 2009 15:39:02 +0000]
Add Perl_ck_warner_d(), which combines Perl_ckwarn_d() and Perl_warner().

Replace ckWARN_d{,2,3,4}() && Perl_warner() with it, which trades reduced code
size for 1 more function call if warnings are not enabled.