This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op_reg_common.h: Refactor variable for safety
[perl5.git] / op_reg_common.h
CommitLineData
1850c8f9
KW
1/* op_reg_common.h
2 *
3 * Definitions common to by op.h and regexp.h
4 *
5 * Copyright (C) 2010 by Larry Wall and others
6 *
7 * You may distribute under the terms of either the GNU General Public
8 * License or the Artistic License, as specified in the README file.
9 *
10 */
11
12/* These defines are used in both op.h and regexp.h The definitions use the
13 * shift form so that ext/B/defsubs_h.PL will pick them up */
14#define RXf_PMf_MULTILINE (1 << 0) /* /m */
15#define PMf_MULTILINE (1 << 0) /* /m */
16#define RXf_PMf_SINGLELINE (1 << 1) /* /s */
17#define PMf_SINGLELINE (1 << 1) /* /s */
18#define RXf_PMf_FOLD (1 << 2) /* /i */
19#define PMf_FOLD (1 << 2) /* /i */
20#define RXf_PMf_EXTENDED (1 << 3) /* /x */
21#define PMf_EXTENDED (1 << 3) /* /x */
22#define RXf_PMf_KEEPCOPY (1 << 4) /* /p */
23#define PMf_KEEPCOPY (1 << 4) /* /p */
24#define RXf_PMf_LOCALE (1 << 5)
25#define PMf_LOCALE (1 << 5)
26
3214c85f
KW
27/* Next available bit after the above. Name begins with '_' so won't be
28 * exported by B */
29#define _RXf_PMf_SHIFT_NEXT 6