diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-12-30 20:55:49 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-12-31 11:03:28 -0700 |
commit | e8d596e06a8502f992b53ea859e136ec40f7497c (patch) | |
tree | 8ec4e2a6452d2615edfcaae8cbf065082c4475b5 /regexec.c | |
parent | 3da38613a3e506474535e2f53bc1f1cf8606ebca (diff) | |
download | perl-e8d596e06a8502f992b53ea859e136ec40f7497c.tar.gz |
handy.h, regcomp.h, regexec.c: Sort initializers, switch()
Until recently, these were needed to be (or it made sense to be) in
numerical value of what the rhs of each #define evaluates to. But now,
they are all initialized to something else, and the numerical value is
not even apparent. Alphabetical order gives a logical ordering to help
a reader find things.
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -436,19 +436,19 @@ S_isFOO_lc(pTHX_ const U8 classnum, const U8 character) switch ((_char_class_number) classnum) { case _CC_ENUM_ALPHANUMERIC: return isALPHANUMERIC_LC(character); case _CC_ENUM_ALPHA: return isALPHA_LC(character); + case _CC_ENUM_ASCII: return isASCII_LC(character); + case _CC_ENUM_BLANK: return isBLANK_LC(character); + case _CC_ENUM_CNTRL: return isCNTRL_LC(character); case _CC_ENUM_DIGIT: return isDIGIT_LC(character); case _CC_ENUM_GRAPH: return isGRAPH_LC(character); case _CC_ENUM_LOWER: return isLOWER_LC(character); case _CC_ENUM_PRINT: return isPRINT_LC(character); + case _CC_ENUM_PSXSPC: return isPSXSPC_LC(character); case _CC_ENUM_PUNCT: return isPUNCT_LC(character); + case _CC_ENUM_SPACE: return isSPACE_LC(character); case _CC_ENUM_UPPER: return isUPPER_LC(character); case _CC_ENUM_WORDCHAR: return isWORDCHAR_LC(character); - case _CC_ENUM_SPACE: return isSPACE_LC(character); - case _CC_ENUM_BLANK: return isBLANK_LC(character); case _CC_ENUM_XDIGIT: return isXDIGIT_LC(character); - case _CC_ENUM_CNTRL: return isCNTRL_LC(character); - case _CC_ENUM_PSXSPC: return isPSXSPC_LC(character); - case _CC_ENUM_ASCII: return isASCII_LC(character); default: /* VERTSPACE should never occur in locales */ Perl_croak(aTHX_ "panic: isFOO_lc() has an unexpected character class '%d'", classnum); } |