diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-01-12 11:09:39 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-02-09 10:13:53 -0700 |
commit | f45adb7919ea18d4d76c6cffaf31c1d90a103a48 (patch) | |
tree | dfba01a01b9a931a9836c1e7ce72f3235290e190 /proto.h | |
parent | 080d4cd33c54d1513da5714055bbc43ff4e3841d (diff) | |
download | perl-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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__; |