This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
13 years agoregex: Some Comment clarifications
Karl Williamson [Tue, 11 Jan 2011 02:33:40 +0000 (19:33 -0700)]
regex: Some Comment clarifications

13 years agoRemove code before declaration, inadvertently added in 447f000ef4448b16.
Nicholas Clark [Thu, 13 Jan 2011 17:31:55 +0000 (17:31 +0000)]
Remove code before declaration, inadvertently added in 447f000ef4448b16.

Code in dist/ isn't yet subject to all the warnings flags that the core C
code enjoys.

13 years agoIn Perl_write_to_stderr(), use Perl_magic_methcall() if STDERR is tied.
Nicholas Clark [Thu, 13 Jan 2011 17:04:14 +0000 (17:04 +0000)]
In Perl_write_to_stderr(), use Perl_magic_methcall() if STDERR is tied.

Add a flag G_WRITING_TO_STDERR to signal that Perl_magic_methcall() needs to
localise PL_stderrgv to NULL, and save/free temps, inside its ENTER/LEAVE
pair.

13 years agoUpdate Pod-LaTeX to CPAN version 0.59
Chris 'BinGOs' Williams [Thu, 13 Jan 2011 16:34:15 +0000 (16:34 +0000)]
Update Pod-LaTeX to CPAN version 0.59

  [DELTA]

  2011-01-04  Tim Jenness  <tjenness@cpan.org>

    ---- Version 0.59 CPAN ----

    * t/*.t: Use Test::More for tests.

    * Build.PL: Use Module::Build

    * LaTeX.pm: Fix typo in pod (RT #46887 via Dave Mitchell)

13 years agoithread_create() was relying on the stack not moving. Fix this.
Nicholas Clark [Thu, 13 Jan 2011 16:24:52 +0000 (16:24 +0000)]
ithread_create() was relying on the stack not moving. Fix this.

4cf5eae5e58faebb changed S_ithread_create() to avoid creating an AV, by
passing the thread creation arguments as pointers to a block of memory
holding SVs. Unfortunately, this inadvertently introduced a subtle bug,
because the block of memory is on the Perl stack, which can move as a side
effect of being reallocated to extend it. Hence pass in the offset on the
stack instead, read the current value of the relevant interpreter's stack
at the point of access, and copy all the SVs away before making any further
calls which might cause reallocation.

13 years agoUpdate to Win32-0.44 from CPAN
Jan Dubois [Wed, 12 Jan 2011 21:10:55 +0000 (13:10 -0800)]
Update to Win32-0.44 from CPAN

13 years agoUpdate to Win32-0.43 from CPAN
Jan Dubois [Wed, 12 Jan 2011 19:31:49 +0000 (11:31 -0800)]
Update to Win32-0.43 from CPAN

13 years agoRemove trailing blanks
Michael Stevens [Wed, 12 Jan 2011 15:46:57 +0000 (08:46 -0700)]
Remove trailing blanks

These were generating a podchecker warning

13 years agoUpdate Term-UI to CPAN version 0.24
Chris 'BinGOs' Williams [Wed, 12 Jan 2011 13:37:39 +0000 (13:37 +0000)]
Update Term-UI to CPAN version 0.24

  [DELTA]

  Changes for 0.24        Wed Jan 12 13:16:01 GMT 2011
  =====================================================
  * Skip some tests if we are not on a terminal

13 years agoUpdate IO-Compress to CPAN version 2.033
Chris 'BinGOs' Williams [Tue, 11 Jan 2011 21:34:22 +0000 (21:34 +0000)]
Update IO-Compress to CPAN version 2.033

  [DELTA]

  2.033 11 Jan 2011
      * Fixed typos & spelling errors.
        [perl# 81816]

  2.032 4 Jan 2011

      * IO::Uncompress::Base
        - An input file that had a valid header, and so would allow
          creation of the uncompression object, but was then followed by
          corrupt data would trigger an infinite loop when using the
          input line oprator.
          [RT #61915]

      * IO::Compress::Gzip
        - XFL default settings for max compression & fastest algorithm were
          the wrong way around. Thanks to Andrey Zholos for spotting this.

      * IO::Compress::Base::Common
        - Fixed precedence problem in parameter parsing code.

13 years agoFix execute permissions on the last commit
Chris 'BinGOs' Williams [Tue, 11 Jan 2011 19:24:58 +0000 (19:24 +0000)]
Fix execute permissions on the last commit

13 years agoUpdate Compress-Raw-Zlib to CPAN version 2.033
Chris 'BinGOs' Williams [Tue, 11 Jan 2011 19:23:52 +0000 (19:23 +0000)]
Update Compress-Raw-Zlib to CPAN version 2.033

  [DELTA]

  2.033 11 Jan 2011
      * Fixed typos & spelling errors.
        [perl# 81782]

  2.032 4 Jan 2011

      * Document inflateReset
        [RT #61082]

13 years agoUpdate Compress-Raw-Bzip2 to CPAN version 2.033
Chris 'BinGOs' Williams [Tue, 11 Jan 2011 16:55:36 +0000 (16:55 +0000)]
Update Compress-Raw-Bzip2 to CPAN version 2.033

  [DELTA]

  2.033 11 Jan 2011
      * Fixed typos & spelling errors.
        [perl# 81782]

  2.032 4 Jan 2011

      * No Changes

13 years agoUpdate DB_File to CPAN version 1.821
Chris 'BinGOs' Williams [Tue, 11 Jan 2011 16:12:16 +0000 (16:12 +0000)]
Update DB_File to CPAN version 1.821

  [DELTA]

  1.821 10 January 2011

   * Fixed typos & spelling errors.
     [perl #81792]

13 years agoIn S_ithread_create, reduce the amount of conditionally compiled C code.
Nicholas Clark [Tue, 11 Jan 2011 14:37:59 +0000 (14:37 +0000)]
In S_ithread_create, reduce the amount of conditionally compiled C code.

With a small amount of refactoring, compatibility across different perl
versions can be achieved with less duplication.

13 years agoembed.fnc: Silence 'no docs' message
Karl Williamson [Tue, 11 Jan 2011 03:56:50 +0000 (20:56 -0700)]
embed.fnc: Silence 'no docs' message

I mistakenly added the 'd' flag to the entry for check_utf8_print().

13 years agoCorrect the "unimplemented" message for get{host,net,proto,serv}ent aliases.
Nicholas Clark [Mon, 10 Jan 2011 15:15:25 +0000 (15:15 +0000)]
Correct the "unimplemented" message for get{host,net,proto,serv}ent aliases.

Previously, if all of gethost{byaddr,byname,ent} were unimplemented on a
platform, they would all return 'Unsupported socket function "gethostent"
called', with the analogous results for getnet{byaddr,byname,ent},
getproto{byname,bynumber,ent} and getserv{byname,byport,ent}. This bug was
introduced by change af51a00e97d5c559 - prior to this, all 12 functions would
report their own name when unimplemented.

13 years agoremove perlapollo from perl.pod
Robin Barker [Thu, 6 Jan 2011 23:03:44 +0000 (23:03 +0000)]
remove perlapollo from perl.pod

13 years agoMerge the implementations of {end,set}{gr,pw}ent with endhostent.
Nicholas Clark [Mon, 10 Jan 2011 11:54:28 +0000 (11:54 +0000)]
Merge the implementations of {end,set}{gr,pw}ent with endhostent.

Unlike set{host,net,proto,serv}ent, set{gr,pw}ent don't have stayopen
parameter, hence their "signature" is the same as the ent*ent functions.

13 years agoMerge the implementations of pp_s{host,net,proto,serv}ent.
Nicholas Clark [Mon, 10 Jan 2011 10:29:06 +0000 (10:29 +0000)]
Merge the implementations of pp_s{host,net,proto,serv}ent.

13 years agoMerge the implementations of pp_e{host,net,proto,serv}ent.
Nicholas Clark [Mon, 10 Jan 2011 10:12:10 +0000 (10:12 +0000)]
Merge the implementations of pp_e{host,net,proto,serv}ent.

PL_op_desc[] rather than PL_op_name(), as the OPs are internally named e*ent,
but implement the ent*ent functions, and when unimplemented report themselves
using the function name. No need for OP_DESC(), as the switch statement means
that we can't encounter OP_CUSTOM.

13 years agonewSVpvf_nocontext only visible with threads, fix for non-threaded
Tony Cook [Mon, 10 Jan 2011 07:50:59 +0000 (18:50 +1100)]
newSVpvf_nocontext only visible with threads, fix for non-threaded

Ideally it would be available, calling Perl_newSVpvf_nocontext
directly is an alternative, but the comment in sv.c makes that
questionable.

Since the function being called from already has a context, use it.

13 years agoutf8.c: Renumber cases in switch
Karl Williamson [Mon, 10 Jan 2011 01:47:18 +0000 (18:47 -0700)]
utf8.c: Renumber cases in switch

This tidies things up after several of them were removed.

13 years agoutf8.c: Change to warn_d in two places
Karl Williamson [Mon, 10 Jan 2011 01:39:05 +0000 (18:39 -0700)]
utf8.c: Change to warn_d in two places

The routines that these call used the warn_d forms; so these should as well.

13 years agoutf8.h: remove wrong, no-longer used #define
Karl Williamson [Mon, 10 Jan 2011 01:36:10 +0000 (18:36 -0700)]
utf8.h: remove wrong, no-longer used #define

UNICODE_ILLEGAL only referred to one of 66 code points in the same class.  And
they aren't illegal except in certain circumstances.  New #defines have taken
over the use this formerly had, so it is now meaningless.

13 years agomktables: Now can test surrogates and nonchars
Karl Williamson [Mon, 10 Jan 2011 01:34:43 +0000 (18:34 -0700)]
mktables: Now can test surrogates and nonchars

This is a result of their now being more accepted in core

13 years agoDocument the flip of problematic code points handling
Karl Williamson [Mon, 10 Jan 2011 01:33:00 +0000 (18:33 -0700)]
Document the flip of problematic code points handling

13 years agoAdd warnings for use of problematic code points
Karl Williamson [Sun, 9 Jan 2011 22:33:28 +0000 (15:33 -0700)]
Add warnings for use of problematic code points

The non-Unicode code points have no Unicode semantics, so applying operations
such as casing on them warns.

This patch also includes the changes to test the warnings added by recent
commits for handling the surrogates and above-Unicode code points

13 years agoutf8.c: Whitespace only
Karl Williamson [Sun, 9 Jan 2011 22:30:08 +0000 (15:30 -0700)]
utf8.c: Whitespace only

outdent in response to the enclosing block being removed

13 years agoop.c: Remove unnecessary flag
Karl Williamson [Sun, 9 Jan 2011 22:28:29 +0000 (15:28 -0700)]
op.c: Remove unnecessary flag

This flag no longer does anything

13 years agoutf8.c(): Default to allow problematic code points
Karl Williamson [Sun, 9 Jan 2011 20:50:18 +0000 (13:50 -0700)]
utf8.c(): Default to allow problematic code points

Surrogates, non-character code points, and code points that aren't in Unicode
are now allowed by default, instead of having to specify a flag to allow them.
(Most code did specify those flags anyway.)

This affects uvuni_to_utf8_flags(), utf8n_to_uvuni() and various routines that
are specialized interfaces to them.

Now there is a new set of flags to disallow those code points.  Further, all 66
of the non-character code points are known about and handled consistently,
instead of just U+FFFF.

Code that requires these code points to be forbidden will have to change to use
the new flags.  I have looked at all the (few) instances in CPAN where these
routines are used, and the only one I found that appears to have need to do
this, Encode, has already been patched to accommodate this change.  Of course,
I may have overlooked some subtleties.

13 years agoutf8.c: Nits in pod
Karl Williamson [Sun, 9 Jan 2011 20:33:21 +0000 (13:33 -0700)]
utf8.c: Nits in pod

13 years agoAdd check_utf8_print()
Karl Williamson [Sun, 9 Jan 2011 19:37:03 +0000 (12:37 -0700)]
Add check_utf8_print()

This new function looks for problematic code points on output, and warns if any
are found, returning FALSE as well.

What it warns about may change, so is marked as experimental.

13 years agoperldiag.pod: Remove more format precisions
Karl Williamson [Sun, 9 Jan 2011 16:14:00 +0000 (09:14 -0700)]
perldiag.pod: Remove more format precisions

Commit 78d0fecf645563eb571499ade0590a1389a977a8 missed several printf formats.

13 years agodiag.t: Change so a fixed TODO passes
Karl Williamson [Sun, 9 Jan 2011 16:09:54 +0000 (09:09 -0700)]
diag.t: Change so a fixed TODO passes

Commit 9c3e8e01b899ff41442e59a8d18532c177d1bdee changed diag.t so that it now
checks if a TODO passes, but it caused the tests to fail.  This causes a TODO
passed instead.

13 years agoutf8.h: white space, add comments
Karl Williamson [Thu, 6 Jan 2011 19:41:46 +0000 (12:41 -0700)]
utf8.h: white space, add comments

13 years agoupdate Module::CoreList for v5.12.3
Ricardo Signes [Sun, 9 Jan 2011 19:22:31 +0000 (14:22 -0500)]
update Module::CoreList for v5.12.3

13 years agoGenerate "Unsupported socket function" stubs using PL_ppaddr.
Nicholas Clark [Sat, 8 Jan 2011 15:56:22 +0000 (15:56 +0000)]
Generate "Unsupported socket function" stubs using PL_ppaddr.

Instead of having each socket op conditionally compile as either the
implementation or a DIE() depending on #HAS_SOCKET

1: remove the conditional code from the ops themselves
2: only compile the ops if HAS_SOCKET is defined
3: general conditional code for the intialisation of PL_ppaddr - as appropriate
   either the ops, or Perl_unimplemented_op
4: Amend Perl_unimplemented_op to generate the appropriate DIE() for socket
   ops (ie not the "panic"... message)

Whilst this complicates the support code in regen/opcode.pl, it's already a
net saving of 5 lines in the C code.

13 years agoRename pp_send to pp_syswrite, making send an alias for syswrite.
Nicholas Clark [Sat, 8 Jan 2011 13:49:21 +0000 (13:49 +0000)]
Rename pp_send to pp_syswrite, making send an alias for syswrite.

Previously syswrite was an alias for send. However, syswrite is always
available, whereas send is not implemented if HAS_SOCKET is not defined.

13 years agoIn opcode.h, use the alias macros in PL_ppaddr[]
Nicholas Clark [Sat, 8 Jan 2011 11:11:52 +0000 (11:11 +0000)]
In opcode.h, use the alias macros in PL_ppaddr[]

For OPs that share implementations, use #define aliases for the "original"
names in PL_ppaddr[], instead of having regen/opcode.pl replace them with
the name of the implementing OP body. Whilst this initially adds another layer
of indirection, it will give more flexibility where conditional compilation of
OPs is determined by the feature macros in config.h

13 years agoRemove commented-out code from regen/opcode.pl
Nicholas Clark [Sun, 9 Jan 2011 11:45:00 +0000 (11:45 +0000)]
Remove commented-out code from regen/opcode.pl

13 years agoregen/opcode.pl should only generate prototypes for pp_* functions that exist.
Nicholas Clark [Sun, 9 Jan 2011 11:27:19 +0000 (11:27 +0000)]
regen/opcode.pl should only generate prototypes for pp_* functions that exist.

It now generates prototypes for all functions that implement OPs. Hence
Perl_unimplemented_op no longer needs a special-case prototype. As it is now
generating a prototype for Perl_do_kv, no need for regen/embed.pl to duplicate
this. Convert the last two users of the macro do_kv() to Perl_do_kv(aTHX).

13 years agoGenerate pp_* prototypes in pp_proto.h, and remove pp.sym
Nicholas Clark [Sun, 9 Jan 2011 10:54:58 +0000 (10:54 +0000)]
Generate pp_* prototypes in pp_proto.h, and remove pp.sym

Eliminate the #define pp_foo Perl_pp_foo(pTHX) macros, and update the 13
locations that relied on them.

regen/opcode.pl now generates prototypes for the PP functions directly, into
pp_proto.h. It no longer writes pp.sym, and regen/embed.pl no longer reads
this, removing the only ordering dependency in the regen scripts. opcode.pl
is now responsible for prototypes for pp_* functions. (embed.pl remains
responsible for ck_* functions, reading from regen/opcodes)

13 years agoembed.pl can read the names of ck_* functions direct from regen/opcodes
Nicholas Clark [Sun, 9 Jan 2011 10:08:29 +0000 (10:08 +0000)]
embed.pl can read the names of ck_* functions direct from regen/opcodes

Previously regen/opcode.pl wrote them to pp.sym for regen/embed.pl to read.

13 years agoExtract the opcode data from regen/opcode.pl into regen/opcodes
Nicholas Clark [Sun, 9 Jan 2011 09:38:11 +0000 (09:38 +0000)]
Extract the opcode data from regen/opcode.pl into regen/opcodes

Whilst it is possible to open regen/opcode.pl and parse it to find the __END__
token, it's not the cleanest approach.

13 years agoReplace OP stubs in mathoms.c with #define aliases in opcode.h
Nicholas Clark [Sun, 2 Jan 2011 19:13:12 +0000 (19:13 +0000)]
Replace OP stubs in mathoms.c with #define aliases in opcode.h

External code that references OPs by name will still link (and work).
Unlike the other compatibility functions in mathoms.c, the OP stubs were simply
making calls onwards to their replacements, so simply taking up space without
adding anything.

13 years agoUpdate CPANPLUS to CPAN version 0.9011
Chris 'BinGOs' Williams [Sun, 9 Jan 2011 00:16:46 +0000 (00:16 +0000)]
Update CPANPLUS to CPAN version 0.9011

  [DELTA]

  Changes for 0.9011      Fri Jan  7 22:01:56 2011
  ================================================
  * Remove reporting $! after make test fails. It is misleading
    in test reports
  * Don't unset PERL_MM_USE_DEFAULT if it is already set
    in cpan2dist
  * Apply blead patches from Peter Acklam

13 years agoUpdate CPANPLUS-Dist-Build to CPAN version 0.52
Chris 'BinGOs' Williams [Sun, 9 Jan 2011 00:02:26 +0000 (00:02 +0000)]
Update CPANPLUS-Dist-Build to CPAN version 0.52

  [DELTA]

  0.52 Fri Jan  7 22:23:03 GMT 2011
    - Apply blead patch from Peter Acklam

13 years agoUpdate Term-UI to CPAN version 0.22
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 23:38:05 +0000 (23:38 +0000)]
Update Term-UI to CPAN version 0.22

  [DELTA]

  Changes for 0.22        Fri Jan  7 21:55:38 GMT  2011
  =====================================================
  * Apply blead patch from Peter Acklam

13 years agoUpdate Params-Check to CPAN version 0.28
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 23:23:45 +0000 (23:23 +0000)]
Update Params-Check to CPAN version 0.28

  [DELTA]

  Changes for 0.28    Fri Jan  7 21:52:28 2011
  ============================================
  * Apply blead patch from Peter Acklam

13 years agodiag.t: Remove printf conversion modifiers from msgs
Karl Williamson [Sat, 8 Jan 2011 23:04:24 +0000 (16:04 -0700)]
diag.t: Remove printf conversion modifiers from msgs

The user doesn't need to know that the message was formatted with, eg., and
'ld' vs just a 'd'

13 years agodiag.t: Check that TODOs haven't been done
Karl Williamson [Sat, 8 Jan 2011 22:43:55 +0000 (15:43 -0700)]
diag.t: Check that TODOs haven't been done

If a TODO diagnostic message is added to perldiag.pod, this patch makes
sure that it warns to remove the TODO.

13 years agodiag.t: Remove TODOs that have been done
Karl Williamson [Sat, 8 Jan 2011 22:40:12 +0000 (15:40 -0700)]
diag.t: Remove TODOs that have been done

13 years agodiag.t: Ignore formatting precisions in messages
Karl Williamson [Sat, 8 Jan 2011 22:33:54 +0000 (15:33 -0700)]
diag.t: Ignore formatting precisions in messages

Neither the user looking up an error message, nor a developer adding it to
perldiag.pod cares about the particular formatting things like whether it has
leading zeros or a field width.  So remove them from both the messages in the
pod and the messages diag.t extracts from the Perl source

13 years agodiag.t: Add checks that pod msgs have severity
Karl Williamson [Sat, 8 Jan 2011 22:10:08 +0000 (15:10 -0700)]
diag.t: Add checks that pod msgs have severity

Also, there were errors in the processing of messages and syntax checking for
message class, such as not accepting digits, so the 'utf8' class was not
accepted.

13 years agodiag.t: Use variable for pod name
Karl Williamson [Sat, 8 Jan 2011 22:07:51 +0000 (15:07 -0700)]
diag.t: Use variable for pod name

13 years agoperldiag.pod: Add missing message severities
Karl Williamson [Sat, 8 Jan 2011 21:44:05 +0000 (14:44 -0700)]
perldiag.pod: Add missing message severities

13 years agoUpdate Object-Accessor to CPAN version 0.38
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 23:09:04 +0000 (23:09 +0000)]
Update Object-Accessor to CPAN version 0.38

  [DELTA]

  Changes for 0.38    Fri Jan  7 21:47:51 GMT  2011
  =================================================
  * Apply blead patch from Peter Acklam

13 years agoUpdate Module-Load-Conditional to CPAN version 0.40
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 22:50:48 +0000 (22:50 +0000)]
Update Module-Load-Conditional to CPAN version 0.40

  [DELTA]

  Changes for 0.40    Fri Jan  7 21:45:01 GMT 2011
  =================================================
  * Apply blead patch from Peter Acklam

13 years agoRemove references to pp.sym from makedef.pl, unused since 2000.
Nicholas Clark [Sat, 8 Jan 2011 20:08:51 +0000 (20:08 +0000)]
Remove references to pp.sym from makedef.pl, unused since 2000.

954c1994944eafa7 removed the only user of pp.sym, but not the code to
manipulate the filename.

13 years agoRemove MacOS (classic) code from makedef.pl.
Nicholas Clark [Sat, 8 Jan 2011 19:53:46 +0000 (19:53 +0000)]
Remove MacOS (classic) code from makedef.pl.

13 years agoIn pp_send, assign to io earlier, and use op_type instead of PL_op->op_type.
Nicholas Clark [Sat, 8 Jan 2011 15:38:16 +0000 (15:38 +0000)]
In pp_send, assign to io earlier, and use op_type instead of PL_op->op_type.

On this platform, this doesn't change the size of the object code, suggesting
that there are all transformations that the optimiser had already spotted.
However, the code is now clearer for humans.

13 years agoIn pp_send, transpose the blocks for OP_SYSWRITE and OP_SEND
Nicholas Clark [Sat, 8 Jan 2011 14:29:08 +0000 (14:29 +0000)]
In pp_send, transpose the blocks for OP_SYSWRITE and OP_SEND

13 years agoUpdate Log-Message to CPAN version 0.04
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 18:51:36 +0000 (18:51 +0000)]
Update Log-Message to CPAN version 0.04

  [DELTA]

  Changes for 0.04    Fri Jan  7 21:41:00 GMT 2011
  =================================================
  * Apply blead patch from Peter Acklam

13 years agoUpdate IPC-Cmd to CPAN version 0.68
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 14:43:40 +0000 (14:43 +0000)]
Update IPC-Cmd to CPAN version 0.68

  [DELTA]

  Changes for 0.68    Fri Jan  7 21:08:58 GMT 2011
  =================================================
  * Apply blead patch from Peter Acklam

13 years agotest append to SV initialized by folded constant
Gerard Goossen [Tue, 21 Dec 2010 13:08:28 +0000 (14:08 +0100)]
test append to SV initialized by folded constant

13 years agoadd a taint test to catch codegen bug
Gerard Goossen [Tue, 21 Dec 2010 12:57:34 +0000 (13:57 +0100)]
add a taint test to catch codegen bug

New test covers something previously done wrong in the experimental
code-generation patch.

13 years agoadd test for split without a pattern
Gerard Goossen [Tue, 21 Dec 2010 12:55:19 +0000 (13:55 +0100)]
add test for split without a pattern

13 years agomore while tests
Gerard Goossen [Thu, 16 Dec 2010 21:12:33 +0000 (22:12 +0100)]
more while tests

Add some while tests, about the context of the last statement in a block
and about reinitializaiton of lexical variables.

13 years agomodernise t/cmd/while.t
Gerard Goossen [Thu, 12 Nov 2009 11:42:37 +0000 (12:42 +0100)]
modernise t/cmd/while.t

Add t/base/while.t testing the basic of a while loop with minimal
dependencies.  Change t/cmd/while.t into a non-base test using "test.pl".

(Includes bugfixes by Zefram over Gerard's original patch.)

13 years agoUpdate File-Fetch to CPAN version 0.30
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 13:06:28 +0000 (13:06 +0000)]
Update File-Fetch to CPAN version 0.30

  [DELTA]

  Changes for 0.30        Fri Jan  7 21:00:27 2011
  =================================================
  * Apply blead patches from Peter Acklam

13 years agoUpdate Archive-Tar to CPAN version 1.76
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 11:59:56 +0000 (11:59 +0000)]
Update Archive-Tar to CPAN version 1.76

  [DELTA]

  * important changes in version 1.76 07/01/2011
  - upstream blead patches from Peter Acklam

13 years agoUpdate Archive-Extract to CPAN version 0.48
Chris 'BinGOs' Williams [Sat, 8 Jan 2011 11:56:25 +0000 (11:56 +0000)]
Update Archive-Extract to CPAN version 0.48

  [DELTA]

  Changes for 0.48    Fri Jan  7 20:45:37 2011
  ============================================
  * upstream blead patches from Peter Acklam

13 years agoutf8_heavy.pl: Remove unused variable declaration
Michael Parker [Fri, 7 Jan 2011 17:38:07 +0000 (10:38 -0700)]
utf8_heavy.pl: Remove unused variable declaration

13 years agoUpdate the policy on doc patches to maint
Jesse Vincent [Fri, 7 Jan 2011 16:14:29 +0000 (00:14 +0800)]
Update the policy on doc patches to maint

13 years agoIn Perl_swash_init(), use call_sv() directly instead of call_method().
Nicholas Clark [Fri, 7 Jan 2011 15:46:57 +0000 (15:46 +0000)]
In Perl_swash_init(), use call_sv() directly instead of call_method().

This gives a small space saving on this platform, likely due to code being
shared with the other call to call_sv(). (It also removes a level of function
call at runtime.)

13 years agoIn Perl_swash_init(), reuse any non-NULL return value from Perl_gv_fetchmeth().
Nicholas Clark [Fri, 7 Jan 2011 14:39:58 +0000 (14:39 +0000)]
In Perl_swash_init(), reuse any non-NULL return value from Perl_gv_fetchmeth().

Historically Perl_swash_init() called Perl_gv_fetchmeth() simply to determine
if the requested package was loaded, and if not, attempt to load it. However,
Perl_gv_fetchmeth() is actually making the same lookup as Perl_call_method()
uses to get a pointer to the relevant method. Hence if we get a non-NULL
return from Perl_gv_fetchmeth() we can pass it directly to Perl_call_sv(), and
save duplicated work.

13 years agoLast typo missed in regen
H.Merijn Brand [Fri, 7 Jan 2011 13:34:09 +0000 (14:34 +0100)]
Last typo missed in regen

13 years agoRe-generated Configure after the spell-check fixes from Peter J. Acklam
H.Merijn Brand [Fri, 7 Jan 2011 13:31:29 +0000 (14:31 +0100)]
Re-generated Configure after the spell-check fixes from Peter J. Acklam

1. re-generate Configure and config_h.SH
2. update Porting/config_H, which was very outdated

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
13 years agoRun make regen after 486ec47ab73770ab updated regcomp.sym.
Nicholas Clark [Fri, 7 Jan 2011 12:50:18 +0000 (12:50 +0000)]
Run make regen after 486ec47ab73770ab updated regcomp.sym.

13 years agoFix typos (spelling errors) in hints/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:12:35 +0000 (23:12 -0800)]
Fix typos (spelling errors) in hints/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81884]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81884 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Abigail [Fri, 7 Jan 2011 12:05:25 +0000 (13:05 +0100)]
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead

13 years agoFix typos (spelling errors) in utils/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:14:33 +0000 (23:14 -0800)]
Fix typos (spelling errors) in utils/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81914]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81914 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in qnx/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:14:10 +0000 (23:14 -0800)]
Fix typos (spelling errors) in qnx/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81908]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81908 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in Cross/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:11:55 +0000 (23:11 -0800)]
Fix typos (spelling errors) in Cross/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81880]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81880 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in cpan/Params-Check/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:10:05 +0000 (23:10 -0800)]
Fix typos (spelling errors) in cpan/Params-Check/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81844]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81844 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/Archive*.
Peter J. Acklam [Fri, 7 Jan 2011 07:06:01 +0000 (23:06 -0800)]
Fix typos (spelling errors) in cpan/Archive*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81776]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81776 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/Term-UI/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:10:58 +0000 (23:10 -0800)]
Fix typos (spelling errors) in cpan/Term-UI/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81862]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81862 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/Object-Accessor/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:10:00 +0000 (23:10 -0800)]
Fix typos (spelling errors) in cpan/Object-Accessor/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81842]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81842 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/Module-Load-Conditional/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:09:46 +0000 (23:09 -0800)]
Fix typos (spelling errors) in cpan/Module-Load-Conditional/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81836]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81836 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/Log-Message/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:09:21 +0000 (23:09 -0800)]
Fix typos (spelling errors) in cpan/Log-Message/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81828]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81828 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/IPC-Cmd/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:08:43 +0000 (23:08 -0800)]
Fix typos (spelling errors) in cpan/IPC-Cmd/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81814]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81814 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/File-Fetch/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:08:02 +0000 (23:08 -0800)]
Fix typos (spelling errors) in cpan/File-Fetch/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81802]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81802 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/CPANPLUS-Dist-Build/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:07:05 +0000 (23:07 -0800)]
Fix typos (spelling errors) in cpan/CPANPLUS-Dist-Build/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81790]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81790 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in cpan/CPANPLUS/*.
Peter J. Acklam [Fri, 7 Jan 2011 07:07:02 +0000 (23:07 -0800)]
Fix typos (spelling errors) in cpan/CPANPLUS/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81788]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81788 >

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoFix typos (spelling errors) in Porting/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:14:14 +0000 (23:14 -0800)]
Fix typos (spelling errors) in Porting/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81910]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81910 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in os2/*.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:13:20 +0000 (23:13 -0800)]
Fix typos (spelling errors) in os2/*.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81900]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81900 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in install files.
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:12:36 +0000 (23:12 -0800)]
Fix typos (spelling errors) in install files.

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81886]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81886 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoFix typos (spelling errors) in lib/*
Peter J. Acklam) (via RT [Fri, 7 Jan 2011 07:12:59 +0000 (23:12 -0800)]
Fix typos (spelling errors) in lib/*

# New Ticket Created by  (Peter J. Acklam)
# Please include the string:  [perl #81890]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81890 >

Signed-off-by: Abigail <abigail@abigail.be>
13 years agoMerge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead
Abigail [Fri, 7 Jan 2011 10:31:48 +0000 (11:31 +0100)]
Merge branch 'blead' of ssh://perl5.git.perl.org/gitroot/perl into blead