@@ -1000,15 +1000,15 @@ tkstr_to_float(VALUE value)
1000
1000
}
1001
1001
1002
1002
static VALUE
1003
- tkstr_invalid_numstr (VALUE value )
1003
+ tkstr_invalid_numstr (VALUE value , VALUE unused )
1004
1004
{
1005
1005
rb_raise (rb_eArgError ,
1006
1006
"invalid value for Number: '%s'" , RSTRING_PTR (value ));
1007
1007
return Qnil ; /*dummy*/
1008
1008
}
1009
1009
1010
1010
static VALUE
1011
- tkstr_rescue_float (VALUE value )
1011
+ tkstr_rescue_float (VALUE value , VALUE unused )
1012
1012
{
1013
1013
return rb_rescue2 (tkstr_to_float , value ,
1014
1014
tkstr_invalid_numstr , value ,
@@ -1034,7 +1034,7 @@ tcl2rb_number(VALUE self, VALUE value)
1034
1034
}
1035
1035
1036
1036
static VALUE
1037
- tkstr_to_str (VALUE value )
1037
+ tkstr_to_str (VALUE value , VALUE unused )
1038
1038
{
1039
1039
char * ptr ;
1040
1040
long len ;
@@ -1055,7 +1055,7 @@ tcl2rb_string(VALUE self, VALUE value)
1055
1055
1056
1056
if (RSTRING_PTR (value ) == (char * )NULL ) return rb_str_new2 ("" );
1057
1057
1058
- return tkstr_to_str (value );
1058
+ return tkstr_to_str (value , Qnil );
1059
1059
}
1060
1060
1061
1061
static VALUE
@@ -1095,16 +1095,18 @@ struct cbsubst_info {
1095
1095
};
1096
1096
1097
1097
static void
1098
- subst_mark (struct cbsubst_info * ptr )
1098
+ subst_mark (void * arg )
1099
1099
{
1100
+ struct cbsubst_info * ptr = (struct cbsubst_info * )arg ;
1100
1101
rb_gc_mark (ptr -> proc );
1101
1102
rb_gc_mark (ptr -> aliases );
1102
1103
}
1103
1104
1104
1105
static void
1105
- subst_free (struct cbsubst_info * ptr )
1106
+ subst_free (void * arg )
1106
1107
{
1107
1108
int i ;
1109
+ struct cbsubst_info * ptr = (struct cbsubst_info * )arg ;
1108
1110
1109
1111
if (ptr ) {
1110
1112
for (i = 0 ; i < CBSUBST_TBL_MAX ; i ++ ) {
@@ -1118,8 +1120,9 @@ subst_free(struct cbsubst_info *ptr)
1118
1120
}
1119
1121
1120
1122
static size_t
1121
- subst_memsize (const struct cbsubst_info * ptr )
1123
+ subst_memsize (const void * arg )
1122
1124
{
1125
+ struct cbsubst_info * ptr = (struct cbsubst_info * )arg ;
1123
1126
return sizeof (* ptr );
1124
1127
}
1125
1128
0 commit comments