* enumerator.c (enumerator_allocate): allow subclassing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c6b9f16231
commit
ea2b0febf0
@ -1,3 +1,7 @@
|
||||
Thu Oct 27 20:34:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enumerator.c (enumerator_allocate): allow subclassing.
|
||||
|
||||
Thu Oct 27 16:45:31 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (scan_once): wrong condition to use mbclen2().
|
||||
|
@ -257,7 +257,7 @@ static VALUE
|
||||
enumerator_allocate(VALUE klass)
|
||||
{
|
||||
struct enumerator *ptr;
|
||||
return Data_Make_Struct(rb_cEnumerator, struct enumerator,
|
||||
return Data_Make_Struct(klass, struct enumerator,
|
||||
enumerator_mark, -1, ptr);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user