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