Deprecate rb_eval_cmd, add rb_eval_cmd_kw

rb_eval_cmd takes a safe level, and now that $SAFE is deprecated,
it should be deprecated as well.

Replace with rb_eval_cmd_kw, which takes a keyword flag.  Switch
the two callers to this function.
This commit is contained in:
Jeremy Evans 2019-09-25 15:49:21 -07:00
parent d03da13b17
commit c257303ae7
Notes: git 2019-11-18 08:01:11 +09:00
4 changed files with 13 additions and 5 deletions

View file

@ -526,7 +526,7 @@ rb_define_virtual_variable(
static void
rb_trace_eval(VALUE cmd, VALUE val)
{
rb_eval_cmd(cmd, rb_ary_new3(1, val), 0);
rb_eval_cmd_kw(cmd, rb_ary_new3(1, val), RB_NO_KEYWORDS);
}
VALUE