From cbbee8ac9c19ab6ade9d55d8102d3eac88c438c1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 29 Dec 2002 14:51:22 +0000 Subject: * gc.c (gc_sweep): adjust GC trigger. * dln.c (init_funcname_len): get rid of gcc-3 -O3 warning. * eval.c (copy_node_scope): ditto. * hash.c (rb_hash_foreach, delete_if_i, select_i, each_value_i, each_key_i, each_pair_i, envix): ditto. * range.c (range_each_func): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index d579e307d..f2014a4d9 100644 --- a/hash.c +++ b/hash.c @@ -120,7 +120,7 @@ static struct st_hash_type objhash = { struct rb_hash_foreach_arg { VALUE hash; enum st_retval (*func)(); - char *arg; + VALUE arg; }; static int @@ -167,7 +167,7 @@ static int rb_hash_foreach(hash, func, farg) VALUE hash; enum st_retval (*func)(); - char *farg; + VALUE farg; { struct rb_hash_foreach_arg arg; @@ -462,7 +462,7 @@ rb_hash_shift(hash) } } -static int +static enum st_retval delete_if_i(key, value) VALUE key, value; { @@ -498,9 +498,9 @@ rb_hash_reject(hash) return rb_hash_delete_if(rb_obj_dup(hash)); } -static int +static enum st_retval select_i(key, value, result) - VALUE key, value; + VALUE key, value, result; { VALUE assoc; @@ -611,7 +611,7 @@ rb_hash_empty_p(hash) return Qfalse; } -static int +static enum st_retval each_value_i(key, value) VALUE key, value; { @@ -628,7 +628,7 @@ rb_hash_each_value(hash) return hash; } -static int +static enum st_retval each_key_i(key, value) VALUE key, value; { @@ -645,7 +645,7 @@ rb_hash_each_key(hash) return hash; } -static int +static enum st_retval each_pair_i(key, value) VALUE key, value; { @@ -1076,7 +1076,7 @@ rb_env_path_tainted() static int envix(nam) -char *nam; +const char *nam; { register int i, len = strlen(nam); char **env; -- cgit