mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
d03da13b17
commit
c257303ae7
Notes:
git
2019-11-18 08:01:11 +09:00
4 changed files with 13 additions and 5 deletions
2
signal.c
2
signal.c
|
@ -1043,7 +1043,7 @@ signal_exec(VALUE cmd, int sig)
|
|||
EC_PUSH_TAG(ec);
|
||||
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
|
||||
VALUE signum = INT2NUM(sig);
|
||||
rb_eval_cmd(cmd, rb_ary_new3(1, signum), 0);
|
||||
rb_eval_cmd_kw(cmd, rb_ary_new3(1, signum), RB_NO_KEYWORDS);
|
||||
}
|
||||
EC_POP_TAG();
|
||||
ec = GET_EC();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue