This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: accept NULL as inversion list param
authorKarl Williamson <public@khwilliamson.com>
Sat, 26 Feb 2011 17:16:20 +0000 (10:16 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 28 Feb 2011 02:21:31 +0000 (19:21 -0700)
commitc52a3e710d22e427503266cd12c740eaf81515ea
treeee1fcbc1aea89b546e36b011816246bd26fbc180
parent2644ea75792e7142cc4124f2579ddfe278e562c0
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.
embed.fnc
proto.h
regcomp.c