This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.sym: Reorder some entries
[perl5.git] / regnodes.h
1 /* -*- buffer-read-only: t -*-
2    !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
3    This file is built by regen/regcomp.pl from regcomp.sym.
4    Any changes made here will be lost!
5  */
6
7 /* Regops and State definitions */
8
9 #define REGNODE_MAX             109
10 #define REGMATCH_STATE_MAX      149
11
12 #define END                     0       /* 0000 End of program. */
13 #define SUCCEED                 1       /* 0x01 Return from a subroutine, basically. */
14 #define SBOL                    2       /* 0x02 Match "" at beginning of line: /^/, /\A/ */
15 #define BOL                     2       /* 0x02 type alias */
16 #define MBOL                    3       /* 0x03 Same, assuming multiline: /^/m */
17 #define SEOL                    4       /* 0x04 Match "" at end of line: /$/ */
18 #define EOL                     4       /* 0x04 type alias */
19 #define MEOL                    5       /* 0x05 Same, assuming multiline: /$/m */
20 #define EOS                     6       /* 0x06 Match "" at end of string: /\z/ */
21 #define GPOS                    7       /* 0x07 Matches where last m//g left off. */
22 #define BOUND                   8       /* 0x08 Like BOUNDA for non-utf8, otherwise like BOUNDU */
23 #define BOUNDL                  9       /* 0x09 Like BOUND/BOUNDU, but \w and \W are defined by current locale */
24 #define BOUNDU                  10      /* 0x0a Match "" at any boundary of a given type using /u rules. */
25 #define BOUNDA                  11      /* 0x0b Match "" at any boundary between \w\W or \W\w, where \w is [_a-zA-Z0-9] */
26 #define NBOUND                  12      /* 0x0c Like NBOUNDA for non-utf8, otherwise like BOUNDU */
27 #define NBOUNDL                 13      /* 0x0d Like NBOUND/NBOUNDU, but \w and \W are defined by current locale */
28 #define NBOUNDU                 14      /* 0x0e Match "" at any non-boundary of a given type using using /u rules. */
29 #define NBOUNDA                 15      /* 0x0f Match "" betweeen any \w\w or \W\W, where \w is [_a-zA-Z0-9] */
30 #define REG_ANY                 16      /* 0x10 Match any one character (except newline). */
31 #define SANY                    17      /* 0x11 Match any one character. */
32 #define ANYOF                   18      /* 0x12 Match character in (or not in) this class, single char match only */
33 #define ANYOFD                  19      /* 0x13 Like ANYOF, but /d is in effect */
34 #define ANYOFL                  20      /* 0x14 Like ANYOF, but /l is in effect */
35 #define ANYOFPOSIXL             21      /* 0x15 Like ANYOFL, but matches [[:posix:]] classes */
36 #define ANYOFH                  22      /* 0x16 Like ANYOF, but only has "High" matches, none in the bitmap; the flags field contains the lowest matchable UTF-8 start byte */
37 #define ANYOFHb                 23      /* 0x17 Like ANYOFH, but all matches share the same UTF-8 start byte, given in the flags field */
38 #define ANYOFHr                 24      /* 0x18 Like ANYOFH, but the flags field contains packed bounds for all matchable UTF-8 start bytes. */
39 #define ANYOFHs                 25      /* 0x19 Like ANYOFHb, but has a string field that gives the leading matchable UTF-8 bytes; flags field is len */
40 #define ANYOFR                  26      /* 0x1a Matches any character in the range given by its packed args: upper 12 bits is the max delta from the base lower 20; the flags field contains the lowest matchable UTF-8 start byte */
41 #define ANYOFRb                 27      /* 0x1b Like ANYOFR, but all matches share the same UTF-8 start byte, given in the flags field */
42 #define ANYOFM                  28      /* 0x1c Like ANYOF, but matches an invariant byte as determined by the mask and arg */
43 #define NANYOFM                 29      /* 0x1d complement of ANYOFM */
44 #define POSIXD                  30      /* 0x1e Some [[:class:]] under /d; the FLAGS field gives which one */
45 #define POSIXL                  31      /* 0x1f Some [[:class:]] under /l; the FLAGS field gives which one */
46 #define POSIXU                  32      /* 0x20 Some [[:class:]] under /u; the FLAGS field gives which one */
47 #define POSIXA                  33      /* 0x21 Some [[:class:]] under /a; the FLAGS field gives which one */
48 #define NPOSIXD                 34      /* 0x22 complement of POSIXD, [[:^class:]] */
49 #define NPOSIXL                 35      /* 0x23 complement of POSIXL, [[:^class:]] */
50 #define NPOSIXU                 36      /* 0x24 complement of POSIXU, [[:^class:]] */
51 #define NPOSIXA                 37      /* 0x25 complement of POSIXA, [[:^class:]] */
52 #define CLUMP                   38      /* 0x26 Match any extended grapheme cluster sequence */
53 #define BRANCH                  39      /* 0x27 Match this alternative, or the next... */
54 #define EXACT                   40      /* 0x28 Match this string (flags field is the length). */
55 #define LEXACT                  41      /* 0x29 Match this long string (preceded by length; flags unused). */
56 #define EXACTL                  42      /* 0x2a Like EXACT, but /l is in effect (used so locale-related warnings can be checked for) */
57 #define EXACTF                  43      /* 0x2b Like EXACT, but match using /id rules; (string not UTF-8, ASCII folded; non-ASCII not) */
58 #define EXACTFL                 44      /* 0x2c Like EXACT, but match using /il rules; (string not likely to be folded) */
59 #define EXACTFU                 45      /* 0x2d Like EXACT, but match using /iu rules; (string folded) */
60 #define EXACTFAA                46      /* 0x2e Like EXACT, but match using /iaa rules; (string folded except in non-UTF8 patterns: MICRO, SHARP S; folded length <= unfolded) */
61 #define EXACTFUP                47      /* 0x2f Like EXACT, but match using /iu rules; (string not UTF-8, folded except MICRO, SHARP S: hence Problematic) */
62 #define EXACTFLU8               48      /* 0x30 Like EXACTFU, but use /il, UTF-8, (string is folded, and everything in it is above 255 */
63 #define EXACTFAA_NO_TRIE        49      /* 0x31 Like EXACT, but match using /iaa rules (string not UTF-8, not guaranteed to be folded, not currently trie-able) */
64 #define EXACT_REQ8              50      /* 0x32 Like EXACT, but only UTF-8 encoded targets can match */
65 #define LEXACT_REQ8             51      /* 0x33 Like LEXACT, but only UTF-8 encoded targets can match */
66 #define EXACTFU_REQ8            52      /* 0x34 Like EXACTFU, but only UTF-8 encoded targets can match */
67 #define EXACTFU_S_EDGE          53      /* 0x35 /di rules, but nothing in it precludes /ui, except begins and/or ends with [Ss]; (string not UTF-8; compile-time only) */
68 #define LNBREAK                 54      /* 0x36 generic newline pattern */
69 #define TRIE                    55      /* 0x37 Match many EXACT(F[ALU]?)? at once. flags==type */
70 #define TRIEC                   56      /* 0x38 Same as TRIE, but with embedded charclass data */
71 #define AHOCORASICK             57      /* 0x39 Aho Corasick stclass. flags==type */
72 #define AHOCORASICKC            58      /* 0x3a Same as AHOCORASICK, but with embedded charclass data */
73 #define NOTHING                 59      /* 0x3b Match empty string. */
74 #define TAIL                    60      /* 0x3c Match empty string. Can jump here from outside. */
75 #define STAR                    61      /* 0x3d Match this (simple) thing 0 or more times. */
76 #define PLUS                    62      /* 0x3e Match this (simple) thing 1 or more times. */
77 #define CURLY                   63      /* 0x3f Match this simple thing {n,m} times. */
78 #define CURLYN                  64      /* 0x40 Capture next-after-this simple thing */
79 #define CURLYM                  65      /* 0x41 Capture this medium-complex thing {n,m} times. */
80 #define CURLYX                  66      /* 0x42 Match this complex thing {n,m} times. */
81 #define WHILEM                  67      /* 0x43 Do curly processing and see if rest matches. */
82 #define OPEN                    68      /* 0x44 Mark this point in input as start of #n. */
83 #define CLOSE                   69      /* 0x45 Close corresponding OPEN of #n. */
84 #define SROPEN                  70      /* 0x46 Same as OPEN, but for script run */
85 #define SRCLOSE                 71      /* 0x47 Close preceding SROPEN */
86 #define REF                     72      /* 0x48 Match some already matched string */
87 #define REFF                    73      /* 0x49 Match already matched string, using /di rules. */
88 #define REFFL                   74      /* 0x4a Match already matched string, using /li rules. */
89 #define REFFU                   75      /* 0x4b Match already matched string, usng /ui. */
90 #define REFFA                   76      /* 0x4c Match already matched string, using /aai rules. */
91 #define REFN                    77      /* 0x4d Match some already matched string */
92 #define REFFN                   78      /* 0x4e Match already matched string, using /di rules. */
93 #define REFFLN                  79      /* 0x4f Match already matched string, using /li rules. */
94 #define REFFUN                  80      /* 0x50 Match already matched string, using /ui rules. */
95 #define REFFAN                  81      /* 0x51 Match already matched string, using /aai rules. */
96 #define LONGJMP                 82      /* 0x52 Jump far away. */
97 #define BRANCHJ                 83      /* 0x53 BRANCH with long offset. */
98 #define IFMATCH                 84      /* 0x54 Succeeds if the following matches; non-zero flags "f", next_off "o" means lookbehind assertion starting "f..(f-o)" characters before current */
99 #define UNLESSM                 85      /* 0x55 Fails if the following matches; non-zero flags "f", next_off "o" means lookbehind assertion starting "f..(f-o)" characters before current */
100 #define SUSPEND                 86      /* 0x56 "Independent" sub-RE. */
101 #define IFTHEN                  87      /* 0x57 Switch, should be preceded by switcher. */
102 #define GROUPP                  88      /* 0x58 Whether the group matched. */
103 #define EVAL                    89      /* 0x59 Execute some Perl code. */
104 #define MINMOD                  90      /* 0x5a Next operator is not greedy. */
105 #define LOGICAL                 91      /* 0x5b Next opcode should set the flag only. */
106 #define RENUM                   92      /* 0x5c Group with independently numbered parens. */
107 #define GOSUB                   93      /* 0x5d recurse to paren arg1 at (signed) ofs arg2 */
108 #define GROUPPN                 94      /* 0x5e Whether the group matched. */
109 #define INSUBP                  95      /* 0x5f Whether we are in a specific recurse. */
110 #define DEFINEP                 96      /* 0x60 Never execute directly. */
111 #define ENDLIKE                 97      /* 0x61 Used only for the type field of verbs */
112 #define OPFAIL                  98      /* 0x62 Same as (?!), but with verb arg */
113 #define ACCEPT                  99      /* 0x63 Accepts the current matched string, with verbar */
114 #define VERB                    100     /* 0x64 Used only for the type field of verbs */
115 #define PRUNE                   101     /* 0x65 Pattern fails at this startpoint if no-backtracking through this */
116 #define MARKPOINT               102     /* 0x66 Push the current location for rollback by cut. */
117 #define SKIP                    103     /* 0x67 On failure skip forward (to the mark) before retrying */
118 #define COMMIT                  104     /* 0x68 Pattern fails outright if backtracking through this */
119 #define CUTGROUP                105     /* 0x69 On failure go to the next alternation in the group */
120 #define KEEPS                   106     /* 0x6a $& begins here. */
121 #define OPTIMIZED               107     /* 0x6b Placeholder for dump. */
122 #define PSEUDO                  108     /* 0x6c Pseudo opcode for internal use. */
123 #define REGEX_SET               109     /* 0x6d Regex set, temporary node used in pre-optimization compilation */
124         /* ------------ States ------------- */
125 #define TRIE_next               (REGNODE_MAX + 1)       /* state for TRIE */
126 #define TRIE_next_fail          (REGNODE_MAX + 2)       /* state for TRIE */
127 #define EVAL_B                  (REGNODE_MAX + 3)       /* state for EVAL */
128 #define EVAL_B_fail             (REGNODE_MAX + 4)       /* state for EVAL */
129 #define EVAL_postponed_AB       (REGNODE_MAX + 5)       /* state for EVAL */
130 #define EVAL_postponed_AB_fail  (REGNODE_MAX + 6)       /* state for EVAL */
131 #define CURLYX_end              (REGNODE_MAX + 7)       /* state for CURLYX */
132 #define CURLYX_end_fail         (REGNODE_MAX + 8)       /* state for CURLYX */
133 #define WHILEM_A_pre            (REGNODE_MAX + 9)       /* state for WHILEM */
134 #define WHILEM_A_pre_fail       (REGNODE_MAX + 10)      /* state for WHILEM */
135 #define WHILEM_A_min            (REGNODE_MAX + 11)      /* state for WHILEM */
136 #define WHILEM_A_min_fail       (REGNODE_MAX + 12)      /* state for WHILEM */
137 #define WHILEM_A_max            (REGNODE_MAX + 13)      /* state for WHILEM */
138 #define WHILEM_A_max_fail       (REGNODE_MAX + 14)      /* state for WHILEM */
139 #define WHILEM_B_min            (REGNODE_MAX + 15)      /* state for WHILEM */
140 #define WHILEM_B_min_fail       (REGNODE_MAX + 16)      /* state for WHILEM */
141 #define WHILEM_B_max            (REGNODE_MAX + 17)      /* state for WHILEM */
142 #define WHILEM_B_max_fail       (REGNODE_MAX + 18)      /* state for WHILEM */
143 #define BRANCH_next             (REGNODE_MAX + 19)      /* state for BRANCH */
144 #define BRANCH_next_fail        (REGNODE_MAX + 20)      /* state for BRANCH */
145 #define CURLYM_A                (REGNODE_MAX + 21)      /* state for CURLYM */
146 #define CURLYM_A_fail           (REGNODE_MAX + 22)      /* state for CURLYM */
147 #define CURLYM_B                (REGNODE_MAX + 23)      /* state for CURLYM */
148 #define CURLYM_B_fail           (REGNODE_MAX + 24)      /* state for CURLYM */
149 #define IFMATCH_A               (REGNODE_MAX + 25)      /* state for IFMATCH */
150 #define IFMATCH_A_fail          (REGNODE_MAX + 26)      /* state for IFMATCH */
151 #define CURLY_B_min             (REGNODE_MAX + 27)      /* state for CURLY */
152 #define CURLY_B_min_fail        (REGNODE_MAX + 28)      /* state for CURLY */
153 #define CURLY_B_max             (REGNODE_MAX + 29)      /* state for CURLY */
154 #define CURLY_B_max_fail        (REGNODE_MAX + 30)      /* state for CURLY */
155 #define COMMIT_next             (REGNODE_MAX + 31)      /* state for COMMIT */
156 #define COMMIT_next_fail        (REGNODE_MAX + 32)      /* state for COMMIT */
157 #define MARKPOINT_next          (REGNODE_MAX + 33)      /* state for MARKPOINT */
158 #define MARKPOINT_next_fail     (REGNODE_MAX + 34)      /* state for MARKPOINT */
159 #define SKIP_next               (REGNODE_MAX + 35)      /* state for SKIP */
160 #define SKIP_next_fail          (REGNODE_MAX + 36)      /* state for SKIP */
161 #define CUTGROUP_next           (REGNODE_MAX + 37)      /* state for CUTGROUP */
162 #define CUTGROUP_next_fail      (REGNODE_MAX + 38)      /* state for CUTGROUP */
163 #define KEEPS_next              (REGNODE_MAX + 39)      /* state for KEEPS */
164 #define KEEPS_next_fail         (REGNODE_MAX + 40)      /* state for KEEPS */
165
166 /* PL_regkind[] What type of regop or state is this. */
167
168 #ifndef DOINIT
169 EXTCONST U8 PL_regkind[];
170 #else
171 EXTCONST U8 PL_regkind[] = {
172         END,            /* END                    */
173         END,            /* SUCCEED                */
174         BOL,            /* SBOL                   */
175         BOL,            /* MBOL                   */
176         EOL,            /* SEOL                   */
177         EOL,            /* MEOL                   */
178         EOL,            /* EOS                    */
179         GPOS,           /* GPOS                   */
180         BOUND,          /* BOUND                  */
181         BOUND,          /* BOUNDL                 */
182         BOUND,          /* BOUNDU                 */
183         BOUND,          /* BOUNDA                 */
184         NBOUND,         /* NBOUND                 */
185         NBOUND,         /* NBOUNDL                */
186         NBOUND,         /* NBOUNDU                */
187         NBOUND,         /* NBOUNDA                */
188         REG_ANY,        /* REG_ANY                */
189         REG_ANY,        /* SANY                   */
190         ANYOF,          /* ANYOF                  */
191         ANYOF,          /* ANYOFD                 */
192         ANYOF,          /* ANYOFL                 */
193         ANYOF,          /* ANYOFPOSIXL            */
194         ANYOF,          /* ANYOFH                 */
195         ANYOF,          /* ANYOFHb                */
196         ANYOF,          /* ANYOFHr                */
197         ANYOF,          /* ANYOFHs                */
198         ANYOFR,         /* ANYOFR                 */
199         ANYOFR,         /* ANYOFRb                */
200         ANYOFM,         /* ANYOFM                 */
201         ANYOFM,         /* NANYOFM                */
202         POSIXD,         /* POSIXD                 */
203         POSIXD,         /* POSIXL                 */
204         POSIXD,         /* POSIXU                 */
205         POSIXD,         /* POSIXA                 */
206         NPOSIXD,        /* NPOSIXD                */
207         NPOSIXD,        /* NPOSIXL                */
208         NPOSIXD,        /* NPOSIXU                */
209         NPOSIXD,        /* NPOSIXA                */
210         CLUMP,          /* CLUMP                  */
211         BRANCH,         /* BRANCH                 */
212         EXACT,          /* EXACT                  */
213         EXACT,          /* LEXACT                 */
214         EXACT,          /* EXACTL                 */
215         EXACT,          /* EXACTF                 */
216         EXACT,          /* EXACTFL                */
217         EXACT,          /* EXACTFU                */
218         EXACT,          /* EXACTFAA               */
219         EXACT,          /* EXACTFUP               */
220         EXACT,          /* EXACTFLU8              */
221         EXACT,          /* EXACTFAA_NO_TRIE       */
222         EXACT,          /* EXACT_REQ8             */
223         EXACT,          /* LEXACT_REQ8            */
224         EXACT,          /* EXACTFU_REQ8           */
225         EXACT,          /* EXACTFU_S_EDGE         */
226         LNBREAK,        /* LNBREAK                */
227         TRIE,           /* TRIE                   */
228         TRIE,           /* TRIEC                  */
229         TRIE,           /* AHOCORASICK            */
230         TRIE,           /* AHOCORASICKC           */
231         NOTHING,        /* NOTHING                */
232         NOTHING,        /* TAIL                   */
233         STAR,           /* STAR                   */
234         PLUS,           /* PLUS                   */
235         CURLY,          /* CURLY                  */
236         CURLY,          /* CURLYN                 */
237         CURLY,          /* CURLYM                 */
238         CURLY,          /* CURLYX                 */
239         WHILEM,         /* WHILEM                 */
240         OPEN,           /* OPEN                   */
241         CLOSE,          /* CLOSE                  */
242         SROPEN,         /* SROPEN                 */
243         SRCLOSE,        /* SRCLOSE                */
244         REF,            /* REF                    */
245         REF,            /* REFF                   */
246         REF,            /* REFFL                  */
247         REF,            /* REFFU                  */
248         REF,            /* REFFA                  */
249         REF,            /* REFN                   */
250         REF,            /* REFFN                  */
251         REF,            /* REFFLN                 */
252         REF,            /* REFFUN                 */
253         REF,            /* REFFAN                 */
254         LONGJMP,        /* LONGJMP                */
255         BRANCHJ,        /* BRANCHJ                */
256         BRANCHJ,        /* IFMATCH                */
257         BRANCHJ,        /* UNLESSM                */
258         BRANCHJ,        /* SUSPEND                */
259         BRANCHJ,        /* IFTHEN                 */
260         GROUPP,         /* GROUPP                 */
261         EVAL,           /* EVAL                   */
262         MINMOD,         /* MINMOD                 */
263         LOGICAL,        /* LOGICAL                */
264         BRANCHJ,        /* RENUM                  */
265         GOSUB,          /* GOSUB                  */
266         GROUPPN,        /* GROUPPN                */
267         INSUBP,         /* INSUBP                 */
268         DEFINEP,        /* DEFINEP                */
269         ENDLIKE,        /* ENDLIKE                */
270         ENDLIKE,        /* OPFAIL                 */
271         ENDLIKE,        /* ACCEPT                 */
272         VERB,           /* VERB                   */
273         VERB,           /* PRUNE                  */
274         VERB,           /* MARKPOINT              */
275         VERB,           /* SKIP                   */
276         VERB,           /* COMMIT                 */
277         VERB,           /* CUTGROUP               */
278         KEEPS,          /* KEEPS                  */
279         NOTHING,        /* OPTIMIZED              */
280         PSEUDO,         /* PSEUDO                 */
281         REGEX_SET,      /* REGEX_SET              */
282         /* ------------ States ------------- */
283         TRIE,           /* TRIE_next              */
284         TRIE,           /* TRIE_next_fail         */
285         EVAL,           /* EVAL_B                 */
286         EVAL,           /* EVAL_B_fail            */
287         EVAL,           /* EVAL_postponed_AB      */
288         EVAL,           /* EVAL_postponed_AB_fail */
289         CURLYX,         /* CURLYX_end             */
290         CURLYX,         /* CURLYX_end_fail        */
291         WHILEM,         /* WHILEM_A_pre           */
292         WHILEM,         /* WHILEM_A_pre_fail      */
293         WHILEM,         /* WHILEM_A_min           */
294         WHILEM,         /* WHILEM_A_min_fail      */
295         WHILEM,         /* WHILEM_A_max           */
296         WHILEM,         /* WHILEM_A_max_fail      */
297         WHILEM,         /* WHILEM_B_min           */
298         WHILEM,         /* WHILEM_B_min_fail      */
299         WHILEM,         /* WHILEM_B_max           */
300         WHILEM,         /* WHILEM_B_max_fail      */
301         BRANCH,         /* BRANCH_next            */
302         BRANCH,         /* BRANCH_next_fail       */
303         CURLYM,         /* CURLYM_A               */
304         CURLYM,         /* CURLYM_A_fail          */
305         CURLYM,         /* CURLYM_B               */
306         CURLYM,         /* CURLYM_B_fail          */
307         IFMATCH,        /* IFMATCH_A              */
308         IFMATCH,        /* IFMATCH_A_fail         */
309         CURLY,          /* CURLY_B_min            */
310         CURLY,          /* CURLY_B_min_fail       */
311         CURLY,          /* CURLY_B_max            */
312         CURLY,          /* CURLY_B_max_fail       */
313         COMMIT,         /* COMMIT_next            */
314         COMMIT,         /* COMMIT_next_fail       */
315         MARKPOINT,      /* MARKPOINT_next         */
316         MARKPOINT,      /* MARKPOINT_next_fail    */
317         SKIP,           /* SKIP_next              */
318         SKIP,           /* SKIP_next_fail         */
319         CUTGROUP,       /* CUTGROUP_next          */
320         CUTGROUP,       /* CUTGROUP_next_fail     */
321         KEEPS,          /* KEEPS_next             */
322         KEEPS,          /* KEEPS_next_fail        */
323 };
324 #endif
325
326 #ifdef REG_COMP_C
327
328 /* regarglen[] - How large is the argument part of the node (in regnodes) */
329
330 static const U8 regarglen[] = {
331         0,                                      /* END          */
332         0,                                      /* SUCCEED      */
333         0,                                      /* SBOL         */
334         0,                                      /* MBOL         */
335         0,                                      /* SEOL         */
336         0,                                      /* MEOL         */
337         0,                                      /* EOS          */
338         0,                                      /* GPOS         */
339         0,                                      /* BOUND        */
340         0,                                      /* BOUNDL       */
341         0,                                      /* BOUNDU       */
342         0,                                      /* BOUNDA       */
343         0,                                      /* NBOUND       */
344         0,                                      /* NBOUNDL      */
345         0,                                      /* NBOUNDU      */
346         0,                                      /* NBOUNDA      */
347         0,                                      /* REG_ANY      */
348         0,                                      /* SANY         */
349         EXTRA_SIZE(struct regnode_charclass),   /* ANYOF        */
350         EXTRA_SIZE(struct regnode_charclass),   /* ANYOFD       */
351         EXTRA_SIZE(struct regnode_charclass),   /* ANYOFL       */
352         EXTRA_SIZE(struct regnode_charclass_posixl),    /* ANYOFPOSIXL  */
353         EXTRA_SIZE(struct regnode_1),           /* ANYOFH       */
354         EXTRA_SIZE(struct regnode_1),           /* ANYOFHb      */
355         EXTRA_SIZE(struct regnode_1),           /* ANYOFHr      */
356         EXTRA_SIZE(struct regnode_1),           /* ANYOFHs      */
357         EXTRA_SIZE(struct regnode_1),           /* ANYOFR       */
358         EXTRA_SIZE(struct regnode_1),           /* ANYOFRb      */
359         EXTRA_SIZE(struct regnode_1),           /* ANYOFM       */
360         EXTRA_SIZE(struct regnode_1),           /* NANYOFM      */
361         0,                                      /* POSIXD       */
362         0,                                      /* POSIXL       */
363         0,                                      /* POSIXU       */
364         0,                                      /* POSIXA       */
365         0,                                      /* NPOSIXD      */
366         0,                                      /* NPOSIXL      */
367         0,                                      /* NPOSIXU      */
368         0,                                      /* NPOSIXA      */
369         0,                                      /* CLUMP        */
370         0,                                      /* BRANCH       */
371         0,                                      /* EXACT        */
372         EXTRA_SIZE(struct regnode_1),           /* LEXACT       */
373         0,                                      /* EXACTL       */
374         0,                                      /* EXACTF       */
375         0,                                      /* EXACTFL      */
376         0,                                      /* EXACTFU      */
377         0,                                      /* EXACTFAA     */
378         0,                                      /* EXACTFUP     */
379         0,                                      /* EXACTFLU8    */
380         0,                                      /* EXACTFAA_NO_TRIE */
381         0,                                      /* EXACT_REQ8   */
382         EXTRA_SIZE(struct regnode_1),           /* LEXACT_REQ8  */
383         0,                                      /* EXACTFU_REQ8 */
384         0,                                      /* EXACTFU_S_EDGE */
385         0,                                      /* LNBREAK      */
386         EXTRA_SIZE(struct regnode_1),           /* TRIE         */
387         EXTRA_SIZE(struct regnode_charclass),   /* TRIEC        */
388         EXTRA_SIZE(struct regnode_1),           /* AHOCORASICK  */
389         EXTRA_SIZE(struct regnode_charclass),   /* AHOCORASICKC */
390         0,                                      /* NOTHING      */
391         0,                                      /* TAIL         */
392         0,                                      /* STAR         */
393         0,                                      /* PLUS         */
394         EXTRA_SIZE(struct regnode_2),           /* CURLY        */
395         EXTRA_SIZE(struct regnode_2),           /* CURLYN       */
396         EXTRA_SIZE(struct regnode_2),           /* CURLYM       */
397         EXTRA_SIZE(struct regnode_2),           /* CURLYX       */
398         0,                                      /* WHILEM       */
399         EXTRA_SIZE(struct regnode_1),           /* OPEN         */
400         EXTRA_SIZE(struct regnode_1),           /* CLOSE        */
401         0,                                      /* SROPEN       */
402         0,                                      /* SRCLOSE      */
403         EXTRA_SIZE(struct regnode_1),           /* REF          */
404         EXTRA_SIZE(struct regnode_1),           /* REFF         */
405         EXTRA_SIZE(struct regnode_1),           /* REFFL        */
406         EXTRA_SIZE(struct regnode_1),           /* REFFU        */
407         EXTRA_SIZE(struct regnode_1),           /* REFFA        */
408         EXTRA_SIZE(struct regnode_1),           /* REFN         */
409         EXTRA_SIZE(struct regnode_1),           /* REFFN        */
410         EXTRA_SIZE(struct regnode_1),           /* REFFLN       */
411         EXTRA_SIZE(struct regnode_1),           /* REFFUN       */
412         EXTRA_SIZE(struct regnode_1),           /* REFFAN       */
413         EXTRA_SIZE(struct regnode_1),           /* LONGJMP      */
414         EXTRA_SIZE(struct regnode_1),           /* BRANCHJ      */
415         EXTRA_SIZE(struct regnode_1),           /* IFMATCH      */
416         EXTRA_SIZE(struct regnode_1),           /* UNLESSM      */
417         EXTRA_SIZE(struct regnode_1),           /* SUSPEND      */
418         EXTRA_SIZE(struct regnode_1),           /* IFTHEN       */
419         EXTRA_SIZE(struct regnode_1),           /* GROUPP       */
420         EXTRA_SIZE(struct regnode_2L),          /* EVAL         */
421         0,                                      /* MINMOD       */
422         0,                                      /* LOGICAL      */
423         EXTRA_SIZE(struct regnode_1),           /* RENUM        */
424         EXTRA_SIZE(struct regnode_2L),          /* GOSUB        */
425         EXTRA_SIZE(struct regnode_1),           /* GROUPPN      */
426         EXTRA_SIZE(struct regnode_1),           /* INSUBP       */
427         EXTRA_SIZE(struct regnode_1),           /* DEFINEP      */
428         0,                                      /* ENDLIKE      */
429         EXTRA_SIZE(struct regnode_1),           /* OPFAIL       */
430         EXTRA_SIZE(struct regnode_2L),          /* ACCEPT       */
431         EXTRA_SIZE(struct regnode_1),           /* VERB         */
432         EXTRA_SIZE(struct regnode_1),           /* PRUNE        */
433         EXTRA_SIZE(struct regnode_1),           /* MARKPOINT    */
434         EXTRA_SIZE(struct regnode_1),           /* SKIP         */
435         EXTRA_SIZE(struct regnode_1),           /* COMMIT       */
436         EXTRA_SIZE(struct regnode_1),           /* CUTGROUP     */
437         0,                                      /* KEEPS        */
438         0,                                      /* OPTIMIZED    */
439         0,                                      /* PSEUDO       */
440         EXTRA_SIZE(struct regnode_p),           /* REGEX_SET    */
441 };
442
443 /* reg_off_by_arg[] - Which argument holds the offset to the next node */
444
445 static const char reg_off_by_arg[] = {
446         0,      /* END          */
447         0,      /* SUCCEED      */
448         0,      /* SBOL         */
449         0,      /* MBOL         */
450         0,      /* SEOL         */
451         0,      /* MEOL         */
452         0,      /* EOS          */
453         0,      /* GPOS         */
454         0,      /* BOUND        */
455         0,      /* BOUNDL       */
456         0,      /* BOUNDU       */
457         0,      /* BOUNDA       */
458         0,      /* NBOUND       */
459         0,      /* NBOUNDL      */
460         0,      /* NBOUNDU      */
461         0,      /* NBOUNDA      */
462         0,      /* REG_ANY      */
463         0,      /* SANY         */
464         0,      /* ANYOF        */
465         0,      /* ANYOFD       */
466         0,      /* ANYOFL       */
467         0,      /* ANYOFPOSIXL  */
468         0,      /* ANYOFH       */
469         0,      /* ANYOFHb      */
470         0,      /* ANYOFHr      */
471         0,      /* ANYOFHs      */
472         0,      /* ANYOFR       */
473         0,      /* ANYOFRb      */
474         0,      /* ANYOFM       */
475         0,      /* NANYOFM      */
476         0,      /* POSIXD       */
477         0,      /* POSIXL       */
478         0,      /* POSIXU       */
479         0,      /* POSIXA       */
480         0,      /* NPOSIXD      */
481         0,      /* NPOSIXL      */
482         0,      /* NPOSIXU      */
483         0,      /* NPOSIXA      */
484         0,      /* CLUMP        */
485         0,      /* BRANCH       */
486         0,      /* EXACT        */
487         0,      /* LEXACT       */
488         0,      /* EXACTL       */
489         0,      /* EXACTF       */
490         0,      /* EXACTFL      */
491         0,      /* EXACTFU      */
492         0,      /* EXACTFAA     */
493         0,      /* EXACTFUP     */
494         0,      /* EXACTFLU8    */
495         0,      /* EXACTFAA_NO_TRIE */
496         0,      /* EXACT_REQ8   */
497         0,      /* LEXACT_REQ8  */
498         0,      /* EXACTFU_REQ8 */
499         0,      /* EXACTFU_S_EDGE */
500         0,      /* LNBREAK      */
501         0,      /* TRIE         */
502         0,      /* TRIEC        */
503         0,      /* AHOCORASICK  */
504         0,      /* AHOCORASICKC */
505         0,      /* NOTHING      */
506         0,      /* TAIL         */
507         0,      /* STAR         */
508         0,      /* PLUS         */
509         0,      /* CURLY        */
510         0,      /* CURLYN       */
511         0,      /* CURLYM       */
512         0,      /* CURLYX       */
513         0,      /* WHILEM       */
514         0,      /* OPEN         */
515         0,      /* CLOSE        */
516         0,      /* SROPEN       */
517         0,      /* SRCLOSE      */
518         0,      /* REF          */
519         0,      /* REFF         */
520         0,      /* REFFL        */
521         0,      /* REFFU        */
522         0,      /* REFFA        */
523         0,      /* REFN         */
524         0,      /* REFFN        */
525         0,      /* REFFLN       */
526         0,      /* REFFUN       */
527         0,      /* REFFAN       */
528         1,      /* LONGJMP      */
529         1,      /* BRANCHJ      */
530         1,      /* IFMATCH      */
531         1,      /* UNLESSM      */
532         1,      /* SUSPEND      */
533         1,      /* IFTHEN       */
534         0,      /* GROUPP       */
535         0,      /* EVAL         */
536         0,      /* MINMOD       */
537         0,      /* LOGICAL      */
538         1,      /* RENUM        */
539         0,      /* GOSUB        */
540         0,      /* GROUPPN      */
541         0,      /* INSUBP       */
542         0,      /* DEFINEP      */
543         0,      /* ENDLIKE      */
544         0,      /* OPFAIL       */
545         0,      /* ACCEPT       */
546         0,      /* VERB         */
547         0,      /* PRUNE        */
548         0,      /* MARKPOINT    */
549         0,      /* SKIP         */
550         0,      /* COMMIT       */
551         0,      /* CUTGROUP     */
552         0,      /* KEEPS        */
553         0,      /* OPTIMIZED    */
554         0,      /* PSEUDO       */
555         0,      /* REGEX_SET    */
556 };
557
558 #endif /* REG_COMP_C */
559
560
561 /* reg_name[] - Opcode/state names in string form, for debugging */
562
563 #ifndef DOINIT
564 EXTCONST char * PL_reg_name[];
565 #else
566 EXTCONST char * const PL_reg_name[] = {
567         "END",                          /* 0000 */
568         "SUCCEED",                      /* 0x01 */
569         "SBOL",                         /* 0x02 */
570         "MBOL",                         /* 0x03 */
571         "SEOL",                         /* 0x04 */
572         "MEOL",                         /* 0x05 */
573         "EOS",                          /* 0x06 */
574         "GPOS",                         /* 0x07 */
575         "BOUND",                        /* 0x08 */
576         "BOUNDL",                       /* 0x09 */
577         "BOUNDU",                       /* 0x0a */
578         "BOUNDA",                       /* 0x0b */
579         "NBOUND",                       /* 0x0c */
580         "NBOUNDL",                      /* 0x0d */
581         "NBOUNDU",                      /* 0x0e */
582         "NBOUNDA",                      /* 0x0f */
583         "REG_ANY",                      /* 0x10 */
584         "SANY",                         /* 0x11 */
585         "ANYOF",                        /* 0x12 */
586         "ANYOFD",                       /* 0x13 */
587         "ANYOFL",                       /* 0x14 */
588         "ANYOFPOSIXL",                  /* 0x15 */
589         "ANYOFH",                       /* 0x16 */
590         "ANYOFHb",                      /* 0x17 */
591         "ANYOFHr",                      /* 0x18 */
592         "ANYOFHs",                      /* 0x19 */
593         "ANYOFR",                       /* 0x1a */
594         "ANYOFRb",                      /* 0x1b */
595         "ANYOFM",                       /* 0x1c */
596         "NANYOFM",                      /* 0x1d */
597         "POSIXD",                       /* 0x1e */
598         "POSIXL",                       /* 0x1f */
599         "POSIXU",                       /* 0x20 */
600         "POSIXA",                       /* 0x21 */
601         "NPOSIXD",                      /* 0x22 */
602         "NPOSIXL",                      /* 0x23 */
603         "NPOSIXU",                      /* 0x24 */
604         "NPOSIXA",                      /* 0x25 */
605         "CLUMP",                        /* 0x26 */
606         "BRANCH",                       /* 0x27 */
607         "EXACT",                        /* 0x28 */
608         "LEXACT",                       /* 0x29 */
609         "EXACTL",                       /* 0x2a */
610         "EXACTF",                       /* 0x2b */
611         "EXACTFL",                      /* 0x2c */
612         "EXACTFU",                      /* 0x2d */
613         "EXACTFAA",                     /* 0x2e */
614         "EXACTFUP",                     /* 0x2f */
615         "EXACTFLU8",                    /* 0x30 */
616         "EXACTFAA_NO_TRIE",             /* 0x31 */
617         "EXACT_REQ8",                   /* 0x32 */
618         "LEXACT_REQ8",                  /* 0x33 */
619         "EXACTFU_REQ8",                 /* 0x34 */
620         "EXACTFU_S_EDGE",               /* 0x35 */
621         "LNBREAK",                      /* 0x36 */
622         "TRIE",                         /* 0x37 */
623         "TRIEC",                        /* 0x38 */
624         "AHOCORASICK",                  /* 0x39 */
625         "AHOCORASICKC",                 /* 0x3a */
626         "NOTHING",                      /* 0x3b */
627         "TAIL",                         /* 0x3c */
628         "STAR",                         /* 0x3d */
629         "PLUS",                         /* 0x3e */
630         "CURLY",                        /* 0x3f */
631         "CURLYN",                       /* 0x40 */
632         "CURLYM",                       /* 0x41 */
633         "CURLYX",                       /* 0x42 */
634         "WHILEM",                       /* 0x43 */
635         "OPEN",                         /* 0x44 */
636         "CLOSE",                        /* 0x45 */
637         "SROPEN",                       /* 0x46 */
638         "SRCLOSE",                      /* 0x47 */
639         "REF",                          /* 0x48 */
640         "REFF",                         /* 0x49 */
641         "REFFL",                        /* 0x4a */
642         "REFFU",                        /* 0x4b */
643         "REFFA",                        /* 0x4c */
644         "REFN",                         /* 0x4d */
645         "REFFN",                        /* 0x4e */
646         "REFFLN",                       /* 0x4f */
647         "REFFUN",                       /* 0x50 */
648         "REFFAN",                       /* 0x51 */
649         "LONGJMP",                      /* 0x52 */
650         "BRANCHJ",                      /* 0x53 */
651         "IFMATCH",                      /* 0x54 */
652         "UNLESSM",                      /* 0x55 */
653         "SUSPEND",                      /* 0x56 */
654         "IFTHEN",                       /* 0x57 */
655         "GROUPP",                       /* 0x58 */
656         "EVAL",                         /* 0x59 */
657         "MINMOD",                       /* 0x5a */
658         "LOGICAL",                      /* 0x5b */
659         "RENUM",                        /* 0x5c */
660         "GOSUB",                        /* 0x5d */
661         "GROUPPN",                      /* 0x5e */
662         "INSUBP",                       /* 0x5f */
663         "DEFINEP",                      /* 0x60 */
664         "ENDLIKE",                      /* 0x61 */
665         "OPFAIL",                       /* 0x62 */
666         "ACCEPT",                       /* 0x63 */
667         "VERB",                         /* 0x64 */
668         "PRUNE",                        /* 0x65 */
669         "MARKPOINT",                    /* 0x66 */
670         "SKIP",                         /* 0x67 */
671         "COMMIT",                       /* 0x68 */
672         "CUTGROUP",                     /* 0x69 */
673         "KEEPS",                        /* 0x6a */
674         "OPTIMIZED",                    /* 0x6b */
675         "PSEUDO",                       /* 0x6c */
676         "REGEX_SET",                    /* 0x6d */
677         /* ------------ States ------------- */
678         "TRIE_next",                    /* REGNODE_MAX +0x01 */
679         "TRIE_next_fail",               /* REGNODE_MAX +0x02 */
680         "EVAL_B",                       /* REGNODE_MAX +0x03 */
681         "EVAL_B_fail",                  /* REGNODE_MAX +0x04 */
682         "EVAL_postponed_AB",            /* REGNODE_MAX +0x05 */
683         "EVAL_postponed_AB_fail",       /* REGNODE_MAX +0x06 */
684         "CURLYX_end",                   /* REGNODE_MAX +0x07 */
685         "CURLYX_end_fail",              /* REGNODE_MAX +0x08 */
686         "WHILEM_A_pre",                 /* REGNODE_MAX +0x09 */
687         "WHILEM_A_pre_fail",            /* REGNODE_MAX +0x0a */
688         "WHILEM_A_min",                 /* REGNODE_MAX +0x0b */
689         "WHILEM_A_min_fail",            /* REGNODE_MAX +0x0c */
690         "WHILEM_A_max",                 /* REGNODE_MAX +0x0d */
691         "WHILEM_A_max_fail",            /* REGNODE_MAX +0x0e */
692         "WHILEM_B_min",                 /* REGNODE_MAX +0x0f */
693         "WHILEM_B_min_fail",            /* REGNODE_MAX +0x10 */
694         "WHILEM_B_max",                 /* REGNODE_MAX +0x11 */
695         "WHILEM_B_max_fail",            /* REGNODE_MAX +0x12 */
696         "BRANCH_next",                  /* REGNODE_MAX +0x13 */
697         "BRANCH_next_fail",             /* REGNODE_MAX +0x14 */
698         "CURLYM_A",                     /* REGNODE_MAX +0x15 */
699         "CURLYM_A_fail",                /* REGNODE_MAX +0x16 */
700         "CURLYM_B",                     /* REGNODE_MAX +0x17 */
701         "CURLYM_B_fail",                /* REGNODE_MAX +0x18 */
702         "IFMATCH_A",                    /* REGNODE_MAX +0x19 */
703         "IFMATCH_A_fail",               /* REGNODE_MAX +0x1a */
704         "CURLY_B_min",                  /* REGNODE_MAX +0x1b */
705         "CURLY_B_min_fail",             /* REGNODE_MAX +0x1c */
706         "CURLY_B_max",                  /* REGNODE_MAX +0x1d */
707         "CURLY_B_max_fail",             /* REGNODE_MAX +0x1e */
708         "COMMIT_next",                  /* REGNODE_MAX +0x1f */
709         "COMMIT_next_fail",             /* REGNODE_MAX +0x20 */
710         "MARKPOINT_next",               /* REGNODE_MAX +0x21 */
711         "MARKPOINT_next_fail",          /* REGNODE_MAX +0x22 */
712         "SKIP_next",                    /* REGNODE_MAX +0x23 */
713         "SKIP_next_fail",               /* REGNODE_MAX +0x24 */
714         "CUTGROUP_next",                /* REGNODE_MAX +0x25 */
715         "CUTGROUP_next_fail",           /* REGNODE_MAX +0x26 */
716         "KEEPS_next",                   /* REGNODE_MAX +0x27 */
717         "KEEPS_next_fail",              /* REGNODE_MAX +0x28 */
718 };
719 #endif /* DOINIT */
720
721 /* PL_reg_extflags_name[] - Opcode/state names in string form, for debugging */
722
723 #ifndef DOINIT
724 EXTCONST char * PL_reg_extflags_name[];
725 #else
726 EXTCONST char * const PL_reg_extflags_name[] = {
727         /* Bits in extflags defined: 11111111111111110000111111111111 */
728         "MULTILINE",        /* 0x00000001 */
729         "SINGLELINE",       /* 0x00000002 */
730         "FOLD",             /* 0x00000004 */
731         "EXTENDED",         /* 0x00000008 */
732         "EXTENDED_MORE",    /* 0x00000010 */
733         "NOCAPTURE",        /* 0x00000020 */
734         "KEEPCOPY",         /* 0x00000040 */
735         "CHARSET0",         /* 0x00000080 : "CHARSET" - 0x00000380 */
736         "CHARSET1",         /* 0x00000100 : "CHARSET" - 0x00000380 */
737         "CHARSET2",         /* 0x00000200 : "CHARSET" - 0x00000380 */
738         "STRICT",           /* 0x00000400 */
739         "SPLIT",            /* 0x00000800 */
740         "UNUSED_BIT_12",    /* 0x00001000 */
741         "UNUSED_BIT_13",    /* 0x00002000 */
742         "UNUSED_BIT_14",    /* 0x00004000 */
743         "UNUSED_BIT_15",    /* 0x00008000 */
744         "NO_INPLACE_SUBST", /* 0x00010000 */
745         "EVAL_SEEN",        /* 0x00020000 */
746         "UNBOUNDED_QUANTIFIER_SEEN",/* 0x00040000 */
747         "CHECK_ALL",        /* 0x00080000 */
748         "MATCH_UTF8",       /* 0x00100000 */
749         "USE_INTUIT_NOML",  /* 0x00200000 */
750         "USE_INTUIT_ML",    /* 0x00400000 */
751         "INTUIT_TAIL",      /* 0x00800000 */
752         "IS_ANCHORED",      /* 0x01000000 */
753         "COPY_DONE",        /* 0x02000000 */
754         "TAINTED_SEEN",     /* 0x04000000 */
755         "TAINTED",          /* 0x08000000 */
756         "START_ONLY",       /* 0x10000000 */
757         "SKIPWHITE",        /* 0x20000000 */
758         "WHITE",            /* 0x40000000 */
759         "NULL",             /* 0x80000000 */
760 };
761 #endif /* DOINIT */
762
763 #ifdef DEBUGGING
764 #  define REG_EXTFLAGS_NAME_SIZE 32
765 #endif
766
767 /* PL_reg_intflags_name[] - Opcode/state names in string form, for debugging */
768
769 #ifndef DOINIT
770 EXTCONST char * PL_reg_intflags_name[];
771 #else
772 EXTCONST char * const PL_reg_intflags_name[] = {
773         "SKIP",                       /* 0x00000001 - PREGf_SKIP */
774         "IMPLICIT",                   /* 0x00000002 - PREGf_IMPLICIT -  Converted .* to ^.*  */
775         "NAUGHTY",                    /* 0x00000004 - PREGf_NAUGHTY -  how exponential is this pattern?  */
776         "VERBARG_SEEN",               /* 0x00000008 - PREGf_VERBARG_SEEN */
777         "CUTGROUP_SEEN",              /* 0x00000010 - PREGf_CUTGROUP_SEEN */
778         "USE_RE_EVAL",                /* 0x00000020 - PREGf_USE_RE_EVAL -  compiled with "use re 'eval'"  */
779         "NOSCAN",                     /* 0x00000040 - PREGf_NOSCAN */
780         "GPOS_SEEN",                  /* 0x00000100 - PREGf_GPOS_SEEN */
781         "GPOS_FLOAT",                 /* 0x00000200 - PREGf_GPOS_FLOAT */
782         "ANCH_MBOL",                  /* 0x00000400 - PREGf_ANCH_MBOL */
783         "ANCH_SBOL",                  /* 0x00000800 - PREGf_ANCH_SBOL */
784         "ANCH_GPOS",                  /* 0x00001000 - PREGf_ANCH_GPOS */
785         "RECURSE_SEEN",               /* 0x00002000 - PREGf_RECURSE_SEEN */
786 };
787 #endif /* DOINIT */
788
789 #ifdef DEBUGGING
790 #  define REG_INTFLAGS_NAME_SIZE 13
791 #endif
792
793 /* The following have no fixed length. U8 so we can do strchr() on it. */
794 #define REGNODE_VARIES(node) (PL_varies_bitmask[(node) >> 3] & (1 << ((node) & 7)))
795
796 #ifndef DOINIT
797 EXTCONST U8 PL_varies[] __attribute__deprecated__;
798 #else
799 EXTCONST U8 PL_varies[] __attribute__deprecated__ = {
800     CLUMP, BRANCH, STAR, PLUS, CURLY, CURLYN, CURLYM, CURLYX, WHILEM, REF,
801     REFF, REFFL, REFFU, REFFA, REFN, REFFN, REFFLN, REFFUN, REFFAN,
802     BRANCHJ, SUSPEND, IFTHEN,
803     0
804 };
805 #endif /* DOINIT */
806
807 #ifndef DOINIT
808 EXTCONST U8 PL_varies_bitmask[];
809 #else
810 EXTCONST U8 PL_varies_bitmask[] = {
811     0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0xE0, 0x0F, 0xFF, 0xCB, 0x00, 0x00, 0x00
812 };
813 #endif /* DOINIT */
814
815 /* The following always have a length of 1. U8 we can do strchr() on it. */
816 /* (Note that length 1 means "one character" under UTF8, not "one octet".) */
817 #define REGNODE_SIMPLE(node) (PL_simple_bitmask[(node) >> 3] & (1 << ((node) & 7)))
818
819 #ifndef DOINIT
820 EXTCONST U8 PL_simple[] __attribute__deprecated__;
821 #else
822 EXTCONST U8 PL_simple[] __attribute__deprecated__ = {
823     REG_ANY, SANY, ANYOF, ANYOFD, ANYOFL, ANYOFPOSIXL, ANYOFH, ANYOFHb,
824     ANYOFHr, ANYOFHs, ANYOFR, ANYOFRb, ANYOFM, NANYOFM, POSIXD, POSIXL,
825     POSIXU, POSIXA, NPOSIXD, NPOSIXL, NPOSIXU, NPOSIXA, REGEX_SET,
826     0
827 };
828 #endif /* DOINIT */
829
830 #ifndef DOINIT
831 EXTCONST U8 PL_simple_bitmask[];
832 #else
833 EXTCONST U8 PL_simple_bitmask[] = {
834     0x00, 0x00, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20
835 };
836 #endif /* DOINIT */
837
838 /* ex: set ro: */