mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
* ext/syck/syck.h: include stdio.h for definition of FILE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c76c3349e4
commit
888d06be01
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Oct 15 09:30:34 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
|
||||
|
||||
* ext/syck/syck.h: include stdio.h for definition of FILE.
|
||||
|
||||
Wed Oct 15 08:09:07 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
|
||||
|
||||
* ext/syck/bytecode.c: Checkin of YAML bytecode support.
|
||||
|
|
|
@ -162,7 +162,7 @@ enumerator_each(obj)
|
|||
rb_ivar_get(obj, id_enum_obj),
|
||||
rb_to_id(rb_ivar_get(obj, id_enum_method)),
|
||||
rb_ivar_get(obj, id_enum_args));
|
||||
val = rb_iterate(enumerator_iter, obj, rb_yield, 0);
|
||||
val = rb_iterate((VALUE (*)_((VALUE)))enumerator_iter, obj, rb_yield, 0);
|
||||
rb_gc_force_recycle(obj);
|
||||
return val;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#define SYCK_VERSION "0.41"
|
||||
#define YAML_DOMAIN "yaml.org,2002"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "st.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
Loading…
Reference in a new issue