@@ -563,8 +563,9 @@ typedef struct rcpv RCPV;
563
563
564
564
# define CopFILE (c ) ((c)->cop_file)
565
565
# define CopFILE_LEN (c ) (CopFILE(c) ? RCPV_LEN(CopFILE(c)) : 0)
566
- # define CopFILEGV (c ) (CopFILE(c) \
567
- ? gv_fetchfile(CopFILE(c)) : NULL)
566
+ # define CopFILEGV (c ) \
567
+ (CopFILE(c)\
568
+ ? gv_fetchfile(CopFILE(c)) : NULL)
568
569
569
570
# define CopFILE_set_x (c ,pv ) ((c)->cop_file = rcpv_new((pv),0,RCPVf_USE_STRLEN))
570
571
# define CopFILE_setn_x (c ,pv ,l ) ((c)->cop_file = rcpv_new((pv),(l),0))
@@ -608,17 +609,21 @@ typedef struct rcpv RCPV;
608
609
} STMT_END
609
610
610
611
611
- # define CopFILESV (c ) (CopFILE(c) \
612
- ? GvSV(gv_fetchfile(CopFILE(c))) : NULL)
613
- # define CopFILEAV (c ) (CopFILE(c) \
614
- ? GvAV(gv_fetchfile(CopFILE(c))) : NULL)
615
- # define CopFILEAVx (c ) (assert_(CopFILE(c)) \
616
- GvAV(gv_fetchfile(CopFILE(c))))
612
+ # define CopFILESV (c ) \
613
+ (CopFILE(c)\
614
+ ? GvSV(gv_fetchfile(CopFILE(c))) : NULL)
615
+ # define CopFILEAV (c ) \
616
+ (CopFILE(c)\
617
+ ? GvAV(gv_fetchfile(CopFILE(c))) : NULL)
618
+ # define CopFILEAVx (c ) \
619
+ (assert_(CopFILE(c))\
620
+ GvAV(gv_fetchfile(CopFILE(c))))
617
621
# define CopFILEAVn (c ) (cop_file_avn(c))
618
622
# define CopSTASH (c ) PL_stashpad[(c)->cop_stashoff]
619
- # define CopSTASH_set (c ,hv ) ((c)->cop_stashoff = (hv) \
620
- ? alloccopstash(hv) \
621
- : 0)
623
+ # define CopSTASH_set (c ,hv ) \
624
+ ((c)->cop_stashoff = (hv)\
625
+ ? alloccopstash(hv) \
626
+ : 0)
622
627
623
628
#else /* Above: yes threads; Below no threads */
624
629
@@ -635,10 +640,12 @@ typedef struct rcpv RCPV;
635
640
# define CopFILEAVx (c ) (GvAV(CopFILEGV(c)))
636
641
# endif
637
642
# define CopFILEAVn (c ) (CopFILEGV(c) ? GvAVn(CopFILEGV(c)) : NULL)
638
- # define CopFILE (c ) (CopFILEGV(c) /* +2 for '_<' */ \
639
- ? GvNAME (CopFILEGV (c ))+2 : NULL)
640
- # define CopFILE_LEN (c ) (CopFILEGV(c) /* -2 for '_<' */ \
641
- ? GvNAMELEN (CopFILEGV (c ))-2 : 0)
643
+ # define CopFILE (c ) \
644
+ (CopFILEGV(c) /* +2 for '_<' */ \
645
+ ? GvNAME (CopFILEGV (c ))+2 : NULL)
646
+ # define CopFILE_LEN (c ) \
647
+ (CopFILEGV(c) /* -2 for '_<' */ \
648
+ ? GvNAMELEN (CopFILEGV (c ))-2 : 0)
642
649
# define CopSTASH (c ) ((c)->cop_stash)
643
650
# define CopSTASH_set (c ,hv ) ((c)->cop_stash = (hv))
644
651
# define CopFILE_free (c ) (SvREFCNT_dec(CopFILEGV(c)),(CopFILEGV(c) = NULL))
@@ -787,9 +794,10 @@ by setting C<*flags> to 0 or C<SVf_UTF8>.
787
794
#define OutCopFILE (c ) CopFILE(c)
788
795
789
796
#define CopHINTS_get (c ) ((c)->cop_hints + 0)
790
- #define CopHINTS_set (c , h ) STMT_START { \
791
- (c)->cop_hints = (h); \
792
- } STMT_END
797
+ #define CopHINTS_set (c , h ) \
798
+ STMT_START {\
799
+ (c)->cop_hints = (h); \
800
+ } STMT_END
793
801
794
802
/*
795
803
* Here we have some enormously heavy (or at least ponderous) wizardry.
@@ -1042,7 +1050,8 @@ struct subst {
1042
1050
#define sb_rxres cx_u.cx_subst.sbu_rxres
1043
1051
#define sb_rx cx_u.cx_subst.sbu_rx
1044
1052
1045
- # define CX_PUSHSUBST (cx ) CXINC, cx = CX_CUR(), \
1053
+ # define CX_PUSHSUBST (cx ) \
1054
+ CXINC, cx = CX_CUR(),\
1046
1055
cx->blk_oldsaveix = oldsave, \
1047
1056
cx->sb_iters = iters, \
1048
1057
cx->sb_maxiters = maxiters, \
@@ -1137,17 +1146,22 @@ struct context {
1137
1146
#define CXp_ONCE 0x10 /* What was sbu_once in struct subst */
1138
1147
1139
1148
#define CxTYPE (c ) ((c)->cx_type & CXTYPEMASK)
1140
- #define CxTYPE_is_LOOP (c ) ( CxTYPE(cx) >= CXt_LOOP_ARY \
1141
- && CxTYPE(cx) <= CXt_LOOP_PLAIN)
1149
+ #define CxTYPE_is_LOOP (c ) \
1150
+ ( CxTYPE(cx) >= CXt_LOOP_ARY\
1151
+ && CxTYPE(cx) <= CXt_LOOP_PLAIN)
1142
1152
#define CxMULTICALL (c ) ((c)->cx_type & CXp_MULTICALL)
1143
- #define CxREALEVAL (c ) (((c)->cx_type & (CXTYPEMASK|CXp_REAL)) \
1144
- == (CXt_EVAL|CXp_REAL))
1145
- #define CxEVALBLOCK (c ) (((c)->cx_type & (CXTYPEMASK|CXp_EVALBLOCK)) \
1146
- == (CXt_EVAL|CXp_EVALBLOCK))
1147
- #define CxTRY (c ) (((c)->cx_type & (CXTYPEMASK|CXp_TRY)) \
1148
- == (CXt_EVAL|CXp_TRY))
1149
- #define CxFOREACH (c ) ( CxTYPE(cx) >= CXt_LOOP_ARY \
1150
- && CxTYPE(cx) <= CXt_LOOP_LIST)
1153
+ #define CxREALEVAL (c ) \
1154
+ (((c)->cx_type & (CXTYPEMASK|CXp_REAL))\
1155
+ == (CXt_EVAL|CXp_REAL))
1156
+ #define CxEVALBLOCK (c ) \
1157
+ (((c)->cx_type & (CXTYPEMASK|CXp_EVALBLOCK))\
1158
+ == (CXt_EVAL|CXp_EVALBLOCK))
1159
+ #define CxTRY (c ) \
1160
+ (((c)->cx_type & (CXTYPEMASK|CXp_TRY))\
1161
+ == (CXt_EVAL|CXp_TRY))
1162
+ #define CxFOREACH (c ) \
1163
+ ( CxTYPE(cx) >= CXt_LOOP_ARY\
1164
+ && CxTYPE(cx) <= CXt_LOOP_LIST)
1151
1165
1152
1166
/* private flags for CXt_DEFER */
1153
1167
#define CXp_FINALLY 0x20 /* `finally` block; semantically identical
0 commit comments