summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-26 10:16:20 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-27 19:21:31 -0700
commitc52a3e710d22e427503266cd12c740eaf81515ea (patch)
treeee1fcbc1aea89b546e36b011816246bd26fbc180 /embed.fnc
parent2644ea75792e7142cc4124f2579ddfe278e562c0 (diff)
downloadperl-c52a3e710d22e427503266cd12c740eaf81515ea.tar.gz
regcomp.c: accept NULL as inversion list param
Change the function add_range_to_invlist() to accept NULL as the inversion list, in which case it creates it. A common usage of this function is to create the list if it doesn't exist before calling it, so this just makes that code once.
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 8663b212fd..83c6368955 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1300,7 +1300,7 @@ EXMpR |HV* |_new_invlist |IV initial_size
EXMpR |HV* |_swash_to_invlist |NN SV* const swash
EXMp |void |_append_range_to_invlist |NN HV* const invlist|const UV start|const UV end
#ifdef PERL_IN_REGCOMP_C
-EsMR |HV* |add_range_to_invlist |NN HV* const invlist|const UV start|const UV end
+EsMR |HV* |add_range_to_invlist |NULLOK HV* invlist|const UV start|const UV end
EiMR |UV* |invlist_array |NN HV* const invlist
EiM |void |invlist_destroy |NN HV* const invlist
EsM |void |invlist_extend |NN HV* const invlist|const UV len