summaryrefslogtreecommitdiff
path: root/perlio.c
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 /perlio.c
parent32207c637b216a1dfa7317d111af89f149743ff3 (diff)
downloadperl-8298454cd9bef3c23473ec307d99840429f2df55.tar.gz
Use cBOOL() instead of ? TRUE : FALSE
Except under cpan/ and dist/
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index ad1c6fef21..79cdc2700d 100644
--- a/perlio.c
+++ b/perlio.c
@@ -1314,7 +1314,7 @@ PerlIO_binmode(pTHX_ PerlIO *f, int iotype, int mode, const char *names)
(for example :unix which is never going to call them)
it can do the flush when it is pushed.
*/
- return PerlIO_apply_layers(aTHX_ f, NULL, names) == 0 ? TRUE : FALSE;
+ return cBOOL(PerlIO_apply_layers(aTHX_ f, NULL, names) == 0);
}
else {
/* Fake 5.6 legacy of using this call to turn ON O_TEXT */
@@ -1355,7 +1355,7 @@ PerlIO_binmode(pTHX_ PerlIO *f, int iotype, int mode, const char *names)
/* Legacy binmode is now _defined_ as being equivalent to pushing :raw
So code that used to be here is now in PerlIORaw_pushed().
*/
- return PerlIO_push(aTHX_ f, PERLIO_FUNCS_CAST(&PerlIO_raw), NULL, NULL) ? TRUE : FALSE;
+ return cBOOL(PerlIO_push(aTHX_ f, PERLIO_FUNCS_CAST(&PerlIO_raw), NULL, NULL));
}
}