Skip to content

Commit 079a9d4

Browse files
committed
Remove code relating to PL_Xpv
This variable is no longer used in any perl code. It used to be used as a temporary during some expression macros, similar to the way PL_Sv is used. The last reference I can find to it in real code was removed in 2012, by the commit 6702ba9 (It's a little late in the 5.39.x development cycle to consider removing the line from intrpvar.h itself; but we could do that at the start of 5.41.x).
1 parent 7cc2957 commit 079a9d4

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

embedvar.h

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

intrpvar.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,6 @@ PERLVAR(I, blockhooks, AV *)
968968

969969
PERLVAR(I, custom_ops, HV *) /* custom op registrations */
970970

971-
PERLVAR(I, Xpv, XPV *) /* (unused) held temporary value */
972-
973971
/* name of the scopes we've ENTERed. Only used with -DDEBUGGING, but needs to be
974972
present always, as -DDEBUGGING must be binary compatible with non. */
975973
PERLVARI(I, scopestack_name, const char **, NULL)

mg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3676,7 +3676,6 @@ Perl_perly_sighandler(int sig, Siginfo_t *sip PERL_UNUSED_DECL,
36763676
CV *cv = NULL;
36773677
OP *myop = PL_op;
36783678
U32 flags = 0;
3679-
XPV * const tXpv = PL_Xpv;
36803679
I32 old_ss_ix = PL_savestack_ix;
36813680
SV *errsv_save = NULL;
36823681

@@ -3831,7 +3830,6 @@ Perl_perly_sighandler(int sig, Siginfo_t *sip PERL_UNUSED_DECL,
38313830
PL_op = myop; /* Apparently not needed... */
38323831

38333832
PL_Sv = tSv; /* Restore global temporaries. */
3834-
PL_Xpv = tXpv;
38353833
return;
38363834
}
38373835

sv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15926,7 +15926,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
1592615926
PL_op = proto_perl->Iop;
1592715927

1592815928
PL_Sv = NULL;
15929-
PL_Xpv = (XPV*)NULL;
1593015929
my_perl->Ina = proto_perl->Ina;
1593115930

1593215931
PL_statcache = proto_perl->Istatcache;

0 commit comments

Comments
 (0)