This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Convert '!!' to cBOOL()
authorKarl Williamson <khw@cpan.org>
Tue, 7 Jun 2022 11:39:12 +0000 (05:39 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 14 Jun 2022 13:38:34 +0000 (07:38 -0600)
commit82943faa9f6f51aebb7960cc8eee73dd44c024e4
treeb9e3841945cfbac528df7dfbbe9561d83a17102b
parenta5d3a568eb8dce244c5f4f5f1e061ba5a36edbb8
Convert '!!' to cBOOL()

I believe the '!!' is somewhat obscure; I for one didn't know about it
for years of programming C, and it was buggy in one compiler, which is why
cBOOL was created, I believe.  And it is graphically dense, and
generally harder to read than the cBOOL() construct.

This commit dates from before we moved to C99 where we can simply cast
to (bool), and cBOOL() has been rewritten to do that.  But the vast
majority of code uses cBOOL(), and this commit brings the remainder of
the core .[ch] files into uniformity.
12 files changed:
gv.c
gv.h
hv.c
op.c
pad.c
pad.h
pp.c
pp_ctl.c
pp_sys.c
regcomp.c
regexec.c
scope.c