This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
10 years agoB:: is pre-instantiated when B is static
Tony Cook [Sun, 24 Jul 2011 08:11:37 +0000 (18:11 +1000)]
B:: is pre-instantiated when B is static

10 years agouse the correct type for a format field width parameter
Tony Cook [Sun, 24 Jul 2011 04:09:28 +0000 (14:09 +1000)]
use the correct type for a format field width parameter

This was warning in DEBUGGING builds

10 years agodiscuss epigraphs.pod link to announcements in RMG
Zefram [Sat, 23 Jul 2011 17:49:02 +0000 (18:49 +0100)]
discuss epigraphs.pod link to announcements in RMG

10 years agocorrect scope for dev.perl.org step in RMG
Zefram [Sat, 23 Jul 2011 17:45:38 +0000 (18:45 +0100)]
correct scope for dev.perl.org step in RMG

10 years agolink to 5.15.1 announcement
Zefram [Sat, 23 Jul 2011 17:33:08 +0000 (18:33 +0100)]
link to 5.15.1 announcement

10 years agocorrect title for perl561delta
Zefram [Sat, 23 Jul 2011 17:32:35 +0000 (18:32 +0100)]
correct title for perl561delta

10 years agoSome perlfunc cleanup/reflow
Father Chrysostomos [Sat, 23 Jul 2011 05:21:38 +0000 (22:21 -0700)]
Some perlfunc cleanup/reflow

This is by no means exhaustive; just a few things that I noticed.

This commit rewraps a couple of sections to fit in 80-column termi-
nals, fixes some indentation that was ‘fixed’ when tabs were con-
verted to spaces, and makes a few other tweaks.

10 years agoReflow perlfunc/stat for 80 columns
Father Chrysostomos [Sat, 23 Jul 2011 03:07:58 +0000 (20:07 -0700)]
Reflow perlfunc/stat for 80 columns

plus some minor tweaks

10 years agoCall get-magic on temp returned under recursion
Father Chrysostomos [Fri, 22 Jul 2011 19:14:28 +0000 (12:14 -0700)]
Call get-magic on temp returned under recursion

This fixes a regression introduced in 5.15.0.

Commit 767eda44 made autovivification work with scalars returned from
lvalue subs.  In doing so, as it made entersub an autovivifying op,
it had to add SvGETMAGIC calls to pp_return and pp_leavesub.  (See
767eda44’s commit message for details.)  In one spot in pp_return,
the SvGETMAGIC call was added to the wrong branch of an if/else con-
dition, causing a regression.  Explicitly returning from a recursive
subroutine call in autovivifying context would not call get-magic on
the returned value.

10 years agoMake tests for gmagic on sub exit count fetches
Father Chrysostomos [Fri, 22 Jul 2011 16:52:56 +0000 (09:52 -0700)]
Make tests for gmagic on sub exit count fetches

These tests, added in commit 767eda44 (when lvalue subs started auto-
vivifying, causing regular sub exit to have to call get-magic), were
not counting the number of fetches, but simply whether the fetches
were happening.  The number that was occurring was wrong until
7ffa7e75, which fixed symbolic refs to call magic the right number of
times.  But now that that’s fixed, we can count them.  So this commit
does just that.

10 years agoDon’t call get-magic twice for sym refs
Father Chrysostomos [Fri, 22 Jul 2011 06:18:44 +0000 (23:18 -0700)]
Don’t call get-magic twice for sym refs

Dereferencing ops (${}, etc.) were calling get-magic on their operand
twice if it was a symbolic reference, except for &{}.

This commit fixes that, adding tests for all the deref ops, including
&{}, for good measure.

10 years agogmagic.t: Remove confusing comment
Father Chrysostomos [Fri, 22 Jul 2011 01:08:54 +0000 (18:08 -0700)]
gmagic.t: Remove confusing comment

Commit ead3e279 moved a comment into a test name (the test previously
having no name), but left a cryptic piece of that comment behind.

10 years agoOne more missing address
Abigail [Fri, 22 Jul 2011 00:30:42 +0000 (02:30 +0200)]
One more missing address

10 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Abigail [Fri, 22 Jul 2011 00:17:23 +0000 (02:17 +0200)]
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

10 years agoChange Shlomi Fish's E-mail Address in AUTHORS file
Shlomi Fish [Thu, 21 Jul 2011 23:54:04 +0000 (02:54 +0300)]
Change Shlomi Fish's E-mail Address in AUTHORS file

This patch updates my address. vipe.technion.ac.il is now defunct and
shlomif@cpan.org is active and should be kept so into the future.

Regards,

Shlomi Fish

Signed-off-by: Abigail <abigail@abigail.be>
10 years agoChange Shlomi Fish's E-mail Address in AUTHORS file
Shlomi Fish [Thu, 21 Jul 2011 23:54:04 +0000 (02:54 +0300)]
Change Shlomi Fish's E-mail Address in AUTHORS file

This patch updates my address. vipe.technion.ac.il is now defunct and
shlomif@cpan.org is active and should be kept so into the future.

Regards,

Shlomi Fish

Signed-off-by: Abigail <abigail@abigail.be>
10 years agoUpdate Module::Build to 0.39_01
David Golden [Thu, 21 Jul 2011 21:06:48 +0000 (17:06 -0400)]
Update Module::Build to 0.39_01

0.39_01 - Thu Jul 21 16:48:48 EDT 2011

  [BUG FIXES]

  - Fixed bug with a nested directory named 'share' inside a ShareDir
    (RT#68585) [David Golden]

  - Fixed failing tilde.t when run under UID without passwd entry
    (RT#67893) [Dominic Hargreaves]

  [DOCUMENTATION]

  - Fixed typo in Module::Build (RT#67008) [David Golden]

  [OTHER]

  - Pod to HTML internals changed to support new Pod::Html work
    in the Perl core

10 years agoperldiag: Add missing variant of proto warning
Father Chrysostomos [Thu, 21 Jul 2011 16:37:42 +0000 (09:37 -0700)]
perldiag: Add missing variant of proto warning

This is already listed, but without the ‘after '_'’ bit, so splain
couldn’t find it.

10 years agoUpdate Term-ANSIColor to CPAN version 3.01
Chris 'BinGOs' Williams [Thu, 21 Jul 2011 10:52:47 +0000 (11:52 +0100)]
Update Term-ANSIColor to CPAN version 3.01

  [DELTA]

  2011-07-20  Russ Allbery  <rra@stanford.edu>

  * ANSIColor.pm: Version 3.01 released.

  * Makefile.PL: Change the DISTNAME to Term-ANSIColor.

  * ANSIColor.pm (colored): Only interpret an initial array
  reference as a list of colors, not any initial reference, allowing
  the colored function to work properly on objects with
  stringification defined.  Thanks, Revilo Reegiles.
  * t/stringify.t: New test for proper behavior with non-array
  references in colored.

  2011-03-13  Russ Allbery  <rra@stanford.edu>

  * ANSIColor.pm: Fix two syntax errors in the SYNOPSIS.  Thanks,
  Jan Hartung.

  2010-10-08  Russ Allbery  <rra@stanford.edu>

  * ANSIColor.pm: Warn in the documentation that attributes are not
  supported in and will not work with Perl formats.

  2010-04-11  Russ Allbery  <rra@stanford.edu>

  * ANSIColor.pm: Update the URL for ECMA-048 in the documentation.

10 years agoUpdate Porting/checkAUTHORS.pl after commit 6410892abe3d820a.
Nicholas Clark [Thu, 21 Jul 2011 10:28:14 +0000 (12:28 +0200)]
Update Porting/checkAUTHORS.pl after commit 6410892abe3d820a.

This resolves the failure in t/porting/authors.t.

10 years agoold work email address is no longer valid - I've updated the file with
Spiros Denaxas [Thu, 21 Jul 2011 10:17:54 +0000 (12:17 +0200)]
old work email address is no longer valid - I've updated the file with
a working one.

10 years agoAdd "clean build and test" as a step in the release manager's guide.
Nicholas Clark [Thu, 21 Jul 2011 09:29:01 +0000 (11:29 +0200)]
Add "clean build and test" as a step in the release manager's guide.

Some of the post-release steps can cause test failures (and hence black
smoke) if not addressed at the time.

10 years agoIn perldelta.pod, fix a spelling error.
Nicholas Clark [Thu, 21 Jul 2011 09:11:44 +0000 (11:11 +0200)]
In perldelta.pod, fix a spelling error.

10 years agoIncrease $PerlIO::via::VERSION following commit d477ab3eb4369a52.
Nicholas Clark [Thu, 21 Jul 2011 09:03:22 +0000 (11:03 +0200)]
Increase $PerlIO::via::VERSION following commit d477ab3eb4369a52.

10 years agos/bellow/below/ in PerlIO::via docs
Eric Brine [Thu, 21 Jul 2011 07:36:51 +0000 (00:36 -0700)]
s/bellow/below/ in PerlIO::via docs

Signed-off-by: Abigail <abigail@abigail.be>
10 years agoCorrect lock’s prototype
Father Chrysostomos [Thu, 21 Jul 2011 07:07:05 +0000 (00:07 -0700)]
Correct lock’s prototype

As of commit f4df43b5, lock is parsed the same way as tied.  Before
that, the prototype was effectively \[$@%&*], but only because
it was buggy (an lvalue sub itself would be passed to the function,
instead of its return value).  Yet its prototype was set to \$, which
was just wrong.

This fixes part of #94980.

10 years agoDocument lock’s retval
Father Chrysostomos [Thu, 21 Jul 2011 06:57:04 +0000 (23:57 -0700)]
Document lock’s retval

10 years ago[perl #81290] assertion failure with lock &lvsub
Father Chrysostomos [Thu, 21 Jul 2011 06:52:57 +0000 (23:52 -0700)]
[perl #81290] assertion failure with lock &lvsub

With this commit, locking an lvalue subroutine no longer tries to lock
the subroutine itself (triggering an assertion in pp_lock).  Instead,
the &foo syntax is treated as a scalar lvalue expression, as with tie,
so the return value gets locked.  Non-lvalue sub calls still produce a
‘Can't modify’ error, as they are not modifiable.

This also stops lock from trying to return a sub as though it were a
scalar, thereby breaking this JAPH I’ve just written:-)

sub _:lvalue{$x}for(lock&_){$_
="Just another Perl hacker,\n"}
print+prototype"_"

10 years agooverload.t: Remove a bug workarond
Father Chrysostomos [Thu, 21 Jul 2011 06:18:07 +0000 (23:18 -0700)]
overload.t: Remove a bug workarond

That bug was fixed in 5.14

10 years agoTests for overload errors
Father Chrysostomos [Thu, 21 Jul 2011 06:05:56 +0000 (23:05 -0700)]
Tests for overload errors

10 years agopodcheck.t: fix up known issues in new perldelta
David Golden [Thu, 21 Jul 2011 01:17:14 +0000 (21:17 -0400)]
podcheck.t: fix up known issues in new perldelta

10 years agoAdds 'skip_cwd' parameter to ExtUtils::Installed.
David Golden [Wed, 20 Jul 2011 23:49:43 +0000 (19:49 -0400)]
Adds 'skip_cwd' parameter to ExtUtils::Installed.

With this new parameter, the current directory is not included in the
installed module search.  This avoids finding modules from other perls
which happen to be below the current directory.

10 years agoperldelta: document perlivp changes
David Golden [Wed, 20 Jul 2011 23:57:22 +0000 (19:57 -0400)]
perldelta: document perlivp changes

10 years agoRemove .ph tests from perlivp
David Golden [Wed, 20 Jul 2011 23:20:51 +0000 (19:20 -0400)]
Remove .ph tests from perlivp

These tests were made optional in 2005 in commit 2a36bdc27 and
refer to files which are no longer generated during install.

To avoid confusion, the tests for these files have been removed.

10 years agoAdd test labels to perlivp
David Golden [Wed, 20 Jul 2011 22:27:16 +0000 (18:27 -0400)]
Add test labels to perlivp

10 years agoMake perlivp ignore PERL5LIB and current directory
David Golden [Wed, 20 Jul 2011 22:14:03 +0000 (18:14 -0400)]
Make perlivp ignore PERL5LIB and current directory

10 years agoepigraph for 5.15.1
Zefram [Wed, 20 Jul 2011 21:49:50 +0000 (22:49 +0100)]
epigraph for 5.15.1

10 years agomark perldelta Ack generation instruction with XXX
Zefram [Wed, 20 Jul 2011 21:48:15 +0000 (22:48 +0100)]
mark perldelta Ack generation instruction with XXX

10 years agonew perldelta for 5.15.2
Zefram [Wed, 20 Jul 2011 21:47:11 +0000 (22:47 +0100)]
new perldelta for 5.15.2

10 years agocorrect name of 7-Zip Debian package in RMG
Zefram [Wed, 20 Jul 2011 21:38:38 +0000 (22:38 +0100)]
correct name of 7-Zip Debian package in RMG

10 years agoskip perlfaq pseudo-module in installation test v5.15.1
Zefram [Wed, 20 Jul 2011 19:58:56 +0000 (20:58 +0100)]
skip perlfaq pseudo-module in installation test

10 years agoadd 5.15.1 to perlhist
Zefram [Wed, 20 Jul 2011 19:14:15 +0000 (20:14 +0100)]
add 5.15.1 to perlhist

10 years agoremove note about now-automated aspect of CoreList
Zefram [Wed, 20 Jul 2011 19:11:41 +0000 (20:11 +0100)]
remove note about now-automated aspect of CoreList

10 years agoupdate Module::CoreList for 5.15.1
Zefram [Wed, 20 Jul 2011 19:10:07 +0000 (20:10 +0100)]
update Module::CoreList for 5.15.1

10 years agopod markup fix in perldelta
Zefram [Wed, 20 Jul 2011 18:51:33 +0000 (19:51 +0100)]
pod markup fix in perldelta

10 years agoacknowledgements in perldelta
Zefram [Wed, 20 Jul 2011 18:47:06 +0000 (19:47 +0100)]
acknowledgements in perldelta

10 years agoregen known_pod_issues.dat for perldelta edits
Zefram [Wed, 20 Jul 2011 18:41:59 +0000 (19:41 +0100)]
regen known_pod_issues.dat for perldelta edits

10 years agobump perl version number to 5.15.1
Zefram [Wed, 20 Jul 2011 18:36:45 +0000 (19:36 +0100)]
bump perl version number to 5.15.1

10 years agoexempt a couple more files from version bumping
Zefram [Wed, 20 Jul 2011 17:57:40 +0000 (18:57 +0100)]
exempt a couple more files from version bumping

10 years agocopyedit perldelta
Zefram [Wed, 20 Jul 2011 17:47:23 +0000 (18:47 +0100)]
copyedit perldelta

10 years agoperldelta entry for 64eff8b7
Zefram [Wed, 20 Jul 2011 17:25:49 +0000 (18:25 +0100)]
perldelta entry for 64eff8b7

10 years agomake assign to $^A update FmLINES
David Mitchell [Wed, 20 Jul 2011 13:39:20 +0000 (14:39 +0100)]
make assign to $^A update FmLINES

Currently assigning to $^A updates the string in
PL_bodytarget, but doesn't update FmLINES(PL_bodytarget).

This can cause later writes to get confused about how many
lines have been output, and was causing write.t to fail test 418
under miniperl. (Only under miniperl, because skipping some tests under
miniperl affected how $^A's content and line count got messed up).

Fix this by updating FmLINES(PL_bodytarget) when $^A is set.

(Also fixes a TODO test which was failing due to 'local $^A' in earlier
tests)

10 years agoSort the VMS specific PL_bincompat_options in alphabetic order.
Nicholas Clark [Tue, 19 Jul 2011 09:11:49 +0000 (11:11 +0200)]
Sort the VMS specific PL_bincompat_options in alphabetic order.

10 years agoRemove an erroneous space from PL_bincompat_options for HAVE_INTERP_INTERN.
Nicholas Clark [Tue, 19 Jul 2011 08:50:57 +0000 (10:50 +0200)]
Remove an erroneous space from PL_bincompat_options for HAVE_INTERP_INTERN.

This was inadvertently added as part of eba804b9d4475c6d, but only causes
t/porting/bincompat.t to fail on those platforms that define
HAVE_INTERP_INTERN. It's always the really subtle things that catch you out.

10 years agopodcheck: regen after perldelta changes
Karl Williamson [Wed, 20 Jul 2011 02:55:49 +0000 (20:55 -0600)]
podcheck: regen after perldelta changes

10 years agoremove most placeholders from perldelta
Zefram [Tue, 19 Jul 2011 21:36:10 +0000 (22:36 +0100)]
remove most placeholders from perldelta

10 years agoupdate perldelta and correct one dubious entry
Zefram [Tue, 19 Jul 2011 21:18:21 +0000 (22:18 +0100)]
update perldelta and correct one dubious entry

10 years agobump version.pm $VERSION to reflect doc changes
Zefram [Tue, 19 Jul 2011 20:01:42 +0000 (21:01 +0100)]
bump version.pm $VERSION to reflect doc changes

10 years agoCorrect test count in win32/runenv.t
Father Chrysostomos [Tue, 19 Jul 2011 15:22:00 +0000 (08:22 -0700)]
Correct test count in win32/runenv.t

Not having any way to test this, I hope it works.

This is based on smoke reports and my own counting of the is()
calls in the test script.

10 years agoUse a switch in pp_prototype for compactness
Father Chrysostomos [Tue, 19 Jul 2011 05:46:13 +0000 (22:46 -0700)]
Use a switch in pp_prototype for compactness

10 years ago[perl #94984] Remove prototypes for infix ops
Father Chrysostomos [Tue, 19 Jul 2011 05:30:52 +0000 (22:30 -0700)]
[perl #94984] Remove prototypes for infix ops

This commit makes prototype("CORE::$_") return undef for these
infix ops, instead of the prototype (or error) shown here:

and ()
cmp Error: Cannot find an op number for cmp
eq  ($$)
ge  ($$)
gt  ($$)
le  ($$)
lt  ($$)
ne  ($$)
or  ()
x   Error: Cannot find an op number for x
xor ($$)

Those prototypes are not actually correct, and dying for what are real
Perl keywords is just mean.

10 years agoperlapi.pod Enhancements
Shlomi Fish [Tue, 19 Jul 2011 05:07:28 +0000 (22:07 -0700)]
perlapi.pod Enhancements

This is a patch to enhance perlapi.pod by providing Perl equivalents and
clarifying documentation where appropriate.

10 years agoFixes to allow win32 Perl to properly handle PERL5LIB.
Phil Monsen [Tue, 19 Jul 2011 03:16:55 +0000 (22:16 -0500)]
Fixes to allow win32 Perl to properly handle PERL5LIB.

On Windows Vista, 7 and 2008, the win32 API call
GetEnvironmentVariableA() does not return environment values
with string length of greater than 32766, even though
such variables are supported in the environment.

This consequently caused @INC not to be populated for
such values of PERL5LIB on those OSes, as reported in
RT #87322.

This commit reworks the code so that GetEnvironmentStrings()
is called if GetEnvironmentVariableA() indicates the requested
value is set in the environmtn.  The old fallback of consulting
the registry for variables beginning with "PERL" is retained, but
as a last-ditch fallback rather than the only recourse.

A new test file, t/win32/runenv.t has been added to validate
that the new behavior is working properly, as well as that
general environment variable handling is in accordance with
expectations, since t/run/runenv.t does not run on Win* platforms.
The new test file is essentially a non-forking clone of
t/run/runenv.t, with modifications to test cases to run properly
on Win* platforms, and with a new test case to test the new behavior.

10 years agoTransform the loop in rpeep that handles the undeferred ops
Vincent Pit [Mon, 18 Jul 2011 22:22:31 +0000 (00:22 +0200)]
Transform the loop in rpeep that handles the undeferred ops

Following commit f11ca51e41e898a77f1fd33b9e0371e69b1be73a, it is possible
to rewrite this loop to make it slightly more readable.

There should be no functional changes.

10 years agoTest for [perl #87726] (warning from diagnostics.pm under -w)
Father Chrysostomos [Wed, 6 Apr 2011 01:00:14 +0000 (18:00 -0700)]
Test for [perl #87726] (warning from diagnostics.pm under -w)

10 years agoUpgraded HTTP-Tiny to CPAN version 0.013
David Golden [Mon, 18 Jul 2011 20:54:59 +0000 (16:54 -0400)]
Upgraded HTTP-Tiny to CPAN version 0.013

0.013     2011-07-17 23:14:22 America/New_York

  [NEW FEATURES]

  - $ENV{http_proxy} support added [Claes Jakobsson]

  [OTHER]

  - Internal/private errors converted from "croak" to "die" as internal
    errors are caught by "eval"

10 years agoPerl_rpeep: undo tail recursion optimisation
David Mitchell [Mon, 18 Jul 2011 19:14:10 +0000 (20:14 +0100)]
Perl_rpeep: undo tail recursion optimisation

commit 3c78429c102e0fe2ad30c60dfe52636b6071ef19 reduced the depth
of recursion in rpeep(), by deferring recursion into branches until a bit
later (so that the recursive call to rpeep was then likely to be shallow).
However, it went one step further: when the chain of op_next's had been
exhausted in the main loop, it processed any remaining deferrred branches
in the main loop rather than recursing. All nice and efficient, but it
broke the expectation that someone who had hooked into rpeep could follow
the chain of op_nexts in each call and visit *all* ops.

This commit removes that optimisation and restores the rpeep hook
expectancy. This shouldn't have any major effect on the depth of
recursion, and its minor inefficiency doesn't really matter for a
one-time compilation-time pass.

10 years agoPL_bincompat_options was missing options that affect the interpreter struct.
Nicholas Clark [Mon, 18 Jul 2011 15:26:09 +0000 (17:26 +0200)]
PL_bincompat_options was missing options that affect the interpreter struct.

It had most, but not all, C pre-processor options that change the size of the
interpreter struct.

10 years agoIn intrpvar.h, move all the USE_LOCALE_NUMERIC variables together.
Nicholas Clark [Mon, 18 Jul 2011 11:35:33 +0000 (13:35 +0200)]
In intrpvar.h, move all the USE_LOCALE_NUMERIC variables together.

a453c1697467fe60 added PL_numeric_radix_sv at the end of the interpreter struct
to avoid breaking binary compatibility. However, as we now explicitly no longer
guarantee compatibility across major releases, there's no reason not to move it
next to the other variables related to it.

10 years agoMake Porting/corelist.pl fetch gzipped 02packages.details.txt from CPAN
Leon Brocard [Mon, 18 Jul 2011 11:13:20 +0000 (12:13 +0100)]
Make Porting/corelist.pl fetch gzipped 02packages.details.txt from CPAN

10 years agoMove Porting/corelist.pl from LWP::Simple/curl/wget to HTTP::Tiny
Leon Brocard [Mon, 18 Jul 2011 10:56:18 +0000 (11:56 +0100)]
Move Porting/corelist.pl from LWP::Simple/curl/wget to HTTP::Tiny

10 years agoEnable autodie in Porting/corelist.pl
Leon Brocard [Mon, 18 Jul 2011 10:45:26 +0000 (11:45 +0100)]
Enable autodie in Porting/corelist.pl

10 years agoActually test cop_*_label
Reini Urban [Mon, 18 Jul 2011 05:50:06 +0000 (22:50 -0700)]
Actually test cop_*_label

10 years agoFix a wrong length in APItest.xs:test_coplabel
Father Chrysostomos [Mon, 18 Jul 2011 06:02:11 +0000 (23:02 -0700)]
Fix a wrong length in APItest.xs:test_coplabel

10 years agoBring cop label testing in line with intentions.
Craig A. Berry [Sun, 17 Jul 2011 15:36:31 +0000 (10:36 -0500)]
Bring cop label testing in line with intentions.

8375c93eec supplied tests for a newly exported API but the type
declarations for the arguments and return values didn't match the
types of the API being tested.

aebc0cbee0 renamed the functions without updating the calls to
those functions in the test.

Either of these could have been easily spotted by building with
g++ (or other readily available tools) before pushing.

This aside from the controversy over whether this particular API
is the one that should be publicly exported, so this all may be
reverted and replaced before 5.16.0, but hopefully it will unbreak
the build for now.

10 years agoperlrecharclass: Nits
Karl Williamson [Sun, 17 Jul 2011 00:14:46 +0000 (18:14 -0600)]
perlrecharclass: Nits

One nit is that the only difference between [\h\v] and \s is VT; it's
not just one difference.

Another nit is that the synonyms in the table may be to either
the ASCII or full-range depending on various things.

10 years agoperlre: Nits
Karl Williamson [Sat, 16 Jul 2011 20:49:33 +0000 (14:49 -0600)]
perlre: Nits

10 years agoDual-life Search::Dict
Florian Ragwitz [Sun, 17 Jul 2011 11:57:18 +0000 (13:57 +0200)]
Dual-life Search::Dict

10 years agoUpdate Pod-Simple to CPAN version 3.18
Chris 'BinGOs' Williams [Sun, 17 Jul 2011 09:17:39 +0000 (10:17 +0100)]
Update Pod-Simple to CPAN version 3.18

  [DELTA]

  2011-07-16   David E. Wheeler <david@justatheory.org>
        * Release 3.18

        Pod::Simple now properly parses Pod files using Mac OS Classic line-
        endings (\r). Marc Green/Google Summer of Code.

        Fixed test failure in 't/search50.t when the test finds a .pod but
        the module is in a .pm. Thanks to the cpan-testers who reported
        this when the test searched for Capture::Tiny.

10 years agore-indent some tests for readability
Father Chrysostomos [Sun, 17 Jul 2011 05:26:05 +0000 (22:26 -0700)]
re-indent some tests for readability

This makes it easier to see when the skip count needs to
be updated.

10 years agoSkip tests sub_lval.t when attributes.pm cannot load
Father Chrysostomos [Sun, 17 Jul 2011 05:13:54 +0000 (22:13 -0700)]
Skip tests sub_lval.t when attributes.pm cannot load

(e.g., under miniperl)

10 years agoCorrect skip count in perlio.t
Father Chrysostomos [Sun, 17 Jul 2011 05:09:46 +0000 (22:09 -0700)]
Correct skip count in perlio.t

This makes it pass under miniperl again.

10 years agoperldelta update
Father Chrysostomos [Sun, 17 Jul 2011 04:11:01 +0000 (21:11 -0700)]
perldelta update

10 years agoporting/rmg: Expand on CoreList version bump
Father Chrysostomos [Sun, 17 Jul 2011 02:14:23 +0000 (19:14 -0700)]
porting/rmg: Expand on CoreList version bump

10 years agoRename store/fetch_cop_label as cop_*
Father Chrysostomos [Sun, 17 Jul 2011 01:42:59 +0000 (18:42 -0700)]
Rename store/fetch_cop_label as cop_*

This makes them consistent with other functions that put the basic
datum type first (like hv_*, sv_*, cophh_*).

Since fetch_cop_label is marked as experimental (M), this change
should be OK.

10 years agoExport store_cop_label for the perl compiler
Reini Urban [Tue, 21 Jun 2011 12:55:56 +0000 (07:55 -0500)]
Export store_cop_label for the perl compiler

10 years agoClean up magic_methcall docs
Father Chrysostomos [Sat, 16 Jul 2011 21:33:27 +0000 (14:33 -0700)]
Clean up magic_methcall docs

This is rather unsightly, don’t you think?

magic_methcall
        Invoke a magic method (like FETCH).
        * sv and mg are the tied thingy and the tie magic; * meth is
        the name of the method to call; * argc is the number of args
        (in addition to $self) to pass to the method;
               the args themselves are any values following the argc
        argument.  * flags:
            G_DISCARD:     invoke method with G_DISCARD flag and don’t
        return a value
            G_UNDEF_FILL:  fill the stack with argc pointers to
        PL_sv_undef.
        Returns the SV (if any) returned by the method, or NULL on
        failure.

(That’s the ‘rendered’ nroff output.)

I would have used =over/=item/=back, but autodoc.pl doesn’t seem to
like those.

10 years agoperlos2: Fix some link issues
Karl Williamson [Sat, 16 Jul 2011 19:46:48 +0000 (13:46 -0600)]
perlos2: Fix some link issues

The link to emxbind needs some explanation.  Perhaps on an os/2 system,
this command exists, but any link to it is using cpan's search which
doesn't find it

10 years agoperl5123delta: should have NAME perl5123delta
Karl Williamson [Sat, 16 Jul 2011 19:28:38 +0000 (13:28 -0600)]
perl5123delta: should have NAME perl5123delta

10 years agobasename: Change C<> to L<>
Karl Williamson [Sat, 16 Jul 2011 19:20:29 +0000 (13:20 -0600)]
basename: Change C<> to L<>

10 years agoperlbeos: change some C<>'s into F<>'s
Karl Williamson [Sat, 16 Jul 2011 18:43:28 +0000 (12:43 -0600)]
perlbeos: change some C<>'s into F<>'s

10 years agoREADME.bs2000: lowercase perlBS200 to unbreak links
Karl Williamson [Sat, 16 Jul 2011 18:31:15 +0000 (12:31 -0600)]
README.bs2000: lowercase perlBS200 to unbreak links

10 years agoperlport: remove perlapollo link
Karl Williamson [Sat, 16 Jul 2011 18:22:08 +0000 (12:22 -0600)]
perlport: remove perlapollo link

10 years agopodcheck.t: Reword instructions slightly
Karl Williamson [Wed, 6 Jul 2011 03:05:45 +0000 (21:05 -0600)]
podcheck.t: Reword instructions slightly

This is to emphasize that things may be false positives, and
instead of jumping through hoops to shut it up, all you have
to do is --regen things.

10 years agoMore apidoc entries need \n\n before =cut
Father Chrysostomos [Sat, 16 Jul 2011 19:49:47 +0000 (12:49 -0700)]
More apidoc entries need \n\n before =cut

10 years agoImprove wrapping of arguments in perlintern.pod
Father Chrysostomos [Sat, 16 Jul 2011 19:45:04 +0000 (12:45 -0700)]
Improve wrapping of arguments in perlintern.pod

Commit dee6204dc made a huge improvement to the formatting of argument
lists in perlapi (except for one pesky little entry, namely caller_cx,
that is 81 columns).

But I forgot to look through perlintern.

This just looks comical:

                       struct refcounted_he * refcounted_he_new_pv(struct refcounted_he *parent,
                                                                   const char *key,
                                                                   U32 hash,
                                                                   SV *value,
                                                                   U32 flags)

On an eighty-column terminal that wraps like this:

                       struct refcounted_he * refcounted_he_new_pv(struct refcoun
ted_he *parent,
                                                                   const char *k
ey,
                                                                   U32 hash,
                                                                   SV *value,
                                                                   U32 flags)

Ugh!!

So, for entries with individual arguments that don’t fit, this commit
wraps them like this:

                       struct refcounted_he * refcounted_he_new_pv(
                                                  struct refcounted_he *parent,
                                                  const char *key, U32 hash,
                                                  SV *value, U32 flags
                                              )

10 years agore_eval: clear lexicals in the right pad
David Mitchell [Sat, 16 Jul 2011 10:45:53 +0000 (11:45 +0100)]
re_eval: clear lexicals in the right pad

(?{...}) deliberately doesn't introduce a new scope (so that the affects of
local() can accumulate across multiple calls to the code). This also means
that the SAVEt_CLEARSVs pushed onto the save stack by lexical declarations
(i.e. (?{ my $x; ... }) also accumulate, and are only processed en-mass at
the end, on exit from the regex. Currently they are usually processed in
the wrong pad (the caller of the pattern, rather than the pads of the
individual code block(s)), leading to random misbehaviour and SEGVs.

Hence the long-standing advice to avoid lexical declarations within
re_evals.

We fix this by wrapping a pair of SAVECOMPPADs around each call to a code
block. Eventually the save stack will be a long accumulation of
SAVEt_CLEARSV's interspersed with SAVEt_COMPPAD's, that when popped
en-mass should unwind in the right order with the right pad at the right
time.

The price to pay for this is two extra additions to the save stack (which
accumulate) for each code call.

A few TODO tests in reg_eval_scope.t now pass, so I'm probably doing the
right thing ;-)

10 years agoav.c: Add blank line before =cut
Father Chrysostomos [Sat, 16 Jul 2011 05:08:25 +0000 (22:08 -0700)]
av.c: Add blank line before =cut

to fix the generated pod

10 years agoWrap argument lists in perl{api,intern}.pod
Father Chrysostomos [Sat, 16 Jul 2011 05:06:49 +0000 (22:06 -0700)]
Wrap argument lists in perl{api,intern}.pod

10 years agoAdd PL_valid_types_{IVX,NVX,PVX,RV,IV_set,NV_set} into globar.sym.
Nicholas Clark [Fri, 15 Jul 2011 18:25:48 +0000 (20:25 +0200)]
Add PL_valid_types_{IVX,NVX,PVX,RV,IV_set,NV_set} into globar.sym.

f1fb874192252653 added these 6 new global variables, but omitted to add them
to the list of exported symbols.