ruby-changes:8703
From: nobu <ko1@a...>
Date: Sun, 16 Nov 2008 10:02:52 +0900 (JST)
Subject: [ruby-changes:8703] Ruby:r20238 (ruby_1_8): * eval.c (yield_under): fixed initialization not being allowed in C90.
nobu 2008-11-16 10:02:41 +0900 (Sun, 16 Nov 2008) New Revision: 20238 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20238 Log: * eval.c (yield_under): fixed initialization not being allowed in C90. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c branches/ruby_1_8/version.h Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 20237) +++ ruby_1_8/ChangeLog (revision 20238) @@ -1,3 +1,7 @@ +Sun Nov 16 10:02:39 2008 Nobuyoshi Nakada <nobu@r...> + + * eval.c (yield_under): fixed initialization not being allowed in C90. + Sat Nov 15 22:23:45 2008 Nobuyoshi Nakada <nobu@r...> * configure.in (LDSHARED): do not suppress debug info if higher debug Index: ruby_1_8/version.h =================================================================== --- ruby_1_8/version.h (revision 20237) +++ ruby_1_8/version.h (revision 20238) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.7" -#define RUBY_RELEASE_DATE "2008-11-15" +#define RUBY_RELEASE_DATE "2008-11-16" #define RUBY_VERSION_CODE 187 -#define RUBY_RELEASE_CODE 20081115 +#define RUBY_RELEASE_CODE 20081116 #define RUBY_PATCHLEVEL 5000 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 7 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 11 -#define RUBY_RELEASE_DAY 15 +#define RUBY_RELEASE_DAY 16 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 20237) +++ ruby_1_8/eval.c (revision 20238) @@ -6773,8 +6773,10 @@ return exec_under(yield_under_i, under, 0, self); } else { - VALUE info[2] = { args, self }; + VALUE info[2]; + info[0] = args; + info[1] = self; return exec_under(yield_args_under_i, under, 0, (VALUE)info); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/