summaryrefslogtreecommitdiff
path: root/embed.fnc
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 /embed.fnc
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 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index c83c0a3927..68e5ecd6fe 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1377,7 +1377,7 @@ EsMR |IV |invlist_search |NN SV* const invlist|const UV cp
#endif
#if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_UTF8_C)
EXpM |void |_invlist_intersection |NN SV* const a|NN SV* const b|NN SV** i
-EXpM |void |_invlist_union |NN SV* const a|NN SV* const b|NN SV** output
+EXpM |void |_invlist_union |NULLOK SV* const a|NN SV* const b|NN SV** output
EXpM |void |_invlist_subtract|NN SV* const a|NN SV* const b|NN SV** result
EXpM |void |_invlist_invert|NN SV* const invlist
EXpM |void |_invlist_invert_prop|NN SV* const invlist