This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor macro so works on EBCDIC, clarity
authorKarl Williamson <public@khwilliamson.com>
Fri, 21 Jan 2011 04:11:28 +0000 (21:11 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 21 Jan 2011 05:00:54 +0000 (22:00 -0700)
commitf952827c6fd2a1d10c016d1edc0e68da114482d2
treebca170607cb680006b1358f10637349f57b629a4
parent2cd56239d9852dbb010207ba4d0f0d95dbdfd74b
regcomp.c: Refactor macro so works on EBCDIC, clarity

_C_C_T was being passed both a test and the value to put the test on, whereas
the value is actually setup inside the macro, which is not a clean interface,
and would not work on EBCDIC, as the loop bounds are for ASCII.  By just
passing the test name, the macro can generate code that will work also on
EBCDIC.

Unfortunately, the same can't happen for the NOLOC version of the macro, as it
needs to look at more than a single byte, so needs an address.
regcomp.c