@@ -557,8 +557,9 @@ typedef struct rcpv RCPV;
557
557
558
558
# define CopFILE (c ) ((c)->cop_file)
559
559
# define CopFILE_LEN (c ) (CopFILE(c) ? RCPV_LEN(CopFILE(c)) : 0)
560
- # define CopFILEGV (c ) (CopFILE(c) \
561
- ? gv_fetchfile(CopFILE(c)) : NULL)
560
+ # define CopFILEGV (c ) \
561
+ (CopFILE(c)\
562
+ ? gv_fetchfile(CopFILE(c)) : NULL)
562
563
563
564
# define CopFILE_set_x (c ,pv ) ((c)->cop_file = rcpv_new((pv),0,RCPVf_USE_STRLEN))
564
565
# define CopFILE_setn_x (c ,pv ,l ) ((c)->cop_file = rcpv_new((pv),(l),0))
@@ -602,17 +603,21 @@ typedef struct rcpv RCPV;
602
603
} STMT_END
603
604
604
605
605
- # define CopFILESV (c ) (CopFILE(c) \
606
- ? GvSV(gv_fetchfile(CopFILE(c))) : NULL)
607
- # define CopFILEAV (c ) (CopFILE(c) \
608
- ? GvAV(gv_fetchfile(CopFILE(c))) : NULL)
609
- # define CopFILEAVx (c ) (assert_(CopFILE(c)) \
610
- GvAV(gv_fetchfile(CopFILE(c))))
606
+ # define CopFILESV (c ) \
607
+ (CopFILE(c)\
608
+ ? GvSV(gv_fetchfile(CopFILE(c))) : NULL)
609
+ # define CopFILEAV (c ) \
610
+ (CopFILE(c)\
611
+ ? GvAV(gv_fetchfile(CopFILE(c))) : NULL)
612
+ # define CopFILEAVx (c ) \
613
+ (assert_(CopFILE(c))\
614
+ GvAV(gv_fetchfile(CopFILE(c))))
611
615
# define CopFILEAVn (c ) (cop_file_avn(c))
612
616
# define CopSTASH (c ) PL_stashpad[(c)->cop_stashoff]
613
- # define CopSTASH_set (c ,hv ) ((c)->cop_stashoff = (hv) \
614
- ? alloccopstash(hv) \
615
- : 0)
617
+ # define CopSTASH_set (c ,hv ) \
618
+ ((c)->cop_stashoff = (hv)\
619
+ ? alloccopstash(hv) \
620
+ : 0)
616
621
617
622
#else /* Above: yes threads; Below no threads */
618
623
@@ -629,10 +634,12 @@ typedef struct rcpv RCPV;
629
634
# define CopFILEAVx (c ) (GvAV(CopFILEGV(c)))
630
635
# endif
631
636
# define CopFILEAVn (c ) (CopFILEGV(c) ? GvAVn(CopFILEGV(c)) : NULL)
632
- # define CopFILE (c ) (CopFILEGV(c) /* +2 for '_<' */ \
633
- ? GvNAME (CopFILEGV (c ))+2 : NULL)
634
- # define CopFILE_LEN (c ) (CopFILEGV(c) /* -2 for '_<' */ \
635
- ? GvNAMELEN (CopFILEGV (c ))-2 : 0)
637
+ # define CopFILE (c ) \
638
+ (CopFILEGV(c) /* +2 for '_<' */ \
639
+ ? GvNAME (CopFILEGV (c ))+2 : NULL)
640
+ # define CopFILE_LEN (c ) \
641
+ (CopFILEGV(c) /* -2 for '_<' */ \
642
+ ? GvNAMELEN (CopFILEGV (c ))-2 : 0)
636
643
# define CopSTASH (c ) ((c)->cop_stash)
637
644
# define CopSTASH_set (c ,hv ) ((c)->cop_stash = (hv))
638
645
# define CopFILE_free (c ) (SvREFCNT_dec(CopFILEGV(c)),(CopFILEGV(c) = NULL))
@@ -781,9 +788,10 @@ by setting C<*flags> to 0 or C<SVf_UTF8>.
781
788
#define OutCopFILE (c ) CopFILE(c)
782
789
783
790
#define CopHINTS_get (c ) ((c)->cop_hints + 0)
784
- #define CopHINTS_set (c , h ) STMT_START { \
785
- (c)->cop_hints = (h); \
786
- } STMT_END
791
+ #define CopHINTS_set (c , h ) \
792
+ STMT_START {\
793
+ (c)->cop_hints = (h); \
794
+ } STMT_END
787
795
788
796
/*
789
797
* Here we have some enormously heavy (or at least ponderous) wizardry.
@@ -1036,7 +1044,8 @@ struct subst {
1036
1044
#define sb_rxres cx_u.cx_subst.sbu_rxres
1037
1045
#define sb_rx cx_u.cx_subst.sbu_rx
1038
1046
1039
- # define CX_PUSHSUBST (cx ) CXINC, cx = CX_CUR(), \
1047
+ # define CX_PUSHSUBST (cx ) \
1048
+ CXINC, cx = CX_CUR(),\
1040
1049
cx->blk_oldsaveix = oldsave, \
1041
1050
cx->sb_iters = iters, \
1042
1051
cx->sb_maxiters = maxiters, \
@@ -1131,17 +1140,22 @@ struct context {
1131
1140
#define CXp_ONCE 0x10 /* What was sbu_once in struct subst */
1132
1141
1133
1142
#define CxTYPE (c ) ((c)->cx_type & CXTYPEMASK)
1134
- #define CxTYPE_is_LOOP (c ) ( CxTYPE(cx) >= CXt_LOOP_ARY \
1135
- && CxTYPE(cx) <= CXt_LOOP_PLAIN)
1143
+ #define CxTYPE_is_LOOP (c ) \
1144
+ ( CxTYPE(cx) >= CXt_LOOP_ARY\
1145
+ && CxTYPE(cx) <= CXt_LOOP_PLAIN)
1136
1146
#define CxMULTICALL (c ) ((c)->cx_type & CXp_MULTICALL)
1137
- #define CxREALEVAL (c ) (((c)->cx_type & (CXTYPEMASK|CXp_REAL)) \
1138
- == (CXt_EVAL|CXp_REAL))
1139
- #define CxEVALBLOCK (c ) (((c)->cx_type & (CXTYPEMASK|CXp_EVALBLOCK)) \
1140
- == (CXt_EVAL|CXp_EVALBLOCK))
1141
- #define CxTRY (c ) (((c)->cx_type & (CXTYPEMASK|CXp_TRY)) \
1142
- == (CXt_EVAL|CXp_TRY))
1143
- #define CxFOREACH (c ) ( CxTYPE(cx) >= CXt_LOOP_ARY \
1144
- && CxTYPE(cx) <= CXt_LOOP_LIST)
1147
+ #define CxREALEVAL (c ) \
1148
+ (((c)->cx_type & (CXTYPEMASK|CXp_REAL))\
1149
+ == (CXt_EVAL|CXp_REAL))
1150
+ #define CxEVALBLOCK (c ) \
1151
+ (((c)->cx_type & (CXTYPEMASK|CXp_EVALBLOCK))\
1152
+ == (CXt_EVAL|CXp_EVALBLOCK))
1153
+ #define CxTRY (c ) \
1154
+ (((c)->cx_type & (CXTYPEMASK|CXp_TRY))\
1155
+ == (CXt_EVAL|CXp_TRY))
1156
+ #define CxFOREACH (c ) \
1157
+ ( CxTYPE(cx) >= CXt_LOOP_ARY\
1158
+ && CxTYPE(cx) <= CXt_LOOP_LIST)
1145
1159
1146
1160
/* private flags for CXt_DEFER */
1147
1161
#define CXp_FINALLY 0x20 /* `finally` block; semantically identical
0 commit comments