3 * Definitions common to by op.h and regexp.h
5 * Copyright (C) 2010 by Larry Wall and others
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.
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)
27 /* Next available bit after the above. Name begins with '_' so won't be
29 #define _RXf_PMf_SHIFT_NEXT 6