summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-18 12:37:26 +0000
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-01-25 18:02:20 +0000
commit8298454cd9bef3c23473ec307d99840429f2df55 (patch)
tree6bc92e4ddac34acfd1b3732f2158a0cf87bbafe0 /hv.h
parent32207c637b216a1dfa7317d111af89f149743ff3 (diff)
downloadperl-8298454cd9bef3c23473ec307d99840429f2df55.tar.gz
Use cBOOL() instead of ? TRUE : FALSE
Except under cpan/ and dist/
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/hv.h b/hv.h
index 3a46ea3309..b6b22dfd76 100644
--- a/hv.h
+++ b/hv.h
@@ -461,8 +461,7 @@ C<SV*>.
(val), (hash)))
#define hv_exists_ent(hv, keysv, hash) \
- (hv_common((hv), (keysv), NULL, 0, 0, HV_FETCH_ISEXISTS, 0, (hash)) \
- ? TRUE : FALSE)
+ cBOOL(hv_common((hv), (keysv), NULL, 0, 0, HV_FETCH_ISEXISTS, 0, (hash)))
#define hv_fetch_ent(hv, keysv, lval, hash) \
((HE *) hv_common((hv), (keysv), NULL, 0, 0, \
((lval) ? HV_FETCH_LVALUE : 0), NULL, (hash)))
@@ -483,8 +482,7 @@ C<SV*>.
#define hv_exists(hv, key, klen) \
- (hv_common_key_len((hv), (key), (klen), HV_FETCH_ISEXISTS, NULL, 0) \
- ? TRUE : FALSE)
+ cBOOL(hv_common_key_len((hv), (key), (klen), HV_FETCH_ISEXISTS, NULL, 0))
#define hv_fetch(hv, key, klen, lval) \
((SV**) hv_common_key_len((hv), (key), (klen), (lval) \