summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 05:18:02 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 05:18:02 +0000
commit4f56ca8218e4cd02a8de43ca78d9a1c78d278067 (patch)
treeab088b67ccbca346d028e17de6c56f044393e0fc
parent60dde833c3b4d751ecc1f88c6098466e275dd837 (diff)
* enumerator.c (enumerator_mark, enumerator_iter_i, enumerator_each_i,
enumerator_allocate): add prototype. * enumerator.c (enumerator_each_i): declare unused two arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--enumerator.c8
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b710870..6bf7dc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Apr 14 14:16:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enumerator.c (enumerator_mark, enumerator_iter_i, enumerator_each_i,
+ enumerator_allocate): add prototype.
+
+ * enumerator.c (enumerator_each_i): declare unused two arguments.
+
Mon Apr 14 13:58:32 2008 Akinori MUSHA <knu@iDaemons.org>
* string.c (rb_str_each_char): New methods: String#chars and
diff --git a/enumerator.c b/enumerator.c
index fefbc28..826dacc 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -43,6 +43,7 @@ struct enumerator {
rb_block_call_func *iter;
};
+static void enumerator_mark _((void *));
static void
enumerator_mark(p)
void *p;
@@ -71,6 +72,7 @@ enumerator_ptr(obj)
return ptr;
}
+static VALUE enumerator_iter_i _((VALUE, VALUE, int, VALUE *));
static VALUE
enumerator_iter_i(i, enum_obj, argc, argv)
VALUE i;
@@ -226,6 +228,7 @@ enum_each_cons(obj, n)
return Qnil;
}
+static VALUE enumerator_allocate _((VALUE));
static VALUE
enumerator_allocate(klass)
VALUE klass;
@@ -235,10 +238,13 @@ enumerator_allocate(klass)
enumerator_mark, -1, ptr);
}
+static VALUE enumerator_each_i _((VALUE, VALUE, int, VALUE *));
static VALUE
-enumerator_each_i(v, enum_obj)
+enumerator_each_i(v, enum_obj, argc, argv)
VALUE v;
VALUE enum_obj;
+ int argc;
+ VALUE *argv;
{
return rb_yield(v);
}