Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* enumerator.c: include internal.h instead of declaring the external
  function there.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@44749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Jan 29, 2014
1 parent e228a4a commit 30d7be3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Wed Jan 29 19:22:45 2014 NAKAMURA Usaku <usa@ruby-lang.org>

* enumerator.c: include internal.h instead of declaring the external
function there.

Wed Jan 29 18:52:09 2014 NAKAMURA Usaku <usa@ruby-lang.org>

* enumerator.c (enumerator_with_index_i): add the declaration of
Expand Down
3 changes: 2 additions & 1 deletion common.mk
Expand Up @@ -619,7 +619,8 @@ encoding.$(OBJEXT): {$(VPATH)}encoding.c $(RUBY_H_INCLUDES) \
{$(VPATH)}internal.h
enum.$(OBJEXT): {$(VPATH)}enum.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
{$(VPATH)}util.h $(ID_H_INCLUDES)
enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h
enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES) \
{$(VPATH)}node.h {$(VPATH)}internal.h
error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}known_errors.inc \
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) $(ENCODING_H_INCLUDES) \
{$(VPATH)}debug.h \
Expand Down
3 changes: 1 addition & 2 deletions enumerator.c
Expand Up @@ -14,6 +14,7 @@

#include "ruby/ruby.h"
#include "node.h"
#include "internal.h"

/*
* Document-class: Enumerator
Expand Down Expand Up @@ -366,8 +367,6 @@ enumerator_each(VALUE obj)
return enumerator_block_call(obj, 0, obj);
}

extern VALUE rb_int_succ(VALUE);

static VALUE
enumerator_with_index_i(VALUE val, VALUE m, int argc, VALUE *argv)
{
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_PATCHLEVEL 502
#define RUBY_PATCHLEVEL 503

#define RUBY_RELEASE_DATE "2014-01-29"
#define RUBY_RELEASE_YEAR 2014
Expand Down

0 comments on commit 30d7be3

Please sign in to comment.