Skip to content

Commit

Permalink
Remove mathoms stub Perl_save_freepv()
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Oct 21, 2024
1 parent f6101c3 commit eec1379
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion embed.fnc
Original file line number Diff line number Diff line change
Expand Up @@ -2913,7 +2913,7 @@ Cp |void |save_destructor_x \
|NULLOK void *p
: Used in SAVEFREOP(), used in op.c, pp_ctl.c
CMbp |void |save_freeop |NULLOK OP *o
CMbp |void |save_freepv |NULLOK char *pv
Cmp |void |save_freepv |NULLOK char *pv
Cdp |void |save_freercpv |NN char *rcpv
CMbp |void |save_freesv |NULLOK SV *sv
Cdp |void |save_generic_pvref \
Expand Down
1 change: 1 addition & 0 deletions embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@
# define save_delete(a,b,c) Perl_save_delete(aTHX_ a,b,c)
# define save_destructor(a,b) Perl_save_destructor(aTHX_ a,b)
# define save_destructor_x(a,b) Perl_save_destructor_x(aTHX_ a,b)
# define save_freepv(a) Perl_save_freepv(aTHX,a)
# define save_freercpv(a) Perl_save_freercpv(aTHX_ a)
# define save_generic_pvref(a) Perl_save_generic_pvref(aTHX_ a)
# define save_generic_svref(a) Perl_save_generic_svref(aTHX_ a)
Expand Down
6 changes: 0 additions & 6 deletions mathoms.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,12 +660,6 @@ Perl_save_freeop(pTHX_ OP *o)
save_freeop(o);
}

void
Perl_save_freepv(pTHX_ char *pv)
{
save_freepv(pv);
}

void
Perl_save_op(pTHX)
{
Expand Down
7 changes: 3 additions & 4 deletions proto.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ STMT_START { \
_o->op_savefree = 1; \
save_pushptr((void *)(_o), SAVEt_FREEOP); \
} STMT_END
#define save_freepv(pv) save_pushptr((void *)(pv), SAVEt_FREEPV)
#define Perl_save_freepv(mTHX, pv) \
Perl_save_pushptr(aTHX_ (void *)(pv), SAVEt_FREEPV)

/*
=for apidoc_section $callback
Expand Down

0 comments on commit eec1379

Please sign in to comment.