mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/intern.h (rb_obj_call_init, rb_class_new_instance):
constify a parameter (VALUE *). I believe this incompatibility doesn't break any code. However, if you have trouble, please tell us. * eval.c, object.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3453070fbc
commit
53bd4502d8
4 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
Thu Mar 20 12:59:39 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* include/ruby/intern.h (rb_obj_call_init, rb_class_new_instance):
|
||||
constify a parameter (VALUE *).
|
||||
I believe this incompatibility doesn't break any code.
|
||||
However, if you have trouble, please tell us.
|
||||
|
||||
* eval.c, object.c: ditto.
|
||||
|
||||
Thu Mar 20 12:31:26 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_method.c (rb_method_entry_get_without_cache): get rid of
|
||||
|
|
2
eval.c
2
eval.c
|
@ -1330,7 +1330,7 @@ mod_using(VALUE self, VALUE module)
|
|||
}
|
||||
|
||||
void
|
||||
rb_obj_call_init(VALUE obj, int argc, VALUE *argv)
|
||||
rb_obj_call_init(VALUE obj, int argc, const VALUE *argv)
|
||||
{
|
||||
PASS_PASSED_BLOCK();
|
||||
rb_funcall2(obj, idInitialize, argc, argv);
|
||||
|
|
|
@ -398,8 +398,8 @@ int rb_feature_provided(const char *, const char **);
|
|||
void rb_provide(const char*);
|
||||
VALUE rb_f_require(VALUE, VALUE);
|
||||
VALUE rb_require_safe(VALUE, int);
|
||||
void rb_obj_call_init(VALUE, int, VALUE*);
|
||||
VALUE rb_class_new_instance(int, VALUE*, VALUE);
|
||||
void rb_obj_call_init(VALUE, int, const VALUE*);
|
||||
VALUE rb_class_new_instance(int, const VALUE*, VALUE);
|
||||
VALUE rb_block_proc(void);
|
||||
VALUE rb_block_lambda(void);
|
||||
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
|
||||
|
|
2
object.c
2
object.c
|
@ -1840,7 +1840,7 @@ rb_class_allocate_instance(VALUE klass)
|
|||
*/
|
||||
|
||||
VALUE
|
||||
rb_class_new_instance(int argc, VALUE *argv, VALUE klass)
|
||||
rb_class_new_instance(int argc, const VALUE *argv, VALUE klass)
|
||||
{
|
||||
VALUE obj;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue