ruby-changes:30621
From: ko1 <ko1@a...>
Date: Tue, 27 Aug 2013 13:04:40 +0900 (JST)
Subject: [ruby-changes:30621] ko1:r42700 (trunk): * ext/stringio/stringio.c (strio_read_nonblock): declare local
ko1 2013-08-27 13:04:33 +0900 (Tue, 27 Aug 2013) New Revision: 42700 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42700 Log: * ext/stringio/stringio.c (strio_read_nonblock): declare local variables at the first of function. Modified files: trunk/ChangeLog trunk/ext/stringio/stringio.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42699) +++ ChangeLog (revision 42700) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Aug 27 13:03:33 2013 Koichi Sasada <ko1@a...> + + * ext/stringio/stringio.c (strio_read_nonblock): declare local + variables at the first of function. + Tue Aug 27 11:51:37 2013 Marc-Andre Lafortune <ruby-core@m...> * enumerator.c: Allow Enumerator size argument to be any callable. Index: ext/stringio/stringio.c =================================================================== --- ext/stringio/stringio.c (revision 42699) +++ ext/stringio/stringio.c (revision 42700) @@ -1353,7 +1353,7 @@ strio_sysread(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1353 static VALUE strio_read_nonblock(int argc, VALUE *argv, VALUE self) { - VALUE opts = Qnil; + VALUE opts = Qnil, val; int no_exception = 0; rb_scan_args(argc, argv, "11:", NULL, NULL, &opts); @@ -1365,7 +1365,7 @@ strio_read_nonblock(int argc, VALUE *arg https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1365 no_exception = 1; } - VALUE val = strio_read(argc, argv, self); + val = strio_read(argc, argv, self); if (NIL_P(val)) { if (no_exception) return Qnil; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/