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