regcomp.c: Move some locale initialization code
authorKarl Williamson <public@khwilliamson.com>
Tue, 18 Feb 2014 18:01:23 +0000 (11:01 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 19 Feb 2014 15:32:59 +0000 (08:32 -0700)
commit4a88160625e6fcb7ad69288652f7206f20bbb500
tree86f8a449d3dde7c9f603fda320bedf9cad1747bf
parentb574cd746488e06e3f649d9c08e0528fedfac5ca
regcomp.c: Move some locale initialization code

This moves some code down a few lines, rewording the comments, and doing
some things only once, instead of each time through the loop.

This eliminates some tests, as the new place already has determined that
some of the preconditions for executing the code have been met.  It
keeps us from generating unnecessary locale nodes for platforms which
don't have isascii().
regcomp.c