summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-07-01 10:35:30 -0600
committerKarl Williamson <khw@cpan.org>2022-07-01 11:16:39 -0600
commit35b455082a57df8e179967172e8037b4d1658ff4 (patch)
treeda46f3622f57090397672045136dcc8a10af5039 /regcomp.h
parentd62feba66bf43f35d092bb026694f927e9f94d38 (diff)
downloadperl-35b455082a57df8e179967172e8037b4d1658ff4.tar.gz
Revert "regex: Add POSIXA1R node"
This reverts commit d62feba66bf43f35d092bb026694f927e9f94d38. As explained in its commit message. It adds some comments to point out that the commit exists, for the curious.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/regcomp.h b/regcomp.h
index 1d22d5bf7e..030bfa0534 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -119,37 +119,6 @@ struct regnode_string {
char string[1];
};
-/* Low 3 bits are for the 16's count */
-#define POSIXA1R_1x_SHIFT 3
-#define POSIXA1R_1L_SHIFT 4
-#define POSIXA1R_MASK_SHIFT 5 /* Has to be the bit that differs between
- upper and lower-case */
-#define POSIXA1R_16L_SHIFT 6
-#define POSIXA1R_68L_SHIFT 7
-
-#define POSIXA1R_1x_BIT (1U << POSIXA1R_1x_SHIFT)
-#define POSIXA1R_1L_BIT (1U << POSIXA1R_1L_SHIFT)
-#define POSIXA1R_16L_BIT (1U << POSIXA1R_16L_SHIFT)
-#define POSIXA1R_68L_BIT (1U << POSIXA1R_68L_SHIFT)
-#define POSIXA1R_ALPHA_BIT (1U << POSIXA1R_MASK_SHIFT)
-
-#define POSIXA1Rbase(n) \
- ( '0' - 48 \
- + (1 * ((n)->flags & POSIXA1R_1x_BIT) >> POSIXA1R_1x_SHIFT) \
- + (16 * ((n)->flags & 7)))
-
-#define POSIXA1Rdelta(n) \
- ( 9 \
- + ( 1 * (((n)->flags & POSIXA1R_1L_BIT) >> POSIXA1R_1L_SHIFT)) \
- + (16 * (((n)->flags & POSIXA1R_16L_BIT) >> POSIXA1R_16L_SHIFT)) \
- + (68 * (((n)->flags & POSIXA1R_68L_BIT) >> POSIXA1R_68L_SHIFT)))
-/* __ Summing the above yields:
- * 94 which is the delta for [:print:], SPACE to TILDE (32 to 126 */
-
-#define POSIXA1Rmasked(n, c) \
- (((U8) (c)) & (((n)->flags & POSIXA1R_ALPHA_BIT) | ~POSIXA1R_ALPHA_BIT))
-
-
struct regnode_lstring { /* Constructed this way to keep the string aligned. */
U8 flags;
U8 type;