projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7abbf6
)
universal.c: ->can UTF8 cleanup.
author
Brian Fraser
<fraserbn@gmail.com>
Wed, 6 Jul 2011 11:54:11 +0000
(08:54 -0300)
committer
Father Chrysostomos
<sprout@cpan.org>
Thu, 6 Oct 2011 20:01:09 +0000
(13:01 -0700)
universal.c
patch
|
blob
|
history
diff --git
a/universal.c
b/universal.c
index
6ba565d
..
314af37
100644
(file)
--- a/
universal.c
+++ b/
universal.c
@@
-295,7
+295,6
@@
XS(XS_UNIVERSAL_can)
dVAR;
dXSARGS;
SV *sv;
- const char *name;
SV *rv;
HV *pkg = NULL;
@@
-310,7
+309,6
@@
XS(XS_UNIVERSAL_can)
|| (SvGMAGICAL(sv) && SvPOKp(sv) && SvCUR(sv))))
XSRETURN_UNDEF;
- name = SvPV_nolen_const(ST(1));
rv = &PL_sv_undef;
if (SvROK(sv)) {
@@
-323,7
+321,7
@@
XS(XS_UNIVERSAL_can)
}
if (pkg) {
- GV * const gv = gv_fetchmethod_
autoload(pkg, name, FALSE
);
+ GV * const gv = gv_fetchmethod_
sv_flags(pkg, ST(1), 0
);
if (gv && isGV(gv))
rv = sv_2mortal(newRV(MUTABLE_SV(GvCV(gv))));
}