mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue