summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-09-21 15:09:12 -0600
committerFather Chrysostomos <sprout@cpan.org>2010-09-22 22:56:59 -0700
commit43fead97d9090f614849cdd8195a6900ee682952 (patch)
tree9c5a9d1e414d30771e030fde51389a489b2c71ce /regcomp.c
parentdff5e0c4913cbbc4e73cece5cd747e7aa222db67 (diff)
downloadperl-43fead97d9090f614849cdd8195a6900ee682952.tar.gz
regcomp.c: Convert some things to use cBOOL()
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 4c332b0433..ff9f87b079 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -368,10 +368,10 @@ static const scan_data_t zero_scan_data =
#define SCF_TRIE_RESTUDY 0x4000 /* Do restudy? */
#define SCF_SEEN_ACCEPT 0x8000
-#define UTF (RExC_utf8 != 0)
-#define LOC ((RExC_flags & RXf_PMf_LOCALE) != 0)
-#define UNI_SEMANTICS ((RExC_flags & RXf_PMf_UNICODE) != 0)
-#define FOLD ((RExC_flags & RXf_PMf_FOLD) != 0)
+#define UTF cBOOL(RExC_utf8)
+#define LOC cBOOL(RExC_flags & RXf_PMf_LOCALE)
+#define UNI_SEMANTICS cBOOL(RExC_flags & RXf_PMf_UNICODE)
+#define FOLD cBOOL(RExC_flags & RXf_PMf_FOLD)
#define OOB_UNICODE 12345678
#define OOB_NAMEDCLASS -1