summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-07-24 19:56:24 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-24 11:36:12 -0600
commitde92f5e66ec16fd0d9068f362c5ffccd9a5b6135 (patch)
treec7328317cefbed0cf247b7985c16c3d6b0a087f3 /regcomp.c
parent892d82595257ad4946d399f004a293a79f6ab611 (diff)
downloadperl-de92f5e66ec16fd0d9068f362c5ffccd9a5b6135.tar.gz
regcomp.c: Move a #define, add a similar one
Future commits will use this #define (and the new one) earlier in the file than currently defined.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 49dd2462c7..02e4f7dcb7 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -251,6 +251,11 @@ typedef struct RExC_state_t {
#define namedclass_to_classnum(class) ((int) ((class) / 2))
#define classnum_to_namedclass(classnum) ((classnum) * 2)
+#define _invlist_union_complement_2nd(a, b, output) \
+ _invlist_union_maybe_complement_2nd(a, b, TRUE, output)
+#define _invlist_intersection_complement_2nd(a, b, output) \
+ _invlist_intersection_maybe_complement_2nd(a, b, TRUE, output)
+
/* About scan_data_t.
During optimisation we recurse through the regexp program performing
@@ -7309,8 +7314,6 @@ S_invlist_trim(pTHX_ SV* const invlist)
SvPV_shrink_to_cur((SV *) invlist);
}
-#define _invlist_union_complement_2nd(a, b, output) _invlist_union_maybe_complement_2nd(a, b, TRUE, output)
-
STATIC void
S__append_range_to_invlist(pTHX_ SV* const invlist, const UV start, const UV end)
{