mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Using RBOOL macro
This commit is contained in:
parent
3688b47671
commit
378e8cdad6
Notes:
git
2021-08-02 12:07:13 +09:00
Merged: https://github.com/ruby/ruby/pull/4695 Merged-By: nobu <nobu@ruby-lang.org>
26 changed files with 127 additions and 257 deletions
|
@ -662,7 +662,7 @@ rb_encdb_dummy(const char *name)
|
|||
static VALUE
|
||||
enc_dummy_p(VALUE enc)
|
||||
{
|
||||
return ENC_DUMMY_P(must_encoding(enc)) ? Qtrue : Qfalse;
|
||||
return RBOOL(ENC_DUMMY_P(must_encoding(enc)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -678,7 +678,7 @@ enc_dummy_p(VALUE enc)
|
|||
static VALUE
|
||||
enc_ascii_compatible_p(VALUE enc)
|
||||
{
|
||||
return rb_enc_asciicompat(must_encoding(enc)) ? Qtrue : Qfalse;
|
||||
return RBOOL(rb_enc_asciicompat(must_encoding(enc)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue