Skip to content

Commit

Permalink
[pad] pad_find_my_symbol_sv - replace usage of pad_findmy_sv
Browse files Browse the repository at this point in the history
  • Loading branch information
Branislav Zahradník committed Dec 10, 2024
1 parent 8dc2fc1 commit 7f7f7c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,11 @@ static bool S_cv_is_builtin(pTHX_ CV *cv)
void
Perl_import_builtin_bundle(pTHX_ U16 ver)
{
SV *ampname = sv_newmortal();

for(int i = 0; builtins[i].name; i++) {
sv_setpvf(ampname, "&%s", builtins[i].name);

bool want = (builtins[i].since_ver <= ver);

bool got = false;
PADOFFSET off = pad_findmy_sv(ampname, 0);
PADOFFSET off = pad_find_my_symbol_pv (Perl_Symbol_Table_Code, builtins[i].name, 0);
CV *cv;
if(off != NOT_IN_PAD &&
SvTYPE((cv = (CV *)PL_curpad[off])) == SVt_PVCV &&
Expand Down

0 comments on commit 7f7f7c7

Please sign in to comment.