summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-08-31 20:30:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-05 23:01:27 +0900
commitbdd6d8746f0a07b2c0cc3a6b387bf594569c0bb7 (patch)
treef11d32da65e227763d598d765765a76ddace1a0a /parse.y
parent8f752c95d20134bcc0b5394f1cea723a40f1ac8c (diff)
Replace RBOOL macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4791
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 2873d2fff3b..8017011bb79 100644
--- a/parse.y
+++ b/parse.y
@@ -8108,7 +8108,7 @@ parser_set_compile_option_flag(struct parser_params *p, const char *name, const
if (!p->compile_option)
p->compile_option = rb_obj_hide(rb_ident_hash_new());
rb_hash_aset(p->compile_option, ID2SYM(rb_intern(name)),
- (b ? Qtrue : Qfalse));
+ RBOOL(b));
}
static void
@@ -13231,7 +13231,7 @@ ripper_error_p(VALUE vparser)
struct parser_params *p;
TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, p);
- return p->error_p ? Qtrue : Qfalse;
+ return RBOOL(p->error_p);
}
#endif
@@ -13247,7 +13247,7 @@ rb_parser_end_seen_p(VALUE vparser)
struct parser_params *p;
TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, p);
- return p->ruby__end__seen ? Qtrue : Qfalse;
+ return RBOOL(p->ruby__end__seen);
}
/*
@@ -13278,7 +13278,7 @@ rb_parser_get_yydebug(VALUE self)
struct parser_params *p;
TypedData_Get_Struct(self, struct parser_params, &parser_data_type, p);
- return p->debug ? Qtrue : Qfalse;
+ return RBOOL(p->debug);
}
#endif