Skip to content

Commit

Permalink
perl5a5:pat/inherit.pat
Browse files Browse the repository at this point in the history
[random patch found in the perl-5alpha5 tarball applied separately]
  • Loading branch information
Larry Wall committed Dec 10, 1993
1 parent f511e57 commit 9bbf408
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions gv.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,15 @@ STRLEN len;
SV** svp = AvARRAY(av);
I32 items = AvFILL(av) + 1;
while (items--) {
char tmpbuf[512];
SV* sv = *svp++;
*tmpbuf = '_';
SvUPGRADE(sv, SVt_PV);
strcpy(tmpbuf+1, SvPV(sv, na));
gv = gv_fetchpv(tmpbuf,FALSE);
if (!gv || !(stash = GvHV(gv))) {
HV* basestash = fetch_stash(sv, FALSE);
if (!basestash) {
if (dowarn)
warn("Can't locate package %s for @%s'ISA",
SvPVX(sv), HvNAME(stash));
continue;
}
gv = gv_fetchmeth(stash, name, len);
gv = gv_fetchmeth(basestash, name, len);
if (gv) {
GvCV(topgv) = GvCV(gv); /* cache the CV */
GvCVGEN(topgv) = sub_generation; /* valid for now */
Expand Down

0 comments on commit 9bbf408

Please sign in to comment.