diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-14 22:25:09 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-14 22:25:09 +0000 |
| commit | e68cc59599d7c48d70ac9fa90087aeddece28a4d (patch) | |
| tree | 18ce6156b42004fac23f486e0621859628dbbb5d | |
| parent | 92cc13127c7c525f07accec84a3861a6da08a4b1 (diff) | |
| download | ruby-e68cc59599d7c48d70ac9fa90087aeddece28a4d.tar.gz ruby-e68cc59599d7c48d70ac9fa90087aeddece28a4d.tar.xz ruby-e68cc59599d7c48d70ac9fa90087aeddece28a4d.zip | |
* intern.h (rb_check_to_integer): add declaration.
* object.c (rb_to_integer, rb_check_to_integer): argument constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | intern.h | 1 | ||||
| -rw-r--r-- | object.c | 4 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Mon Aug 15 07:24:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * intern.h (rb_check_to_integer): add declaration. + + * object.c (rb_to_integer, rb_check_to_integer): argument constified. + Mon Aug 15 00:38:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (rb_rescue2): reduce PUSH_TAG() as well as NODE_RESCUE. @@ -375,6 +375,7 @@ VALUE rb_class_real _((VALUE)); VALUE rb_class_inherited_p _((VALUE, VALUE)); VALUE rb_convert_type _((VALUE,int,const char*,const char*)); VALUE rb_check_convert_type _((VALUE,int,const char*,const char*)); +VALUE rb_check_to_integer _((VALUE, const char *)); VALUE rb_to_int _((VALUE)); VALUE rb_Integer _((VALUE)); VALUE rb_Float _((VALUE)); @@ -2082,7 +2082,7 @@ rb_check_convert_type(val, type, tname, method) static VALUE rb_to_integer(val, method) VALUE val; - char *method; + const char *method; { VALUE v = convert_type(val, "Integer", method, Qtrue); if (!rb_obj_is_kind_of(v, rb_cInteger)) { @@ -2096,7 +2096,7 @@ rb_to_integer(val, method) VALUE rb_check_to_integer(val, method) VALUE val; - char *method; + const char *method; { VALUE v = convert_type(val, "Integer", method, Qfalse); if (!rb_obj_is_kind_of(v, rb_cInteger)) { |
