ruby-changes:6254
From: shyouhei <ko1@a...>
Date: Tue, 1 Jul 2008 17:32:26 +0900 (JST)
Subject: [ruby-changes:6254] Ruby:r17767 (trunk): * process.c (run_exec_rlimit): ISO C90 forbids mixed declarations
shyouhei 2008-07-01 17:31:55 +0900 (Tue, 01 Jul 2008) New Revision: 17767 Modified files: trunk/ChangeLog trunk/process.c Log: * process.c (run_exec_rlimit): ISO C90 forbids mixed declarations and code http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=17767 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17767&r2=17766&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=17767&r2=17766&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17766) +++ ChangeLog (revision 17767) @@ -1,5 +1,8 @@ -Tue Jul 1 17:14:59 2008 URABE Shyouhei <shyouhei@r...> +Tue Jul 1 17:30:30 2008 URABE Shyouhei <shyouhei@r...> + * process.c (run_exec_rlimit): ISO C90 forbids mixed declarations + and code + * include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids comma at end of enumerator list Index: process.c =================================================================== --- process.c (revision 17766) +++ process.c (revision 17767) @@ -2052,12 +2052,13 @@ int rtype = NUM2INT(RARRAY_PTR(elt)[0]); struct rlimit rlim; if (!NIL_P(save)) { + VALUE tmp, newary; if (getrlimit(rtype, &rlim) == -1) return -1; - VALUE tmp = hide_obj(rb_ary_new3(3, RARRAY_PTR(elt)[0], - RLIM2NUM(rlim.rlim_cur), - RLIM2NUM(rlim.rlim_max))); - VALUE newary = rb_ary_entry(save, EXEC_OPTION_RLIMIT); + tmp = hide_obj(rb_ary_new3(3, RARRAY_PTR(elt)[0], + RLIM2NUM(rlim.rlim_cur), + RLIM2NUM(rlim.rlim_max))); + newary = rb_ary_entry(save, EXEC_OPTION_RLIMIT); if (NIL_P(newary)) { newary = hide_obj(rb_ary_new()); rb_ary_store(save, EXEC_OPTION_RLIMIT, newary); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/