summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-06-05 13:48:36 -0600
committerKarl Williamson <khw@cpan.org>2022-06-02 09:09:01 -0600
commit93900cf0b4b962217d0e308510911ee3eb78da6a (patch)
treee79495d1a1f92f4aa803c2c6f18bb41b42b1cb0d /regcomp.h
parent4c72a2337c41cef26627a7a28a22976eb14d0988 (diff)
downloadperl-93900cf0b4b962217d0e308510911ee3eb78da6a.tar.gz
regex: Create a macro to avoid some #ifdef's
Easier to read
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index a52d169b6d..b958399f89 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -1215,6 +1215,12 @@ typedef enum {
(LOWEST_ANYOF_HRx_BYTE(b) \
+ ((MAX_ANYOF_HRx_BYTE - LOWEST_ANYOF_HRx_BYTE(b)) >> ((b) & 3)))
+#if !defined(PERL_IN_XSUB_RE) || defined(PLUGGABLE_RE_EXTENSION)
+# define GET_REGCLASS_AUX_DATA(a,b,c,d,e,f) get_regclass_aux_data(a,b,c,d,e,f)
+#else
+# define GET_REGCLASS_AUX_DATA(a,b,c,d,e,f) get_re_gclass_aux_data(a,b,c,d,e,f)
+#endif
+
#endif /* PERL_REGCOMP_H_ */
/*