Skip to content

Commit

Permalink
Change !! to cBOOL() in dist/ext modules
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jun 21, 2022
1 parent d053030 commit bee89da
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/Data-Dumper/Dumper.xs
Expand Up @@ -1315,7 +1315,7 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
SvCUR_set(retval, SvCUR(retval)+2);
i = 3 + esc_q_utf8(aTHX_ retval, c, i,
#ifdef GvNAMEUTF8
!!GvNAMEUTF8(val), style->useqq
cBOOL(GvNAMEUTF8(val)), style->useqq
#else
0, style->useqq || globname_supra_ascii(c, i)
#endif
Expand Down
2 changes: 1 addition & 1 deletion dist/Storable/Storable.pm
Expand Up @@ -28,7 +28,7 @@ our @EXPORT_OK = qw(
our ($canonical, $forgive_me);

BEGIN {
our $VERSION = '3.26';
our $VERSION = '3.27';
}

our $recursion_limit;
Expand Down
2 changes: 1 addition & 1 deletion dist/Storable/Storable.xs
Expand Up @@ -7774,7 +7774,7 @@ CODE:
assert(cxt);
result = cxt->entry && (cxt->optype & ix) ? TRUE : FALSE;
} else {
result = !!last_op_in_netorder(aTHX);
result = cBOOL(last_op_in_netorder(aTHX));
}
ST(0) = boolSV(result);

Expand Down
2 changes: 1 addition & 1 deletion dist/threads-shared/lib/threads/shared.pm
Expand Up @@ -8,7 +8,7 @@ use Config;

use Scalar::Util qw(reftype refaddr blessed);

our $VERSION = '1.64'; # Please update the pod, too.
our $VERSION = '1.65'; # Please update the pod, too.
my $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;

Expand Down
2 changes: 1 addition & 1 deletion dist/threads-shared/shared.xs
Expand Up @@ -1145,7 +1145,7 @@ sharedsv_array_mg_CLEAR(pTHX_ SV *sv, MAGIC *mg)
I32 items = isav ? AvFILLp((AV *)ssv) + 1 : 0;
HE *iter;
if (!isav) hv_iterinit((HV *)ssv);
while (isav ? items-- : !!(iter = hv_iternext((HV *)ssv))) {
while (isav ? items-- : cBOOL(iter = hv_iternext((HV *)ssv))) {
SV *sv = isav ? *svp++ : HeVAL(iter);
if (!sv) continue;
if ( (SvOBJECT(sv) || (SvROK(sv) && (sv = SvRV(sv))))
Expand Down
2 changes: 1 addition & 1 deletion ext/File-Glob/Glob.pm
Expand Up @@ -33,7 +33,7 @@ $EXPORT_TAGS{bsd_glob} = [@{$EXPORT_TAGS{glob}}];

our @EXPORT_OK = (@{$EXPORT_TAGS{'glob'}}, 'csh_glob');

our $VERSION = '1.37';
our $VERSION = '1.38';

sub import {
require Exporter;
Expand Down
2 changes: 1 addition & 1 deletion ext/File-Glob/Glob.xs
Expand Up @@ -99,7 +99,7 @@ iterate(pTHX_ bool(*globber)(pTHX_ AV *entries, const char *pat, STRLEN len, boo
}
else {
pat = SvPV_nomg(patsv,len);
is_utf8 = !!SvUTF8(patsv);
is_utf8 = cBOOL(SvUTF8(patsv));
/* the lower-level code expects a null-terminated string */
if (!SvPOK(patsv) || pat != SvPVX(patsv) || pat[len] != '\0') {
SV *newpatsv = newSVpvn_flags(pat, len, SVs_TEMP);
Expand Down
2 changes: 1 addition & 1 deletion ext/XS-APItest/core_or_not.inc
Expand Up @@ -24,7 +24,7 @@ CAT2(sv_setsv_cow_hashkey_, SUFFIX) () {

sv_setsv(destination, source);

result = !!SvIsCOW(destination);
result = cBOOL(SvIsCOW(destination));

SvREFCNT_dec(source);
SvREFCNT_dec(destination);
Expand Down

0 comments on commit bee89da

Please sign in to comment.