1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

enum.c: prefix

* enum.c (rb_enum_cycle_size): prefix with rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-06 22:52:52 +00:00
parent 7f00f853d4
commit db54dc7215
4 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 7 07:52:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* enum.c (rb_enum_cycle_size): prefix with rb.
Wed Nov 7 04:32:15 2012 Luis Lavena <luislavena@gmail.com>
* test/ruby/test_file_exhaustive.rb: Remove FIXME skip on Windows

3
enum.c
View file

@ -2235,8 +2235,9 @@ cycle_i(VALUE i, VALUE ary, int argc, VALUE *argv)
return Qnil;
}
#define enum_cycle_size rb_enum_cycle_size
VALUE
enum_cycle_size(VALUE self, VALUE args)
rb_enum_cycle_size(VALUE self, VALUE args)
{
long mul;
VALUE n = Qnil;

View file

@ -1745,7 +1745,7 @@ lazy_drop_while(VALUE obj)
static VALUE
lazy_cycle_size(VALUE lazy)
{
return enum_cycle_size(rb_ivar_get(lazy, id_receiver), rb_ivar_get(lazy, id_arguments));
return rb_enum_cycle_size(rb_ivar_get(lazy, id_receiver), rb_ivar_get(lazy, id_arguments));
}
static VALUE

View file

@ -88,7 +88,7 @@ ID rb_id_encoding(void);
void rb_gc_mark_encodings(void);
/* enum.c */
VALUE enum_cycle_size(VALUE self, VALUE args);
VALUE rb_enum_cycle_size(VALUE self, VALUE args);
/* error.c */
NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));