regcomp.c: Use data structure to remove special handling
authorKarl Williamson <public@khwilliamson.com>
Mon, 31 Dec 2012 15:45:10 +0000 (08:45 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 31 Dec 2012 18:03:28 +0000 (11:03 -0700)
commit455e0d324acb0d3c4d045cb8ab3fe09bbda79cd9
treea80c4fce7aea74854547930665a5a8ebb2e7c143
parent3dd9aa8b04b38580bb90f478f4c4ae452201949b
regcomp.c: Use data structure to remove special handling

[:digit:] matches nothing in the upper Latin1 range.  That means the
inversion list for the whole of Latin1 is the same as the one for the
ASCII range.  By copying the ASCII one into the Latin1's slot, we
eliminate the need for code to handle this case specially.

Future commits will remove the switch statement affected by this
commit entirely, and eliminating this special case becomes more
important given this direction.
regcomp.c