diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-02-03 11:40:34 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-09 10:13:55 -0700 |
commit | 164173a25b2f985f00a4cb2ce75ac3918aef2e02 (patch) | |
tree | 601cd7714c92cac49e1a92d2456d945b8f2b3abc /regexp.h | |
parent | 3f80b5713f755394d2d1a3bc3befb0dd82a19f64 (diff) | |
download | perl-164173a25b2f985f00a4cb2ce75ac3918aef2e02.tar.gz |
regcomp.c: Add ability to take union of a complement
Previous commits have added the ability to the inversion list
intersection routine to take the complement of one of its inputs.
Likewise, for unions, this will be a frequent paradigm, and it is
cheaper to do the complement of an input in the routine than to
construct a new temporary that is the desired complement, and throw it
away.
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ typedef struct regexp_paren_pair { } regexp_paren_pair; #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_UTF8_C) +#define _invlist_union(a, b, output) _invlist_union_maybe_complement_2nd(a, b, FALSE, output) #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, |