Permalink
Browse files

* ruby.h (rb_block_call_func): Fix prototype.

* enumerator.c (enumerator_iter_i, enumerator_each_i): Ditto.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@16005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 95df8f6 commit 7c65674c825e529d1f40c56bfd0df017d34703f5 @knu knu committed Apr 14, 2008
Showing with 11 additions and 9 deletions.
  1. +6 −0 ChangeLog
  2. +4 −8 enumerator.c
  3. +1 −1 ruby.h
View
@@ -1,3 +1,9 @@
+Mon Apr 14 16:42:53 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ruby.h (rb_block_call_func): Fix prototype.
+
+ * enumerator.c (enumerator_iter_i, enumerator_each_i): Ditto.
+
Mon Apr 14 15:49:05 2008 Akinori MUSHA <knu@iDaemons.org>
* enum.c (enum_count, enum_find_index): New methods:
View
@@ -72,13 +72,11 @@ enumerator_ptr(obj)
return ptr;
}
-static VALUE enumerator_iter_i _((VALUE, VALUE, int, VALUE *));
+static VALUE enumerator_iter_i _((VALUE, VALUE));
static VALUE
-enumerator_iter_i(i, enum_obj, argc, argv)
+enumerator_iter_i(i, enum_obj)
VALUE i;
VALUE enum_obj;
- int argc;
- VALUE *argv;
{
struct enumerator *e = (struct enumerator *)enum_obj;
return rb_yield(proc_call(e->proc, i));
@@ -238,13 +236,11 @@ enumerator_allocate(klass)
enumerator_mark, -1, ptr);
}
-static VALUE enumerator_each_i _((VALUE, VALUE, int, VALUE *));
+static VALUE enumerator_each_i _((VALUE, VALUE));
static VALUE
-enumerator_each_i(v, enum_obj, argc, argv)
+enumerator_each_i(v, enum_obj)
VALUE v;
VALUE enum_obj;
- int argc;
- VALUE *argv;
{
return rb_yield(v);
}
View
@@ -574,7 +574,7 @@ void rb_warning __((const char*, ...)); /* reports if `-w' specified */
void rb_sys_warning __((const char*, ...)); /* reports if `-w' specified */
void rb_warn __((const char*, ...)); /* reports always */
-typedef VALUE rb_block_call_func _((VALUE, VALUE, int, VALUE*));
+typedef VALUE rb_block_call_func _((VALUE, VALUE));
VALUE rb_each _((VALUE));
VALUE rb_yield _((VALUE));

0 comments on commit 7c65674

Please sign in to comment.