Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit db54dc7215bc6838feaea452a13a8954cdad8a7b 1 parent 7f00f85
@nobu nobu authored
Showing with 8 additions and 3 deletions.
  1. +4 −0 ChangeLog
  2. +2 −1  enum.c
  3. +1 −1  enumerator.c
  4. +1 −1  internal.h
View
4 ChangeLog
@@ -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
View
3  enum.c
@@ -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
2  enumerator.c
@@ -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
2  internal.h
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.