diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-07-02 21:39:56 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-07-24 21:13:46 -0600 |
commit | 0ac55e23f1fba7b1f36cf989f7a4b6e3179a9530 (patch) | |
tree | f09c594e947eadb5e9980dfdbcc27249ef8e2c79 /handy.h | |
parent | bbc7191a2330c13ee6a876a7999080b4eb58be76 (diff) | |
download | perl-0ac55e23f1fba7b1f36cf989f7a4b6e3179a9530.tar.gz |
handy.h: Renumber character class bits
These are renumbered so that the ones that correspond to character
classes in regcomp.h are related numerically as well. This will prove
useful in future commits.
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 62 |
1 files changed, 31 insertions, 31 deletions
@@ -605,37 +605,37 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc /* Bits for PL_charclass[]. These use names used in l1_char_class_tab.h but * their actual definitions are here. If that has a name not used here, it * won't compile. */ -# define _CC_WORDCHAR_A (1<<27) -# define _CC_SPACE_A (1<<23) -# define _CC_DIGIT_A (1<<9) -# define _CC_ALNUMC_A (1<<0) -# define _CC_ALPHA_A (1<<2) -# define _CC_ASCII (1<<16) -# define _CC_CNTRL_A (1<<7) -# define _CC_GRAPH_A (1<<10) -# define _CC_LOWER_A (1<<14) -# define _CC_PRINT_A (1<<17) -# define _CC_PUNCT_A (1<<21) -# define _CC_UPPER_A (1<<25) -# define _CC_XDIGIT_A (1<<29) -# define _CC_PSXSPC_A (1<<19) -# define _CC_BLANK_A (1<<4) - -# define _CC_WORDCHAR_L1 (1<<28) -# define _CC_SPACE_L1 (1<<24) -# define _CC_ALNUMC_L1 (1<<1) -# define _CC_ALPHA_L1 (1<<3) -# define _CC_CNTRL_L1 (1<<8) -# define _CC_GRAPH_L1 (1<<11) -# define _CC_LOWER_L1 (1<<15) -# define _CC_PRINT_L1 (1<<18) -# define _CC_PUNCT_L1 (1<<22) -# define _CC_UPPER_L1 (1<<26) -# define _CC_PSXSPC_L1 (1<<20) -# define _CC_BLANK_L1 (1<<5) -# define _CC_IDFIRST_A (1<<12) -# define _CC_IDFIRST_L1 (1<<13) -# define _CC_CHARNAME_CONT (1<<6) +# define _CC_WORDCHAR_A (1<<0) +# define _CC_SPACE_A (1<<1) +# define _CC_DIGIT_A (1<<2) +# define _CC_ALNUMC_A (1<<3) +# define _CC_ALPHA_A (1<<4) +# define _CC_ASCII (1<<5) +# define _CC_CNTRL_A (1<<6) +# define _CC_GRAPH_A (1<<7) +# define _CC_LOWER_A (1<<8) +# define _CC_PRINT_A (1<<9) +# define _CC_PUNCT_A (1<<10) +# define _CC_UPPER_A (1<<11) +# define _CC_XDIGIT_A (1<<12) +# define _CC_PSXSPC_A (1<<13) +# define _CC_BLANK_A (1<<14) + +# define _CC_WORDCHAR_L1 (1<<15) +# define _CC_SPACE_L1 (1<<16) +# define _CC_ALNUMC_L1 (1<<17) +# define _CC_ALPHA_L1 (1<<18) +# define _CC_CNTRL_L1 (1<<19) +# define _CC_GRAPH_L1 (1<<20) +# define _CC_LOWER_L1 (1<<21) +# define _CC_PRINT_L1 (1<<22) +# define _CC_PUNCT_L1 (1<<23) +# define _CC_UPPER_L1 (1<<24) +# define _CC_PSXSPC_L1 (1<<25) +# define _CC_BLANK_L1 (1<<26) +# define _CC_IDFIRST_A (1<<27) +# define _CC_IDFIRST_L1 (1<<28) +# define _CC_CHARNAME_CONT (1<<29) # define _CC_NONLATIN1_FOLD (1<<30) # define _CC_QUOTEMETA (1U<<31) /* 1U keeps Solaris from griping */ /* Unused: None |