summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-03 10:57:33 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-09 10:13:54 -0700
commit3f80b5713f755394d2d1a3bc3befb0dd82a19f64 (patch)
tree68f926c927c01eec84d4d5da89f1d228a0b48d24 /regexp.h
parent52ae8f7ebb1f32bbd4f574c090ff4ae9d6b468c7 (diff)
downloadperl-3f80b5713f755394d2d1a3bc3befb0dd82a19f64.tar.gz
regcomp.c: _invlist_subtract() becomes a macro
This function is no longer necessary, as it is just a call to the newly created _invlist_intersection_maybe_complement_2nd() with the correct parameters.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/regexp.h b/regexp.h
index aefdac8f8f..68d5830ec7 100644
--- a/regexp.h
+++ b/regexp.h
@@ -57,6 +57,10 @@ typedef struct regexp_paren_pair {
#if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_UTF8_C)
#define _invlist_intersection(a, b, output) _invlist_intersection_maybe_complement_2nd(a, b, FALSE, output)
+
+/* Subtracting b from a leaves in a everything that was there that isn't in b,
+ * that is the intersection of a with b's complement */
+#define _invlist_subtract(a, b, output) _invlist_intersection_maybe_complement_2nd(a, b, TRUE, output)
#endif
/*