diff options
| author | Takeshi Watanabe <[email protected]> | 2014-04-11 20:38:23 +0900 |
|---|---|---|
| committer | Takeshi Watanabe <[email protected]> | 2014-04-11 20:38:23 +0900 |
| commit | 824d3450c5c477342519f6df2df7bff08918ebef (patch) | |
| tree | e357e5627c8f0cfa7f2dde33467278886db4d6e0 /src | |
| parent | b20d711c4d3d8241da08aaa7688000b007e13c39 (diff) | |
| download | mruby-824d3450c5c477342519f6df2df7bff08918ebef.tar.gz mruby-824d3450c5c477342519f6df2df7bff08918ebef.zip | |
Qualify argv argument of API `const`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/class.c | 2 | ||||
| -rw-r--r-- | src/error.c | 4 | ||||
| -rw-r--r-- | src/vm.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/class.c b/src/class.c index 656120845..30c33d692 100644 --- a/src/class.c +++ b/src/class.c @@ -1092,7 +1092,7 @@ mrb_instance_new(mrb_state *mrb, mrb_value cv) } mrb_value -mrb_obj_new(mrb_state *mrb, struct RClass *c, int argc, mrb_value *argv) +mrb_obj_new(mrb_state *mrb, struct RClass *c, int argc, const mrb_value *argv) { mrb_value obj; diff --git a/src/error.c b/src/error.c index be47e1618..c344509b9 100644 --- a/src/error.c +++ b/src/error.c @@ -353,7 +353,7 @@ set_backtrace(mrb_state *mrb, mrb_value info, mrb_value bt) } static mrb_value -make_exception(mrb_state *mrb, int argc, mrb_value *argv, mrb_bool isstr) +make_exception(mrb_state *mrb, int argc, const mrb_value *argv, mrb_bool isstr) { mrb_value mesg; int n; @@ -406,7 +406,7 @@ exception_call: } mrb_value -mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv) +mrb_make_exception(mrb_state *mrb, int argc, const mrb_value *argv) { return make_exception(mrb, argc, argv, TRUE); } @@ -323,7 +323,7 @@ mrb_funcall(mrb_state *mrb, mrb_value self, const char *name, int argc, ...) } mrb_value -mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mrb_value *argv, mrb_value blk) +mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, const mrb_value *argv, mrb_value blk) { mrb_value val; @@ -413,7 +413,7 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr } mrb_value -mrb_funcall_argv(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mrb_value *argv) +mrb_funcall_argv(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, const mrb_value *argv) { return mrb_funcall_with_block(mrb, self, mid, argc, argv, mrb_nil_value()); } |
