summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-09-27 14:50:25 +0100
committerDavid Mitchell <davem@iabyn.com>2016-09-27 15:57:44 +0100
commit9420b26806fca1f75d38f570e455d294af1c2fb6 (patch)
tree2dcea506c5c560668bb51ec4394c183c8294666f /sv.h
parent516cc7b3d537f089e725ceeb304dfb07583e516e (diff)
downloadperl-9420b26806fca1f75d38f570e455d294af1c2fb6.tar.gz
Eliminate xpad_cop_seq from _xnvu union
PVNV's used to be used to hold pad names (like '$lex'), but aren't used for this purpose any more. So eliminate the xpad_cop_seq part of the union. Since S_scan_subst() was using xnv_u.xpad_cop_seq.xlow to store a temporary line count, add a new union member for that. The main usage of this field on CPAN is to define COP_SEQ_RANGE_LOW()-style macros, so if the module is still using xpad_cop_seq for that purpose, it's already broken.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sv.h b/sv.h
index 07719a6c08..7f43f3b5cf 100644
--- a/sv.h
+++ b/sv.h
@@ -487,10 +487,7 @@ perform the upgrade if necessary. See C<L</svtype>>.
union _xnvu {
NV xnv_nv; /* numeric value, if any */
HV * xgv_stash;
- struct {
- U32 xlow;
- U32 xhigh;
- } xpad_cop_seq; /* used by pad.c for cop_sequence */
+ line_t xnv_lines; /* used internally by S_scan_subst() */
};
union _xivu {