summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-12 11:09:39 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-09 10:13:53 -0700
commitf45adb7919ea18d4d76c6cffaf31c1d90a103a48 (patch)
treedfba01a01b9a931a9836c1e7ce72f3235290e190 /proto.h
parent080d4cd33c54d1513da5714055bbc43ff4e3841d (diff)
downloadperl-f45adb7919ea18d4d76c6cffaf31c1d90a103a48.tar.gz
regcomp.c: Chg invlist_union() to accept NULL first param
It is common in a loop to keep adding inversion lists to a current running total. But the first time through, the current union list needs to be initialized from NULL. This puts that code in the function instead of the callers each having to do it.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index 6ac437a29e..6135af8330 100644
--- a/proto.h
+++ b/proto.h
@@ -6581,11 +6581,10 @@ PERL_CALLCONV void Perl__invlist_subtract(pTHX_ SV* const a, SV* const b, SV** r
assert(a); assert(b); assert(result)
PERL_CALLCONV void Perl__invlist_union(pTHX_ SV* const a, SV* const b, SV** output)
- __attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)
__attribute__nonnull__(pTHX_3);
#define PERL_ARGS_ASSERT__INVLIST_UNION \
- assert(a); assert(b); assert(output)
+ assert(b); assert(output)
PERL_CALLCONV SV* Perl__new_invlist(pTHX_ IV initial_size)
__attribute__warn_unused_result__;