[perl.git] branch blead, updated. v5.15.7-92-g34daab0

2012-01-27 Thread Rafael Garcia-Suarez
In perl.git, the branch blead has been updated

http://perl5.git.perl.org/perl.git/commitdiff/34daab0fa047b2849547189ae5f48b276658af01?hp=69a8a234c3a2ac32565c2a341127dbd2cbf56025

- Log -
commit 34daab0fa047b2849547189ae5f48b276658af01
Author: Rafael Garcia-Suarez r...@consttype.org
Date:   Fri Jan 27 10:23:12 2012 +0100

Allow prototypes (_@) and (_%)

Those will be equivalent to (_;@) and (_;%) ; since perlsub already
states that the semicolon is redundant before @ and % this is in
line with the existing documentation.

M   op.c
M   pod/perlsub.pod
M   t/comp/uproto.t
M   toke.c

commit cc2cb33e7c6571bb162ba54eeb5765e0edcd76d1
Author: Rafael Garcia-Suarez r...@consttype.org
Date:   Fri Jan 27 09:59:54 2012 +0100

Show test names in output

M   t/comp/uproto.t
---

Summary of changes:
 op.c|2 +-
 pod/perlsub.pod |6 +++---
 t/comp/uproto.t |   27 +--
 toke.c  |2 +-
 4 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/op.c b/op.c
index 30cc7f8..479d2ba 100644
--- a/op.c
+++ b/op.c
@@ -9145,7 +9145,7 @@ Perl_ck_entersub_args_proto(pTHX_ OP *entersubop, GV 
*namegv, SV *protosv)
continue;
case '_':
/* _ must be at the end */
-   if (proto[1]  proto[1] != ';')
+   if (proto[1]  !strchr(;@%, proto[1]))
goto oops;
case '$':
proto++;
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 1add95f..9d6fd25 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1136,9 +1136,9 @@ is of an acceptable type.
 A semicolon (C;) separates mandatory arguments from optional arguments.
 It is redundant before C@ or C%, which gobble up everything else.
 
-As the last character of a prototype, or just before a semicolon, you can
-use C_ in place of C$: if this argument is not provided, C$_ will be
-used instead.
+As the last character of a prototype, or just before a semicolon, a C@
+or a C%, you can use C_ in place of C$: if this argument is not
+provided, C$_ will be used instead.
 
 Note how the last three examples in the table above are treated
 specially by the parser.  Cmygrep() is parsed as a true list
diff --git a/t/comp/uproto.t b/t/comp/uproto.t
index 6d251da..d3ad19f 100644
--- a/t/comp/uproto.t
+++ b/t/comp/uproto.t
@@ -1,6 +1,6 @@
 #!perl
 
-print 1..39\n;
+print 1..43\n;
 my $test = 0;
 
 sub failed {
@@ -19,10 +19,10 @@ sub failed {
 }
 
 sub like {
-my ($got, $pattern) = @_;
+my ($got, $pattern, $name) = @_;
 $test = $test + 1;
 if (defined $got  $got =~ $pattern) {
-   print ok $test\n;
+   print ok $test - $name\n;
# Principle of least surprise - maintain the expected interface, even
# though we aren't using it here (yet).
return 1;
@@ -31,17 +31,17 @@ sub like {
 }
 
 sub is {
-my ($got, $expect) = @_;
+my ($got, $expect, $name) = @_;
 $test = $test + 1;
 if (defined $expect) {
if (defined $got  $got eq $expect) {
-   print ok $test\n;
+   print ok $test - $name\n;
return 1;
}
failed($got, '$expect', $name);
 } else {
if (!defined $got) {
-   print ok $test\n;
+   print ok $test - $name\n;
return 1;
}
failed($got, 'undef', $name);
@@ -120,6 +120,21 @@ $expected = $_ = mydir; mymkdir();
 mymkdir($expected = foo);
 $expected = foo 493; mymkdir foo = 0755;
 
+sub mylist (_@) { is(@_, $expected, mylist) }
+$expected = foo;
+$_ = foo;
+mylist();
+$expected = 10 11 12 13;
+mylist(10, 11 .. 13);
+
+sub mylist2 (_%) { is(@_, $expected, mylist2) }
+$expected = foo;
+$_ = foo;
+mylist2();
+$expected = 10 a 1;
+my %hash = (a = 1);
+mylist2(10, %hash);
+
 # $_ says modifiable, it's not passed by copy
 
 sub double(_) { $_[0] *= 2 }
diff --git a/toke.c b/toke.c
index baa21d6..7893eb4 100644
--- a/toke.c
+++ b/toke.c
@@ -8150,7 +8150,7 @@ Perl_yylex(pTHX)
}
else {
if ( underscore ) {
-   if ( *p != ';' )
+   if ( !strchr(;@%, *p) )
bad_proto = TRUE;
underscore = FALSE;
}

--
Perl5 Master Repository


[perl.git] branch blead, updated. v5.15.7-93-gd9298c1

2012-01-27 Thread H.Merijn Brand
In perl.git, the branch blead has been updated

http://perl5.git.perl.org/perl.git/commitdiff/d9298c1a4c17b19f029937b286909a8af2862653?hp=34daab0fa047b2849547189ae5f48b276658af01

- Log -
commit d9298c1a4c17b19f029937b286909a8af2862653
Author: H.Merijn Brand h.m.br...@xs4all.nl
Date:   Fri Jan 27 16:09:31 2012 +0100

mymalloc isn't thread safe (rurban)
---

Summary of changes:
 Configure |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Configure b/Configure
index 9abfe64..0d712ee 100755
--- a/Configure
+++ b/Configure
@@ -28,7 +28,7 @@
 # See Porting/pumpkin.pod for more information on metaconfig.
 #
 
-# Generated on Mon Jan  9 18:25:32 CET 2012 [metaconfig 3.5 PL0]
+# Generated on Fri Jan 27 15:48:54 CET 2012 [metaconfig 3.5 PL0]
 # (with additional metaconfig patches by perl...@perl.org)
 
 cat c1$$ EOF
@@ -6774,6 +6774,7 @@ case $usemymalloc in
4) dflt='y' ;;
*) dflt='n' ;;
esac
+   if test $useithreads = $define; then dflt='n'; fi
;;
 esac
 rp=Do you wish to attempt to use the malloc that comes with $package?

--
Perl5 Master Repository


[metaconfig.git] branch master, updated. 9d1a8cfee64849924e0e561e93eadcb6db1b7d93

2012-01-27 Thread H.Merijn Brand
In metaconfig.git, the branch master has been updated

http://perl5.git.perl.org/metaconfig.git/commitdiff/9d1a8cfee64849924e0e561e93eadcb6db1b7d93?hp=72881529a31d1f08ca2b494bc5a0c2ed56b94cf2

- Log -
commit 9d1a8cfee64849924e0e561e93eadcb6db1b7d93
Author: H.Merijn Brand mer...@lx09.procura.nl
Date:   Fri Jan 27 16:10:11 2012 +0100

mymalloc isn't threadsafe (rurban)
---

Summary of changes:
 U/modified/mallocsrc.U |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/U/modified/mallocsrc.U b/U/modified/mallocsrc.U
index 1bb7486..38d2663 100644
--- a/U/modified/mallocsrc.U
+++ b/U/modified/mallocsrc.U
@@ -22,7 +22,7 @@
 ?MAKE:mallocsrc mallocobj usemallocwrap usemymalloc malloctype d_mymalloc \
freetype: Myread \
Oldconfig package Guess Setvar rm cat +cc +ccflags Findhdr \
-   i_malloc i_stdlib sed libs _o ptrsize
+   i_malloc i_stdlib sed libs _o ptrsize useithreads
 ?MAKE: -pick add $@ %
 ?X: Put near top so that other tests don't erroneously include
 ?X: -lmalloc.  --AD  22 June 1998
@@ -117,6 +117,7 @@ case $usemymalloc in
4) dflt='y' ;;
*) dflt='n' ;;
esac
+   if test $useithreads = $define; then dflt='n'; fi
;;
 esac
 rp=Do you wish to attempt to use the malloc that comes with $package?

--
perl5 metaconfig repository


[perl.git] branch smoke-me/disable_anch_mbol, created. v5.15.7-94-g96420dc

2012-01-27 Thread Yves Orton
In perl.git, the branch smoke-me/disable_anch_mbol has been created

http://perl5.git.perl.org/perl.git/commitdiff/96420dc228f084e145227e39f9baaa893520e6cf?hp=

at  96420dc228f084e145227e39f9baaa893520e6cf (commit)

- Log -
commit 96420dc228f084e145227e39f9baaa893520e6cf
Author: Yves Orton yves.or...@booking.com
Date:   Fri Jan 27 16:46:11 2012 +0100

disable ANCH_MBOL optimisation
---

--
Perl5 Master Repository