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:
c0dea56
)
ext/B: use strEQs() and strEQ() in expressions
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 08:49:40 +0000
(10:49 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:00 +0000
(13:28 +0200)
ext/B/B.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B.xs
b/ext/B/B.xs
index
0490352
..
0352901
100644
(file)
--- a/
ext/B/B.xs
+++ b/
ext/B/B.xs
@@
-894,11
+894,11
@@
CODE:
int i;
IV result = -1;
ST(0) = sv_newmortal();
- if (str
ncmp(name,"pp_",3) == 0
)
+ if (str
EQs(name,"pp_")
)
name += 3;
for (i = 0; i < PL_maxo; i++)
{
- if (str
cmp(name, PL_op_name[i]) == 0
)
+ if (str
EQ(name, PL_op_name[i])
)
{
result = i;
break;