Commit 0887fd15 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2040 from take-cheeze/yield_const_argv

Qualify mrb_yield_*'s argv `const`.
parents 847b7c5e 9f24cd6d
...@@ -366,8 +366,8 @@ void mrb_print_error(mrb_state *mrb); ...@@ -366,8 +366,8 @@ void mrb_print_error(mrb_state *mrb);
#define E_KEY_ERROR (mrb_class_get(mrb, "KeyError")) #define E_KEY_ERROR (mrb_class_get(mrb, "KeyError"))
mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg); mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg);
mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv); mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv);
mrb_value mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb_value self, struct RClass *c); mrb_value mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv, mrb_value self, struct RClass *c);
void mrb_gc_protect(mrb_state *mrb, mrb_value obj); void mrb_gc_protect(mrb_state *mrb, mrb_value obj);
mrb_value mrb_to_int(mrb_state *mrb, mrb_value val); mrb_value mrb_to_int(mrb_state *mrb, mrb_value val);
......
...@@ -487,7 +487,7 @@ mrb_f_send(mrb_state *mrb, mrb_value self) ...@@ -487,7 +487,7 @@ mrb_f_send(mrb_state *mrb, mrb_value self)
} }
mrb_value mrb_value
mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb_value self, struct RClass *c) mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv, mrb_value self, struct RClass *c)
{ {
struct RProc *p; struct RProc *p;
mrb_sym mid = mrb->c->ci->mid; mrb_sym mid = mrb->c->ci->mid;
...@@ -533,7 +533,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb ...@@ -533,7 +533,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb
} }
mrb_value mrb_value
mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv) mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv)
{ {
struct RProc *p = mrb_proc_ptr(b); struct RProc *p = mrb_proc_ptr(b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment