From 35b455082a57df8e179967172e8037b4d1658ff4 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 1 Jul 2022 10:35:30 -0600 Subject: 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. --- regcomp.h | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'regcomp.h') 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; -- cgit v1.2.1