summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-29 14:51:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-29 14:51:22 +0000
commit05b990b7c1aa0403e01c8a2f1da59392731d1f84 (patch)
tree19be2ba424759dc93554f442a79f8931d270e3d8 /hash.c
parent0569c8422c566d77f33843a5e11d87b0066e93a5 (diff)
downloadruby-05b990b7c1aa0403e01c8a2f1da59392731d1f84.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@3238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/hash.c b/hash.c
index d579e307d6..f2014a4d96 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;