summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-09-02 11:22:36 +0200
committerYves Orton <demerphq@gmail.com>2022-09-07 09:02:11 +0200
commitffd0ba0cbb85726b91047c008ab972dd29cede2c (patch)
treed689a1d91ab7a7fb85a3ad884f540c1b3fd58ced /regexp.h
parent498ace271bba4de390af4ce950e215f041124594 (diff)
downloadperl-ffd0ba0cbb85726b91047c008ab972dd29cede2c.tar.gz
regexp.h - put STMT_END on its own line and lined up with STMT_START
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/regexp.h b/regexp.h
index b940d52d25..efaa55bb96 100644
--- a/regexp.h
+++ b/regexp.h
@@ -564,20 +564,24 @@ and check for NULL.
/* Stuff that needs to be included in the pluggable extension goes below here */
#ifdef PERL_ANY_COW
-# define RXp_MATCH_COPY_FREE(prog) \
- STMT_START {if (RXp_SAVED_COPY(prog)) { \
- SV_CHECK_THINKFIRST_COW_DROP(RXp_SAVED_COPY(prog)); \
- } \
- if (RXp_MATCH_COPIED(prog)) { \
- Safefree(RXp_SUBBEG(prog)); \
- RXp_MATCH_COPIED_off(prog); \
- }} STMT_END
+# define RXp_MATCH_COPY_FREE(prog) \
+ STMT_START { \
+ if (RXp_SAVED_COPY(prog)) { \
+ SV_CHECK_THINKFIRST_COW_DROP(RXp_SAVED_COPY(prog)); \
+ } \
+ if (RXp_MATCH_COPIED(prog)) { \
+ Safefree(RXp_SUBBEG(prog)); \
+ RXp_MATCH_COPIED_off(prog); \
+ } \
+ } STMT_END
#else
-# define RXp_MATCH_COPY_FREE(prog) \
- STMT_START {if (RXp_MATCH_COPIED(prog)) { \
- Safefree(RXp_SUBBEG(prog)); \
- RXp_MATCH_COPIED_off(prog); \
- }} STMT_END
+# define RXp_MATCH_COPY_FREE(prog) \
+ STMT_START { \
+ if (RXp_MATCH_COPIED(prog)) { \
+ Safefree(RXp_SUBBEG(prog)); \
+ RXp_MATCH_COPIED_off(prog); \
+ } \
+ } STMT_END
#endif
#define RX_MATCH_COPY_FREE(rx_sv) RXp_MATCH_COPY_FREE(ReANY(rx_sv))