This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a56613a
)
op.c:newMYSUB: inline var used only once
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 8 Jul 2012 06:11:23 +0000
(23:11 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 16 Sep 2012 05:45:00 +0000
(22:45 -0700)
as of the previous commit
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
0272f33
..
705374b
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-6871,7
+6871,6
@@
Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
register CV *cv = NULL;
register CV *compcv = PL_compcv;
SV *const_sv;
- const bool ec = PL_parser && PL_parser->error_count;
PADNAME *name;
PERL_ARGS_ASSERT_NEWMYSUB;
@@
-6904,7
+6903,7
@@
Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
SAVEFREEOP(attrs);
}
- if (
ec
) {
+ if (
PL_parser && PL_parser->error_count
) {
op_free(block);
goto done;
}