Skip to content

Commit fb290dc

Browse files
committed
Convert union _xmgu to legal name
1 parent be7508b commit fb290dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

av.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
struct xpvav {
1212
HV* xmg_stash; /* class package */
13-
union _xmgu xmg_u;
13+
union xmgu_ xmg_u;
1414
SSize_t xav_fill; /* Index of last element present */
1515
SSize_t xav_max; /* max index for which array has space */
1616
SV** xav_alloc; /* pointer to beginning of C array of SVs */

hv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ struct xpvhv_aux {
159159
/* This structure must match the beginning of struct xpvmg in sv.h. */
160160
struct xpvhv {
161161
HV* xmg_stash; /* class package */
162-
union _xmgu xmg_u;
162+
union xmgu_ xmg_u;
163163
STRLEN xhv_keys; /* total keys, including placeholders */
164164
STRLEN xhv_max; /* subscript of last element of xhv_array */
165165
};
166166

167167
struct xpvhv_with_aux {
168168
HV *xmg_stash; /* class package */
169-
union _xmgu xmg_u;
169+
union xmgu_ xmg_u;
170170
STRLEN xhv_keys; /* total keys, including placeholders */
171171
STRLEN xhv_max; /* subscript of last element of xhv_array */
172172
struct xpvhv_aux xhv_aux;

sv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ These guys don't need the curly blocks
540540

541541
#define _XPV_HEAD \
542542
HV* xmg_stash; /* class package */ \
543-
union _xmgu xmg_u; \
543+
union xmgu_ xmg_u; \
544544
STRLEN xpv_cur; /* length of svu_pv as a C string */ \
545545
union { \
546546
STRLEN xpvlenu_len; /* allocated size */ \
@@ -564,7 +564,7 @@ union xivu_ {
564564

565565
};
566566

567-
union _xmgu {
567+
union xmgu_ {
568568
MAGIC* xmg_magic; /* linked list of magicalness */
569569
STRLEN xmg_hash_index; /* used while freeing hash entries */
570570
};
@@ -720,7 +720,7 @@ struct xpvio {
720720

721721
struct xobject {
722722
HV* xmg_stash;
723-
union _xmgu xmg_u;
723+
union xmgu_ xmg_u;
724724
SSize_t xobject_maxfield;
725725
SSize_t xobject_iter_sv_at; /* this is only used by Perl_sv_clear() */
726726
SV** xobject_fields;

0 commit comments

Comments
 (0)