diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-02-26 10:16:20 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-02-27 19:21:31 -0700 |
commit | c52a3e710d22e427503266cd12c740eaf81515ea (patch) | |
tree | ee1fcbc1aea89b546e36b011816246bd26fbc180 /embed.fnc | |
parent | 2644ea75792e7142cc4124f2579ddfe278e562c0 (diff) | |
download | perl-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.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |