Skip to content

Commit 3f4a84b

Browse files
committed
WS Cleanup Stage #1 - simple ws fixups
1 parent d6a7165 commit 3f4a84b

38 files changed

+3969
-3970
lines changed

INTERN.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121

2222
# if (defined(WIN32) && defined(__MINGW32__) && ! defined(PERL_IS_MINIPERL))
2323
# ifdef __cplusplus
24-
# define EXT __declspec(dllexport)
24+
# define EXT __declspec(dllexport)
2525
# define dEXT
26-
# define EXTCONST __declspec(dllexport) extern const
27-
# define dEXTCONST const
26+
# define EXTCONST __declspec(dllexport) extern const
27+
# define dEXTCONST const
2828
# else
29-
# define EXT __declspec(dllexport)
29+
# define EXT __declspec(dllexport)
3030
# define dEXT
31-
# define EXTCONST __declspec(dllexport) const
32-
# define dEXTCONST const
31+
# define EXTCONST __declspec(dllexport) const
32+
# define dEXTCONST const
3333
# endif
3434
# else
3535
# ifdef __cplusplus

XSUB.h

Lines changed: 234 additions & 234 deletions
Large diffs are not rendered by default.

av.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
*/
1010

1111
struct xpvav {
12-
HV* xmg_stash; /* class package */
13-
union _xmgu xmg_u;
14-
SSize_t xav_fill; /* Index of last element present */
15-
SSize_t xav_max; /* max index for which array has space */
16-
SV** xav_alloc; /* pointer to beginning of C array of SVs */
12+
HV* xmg_stash; /* class package */
13+
union _xmgu xmg_u;
14+
SSize_t xav_fill; /* Index of last element present */
15+
SSize_t xav_max; /* max index for which array has space */
16+
SV** xav_alloc; /* pointer to beginning of C array of SVs */
1717
};
1818

19-
/* SV* xav_arylen; */
19+
/* SV* xav_arylen; */
2020

2121
/* SVpav_REAL is set for all AVs whose xav_array contents are refcounted
2222
* and initialized such that any element can be retrieved as a SV*.
@@ -75,25 +75,25 @@ If all you need is to look up an array element, then prefer C<av_fetch>.
7575
# define Nullav Null(AV*)
7676
#endif
7777

78-
#define AvARRAY(av) ((av)->sv_u.svu_array)
79-
#define AvALLOC(av) ((XPVAV*) SvANY(av))->xav_alloc
80-
#define AvMAX(av) ((XPVAV*) SvANY(av))->xav_max
81-
#define AvFILLp(av) ((XPVAV*) SvANY(av))->xav_fill
82-
#define AvARYLEN(av) (*Perl_av_arylen_p(aTHX_ MUTABLE_AV(av)))
83-
84-
#define AvREAL(av) (SvFLAGS(av) & SVpav_REAL)
85-
#define AvREAL_on(av) (SvFLAGS(av) |= SVpav_REAL)
86-
#define AvREAL_off(av) (SvFLAGS(av) &= ~SVpav_REAL)
87-
#define AvREAL_only(av) (AvREIFY_off(av), SvFLAGS(av) |= SVpav_REAL)
88-
#define AvREIFY(av) (SvFLAGS(av) & SVpav_REIFY)
89-
#define AvREIFY_on(av) (SvFLAGS(av) |= SVpav_REIFY)
90-
#define AvREIFY_off(av) (SvFLAGS(av) &= ~SVpav_REIFY)
91-
#define AvREIFY_only(av) (AvREAL_off(av), SvFLAGS(av) |= SVpav_REIFY)
92-
93-
94-
#define AvREALISH(av) (SvFLAGS(av) & (SVpav_REAL|SVpav_REIFY))
95-
96-
#define AvFILL(av) ((SvRMAGICAL((const SV *) (av))) \
78+
#define AvARRAY(av) ((av)->sv_u.svu_array)
79+
#define AvALLOC(av) ((XPVAV*) SvANY(av))->xav_alloc
80+
#define AvMAX(av) ((XPVAV*) SvANY(av))->xav_max
81+
#define AvFILLp(av) ((XPVAV*) SvANY(av))->xav_fill
82+
#define AvARYLEN(av) (*Perl_av_arylen_p(aTHX_ MUTABLE_AV(av)))
83+
84+
#define AvREAL(av) (SvFLAGS(av) & SVpav_REAL)
85+
#define AvREAL_on(av) (SvFLAGS(av) |= SVpav_REAL)
86+
#define AvREAL_off(av) (SvFLAGS(av) &= ~SVpav_REAL)
87+
#define AvREAL_only(av) (AvREIFY_off(av), SvFLAGS(av) |= SVpav_REAL)
88+
#define AvREIFY(av) (SvFLAGS(av) & SVpav_REIFY)
89+
#define AvREIFY_on(av) (SvFLAGS(av) |= SVpav_REIFY)
90+
#define AvREIFY_off(av) (SvFLAGS(av) &= ~SVpav_REIFY)
91+
#define AvREIFY_only(av) (AvREAL_off(av), SvFLAGS(av) |= SVpav_REIFY)
92+
93+
94+
#define AvREALISH(av) (SvFLAGS(av) & (SVpav_REAL|SVpav_REIFY))
95+
96+
#define AvFILL(av) ((SvRMAGICAL((const SV *) (av))) \
9797
? mg_size(MUTABLE_SV(av)) : AvFILLp(av))
9898
#define av_top_index(av) AvFILL(av)
9999
#define av_tindex(av) av_top_index(av)
@@ -209,7 +209,7 @@ to fit one element without extending:
209209
210210
*/
211211

212-
#define newAV() MUTABLE_AV(newSV_type(SVt_PVAV))
212+
#define newAV() MUTABLE_AV(newSV_type(SVt_PVAV))
213213
#define newAV_alloc_x(size) av_new_alloc(size,0)
214214
#define newAV_alloc_xz(size) av_new_alloc(size,1)
215215

0 commit comments

Comments
 (0)