ruby-changes:26352
From: nobu <ko1@a...>
Date: Sat, 15 Dec 2012 15:10:11 +0900 (JST)
Subject: [ruby-changes:26352] nobu:r38403 (trunk): * parse.y (yycompile0): adjust indent.
nobu 2012-12-15 15:10:01 +0900 (Sat, 15 Dec 2012) New Revision: 38403 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38403 Log: * parse.y (yycompile0): adjust indent. Modified files: trunk/parse.y trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 38402) +++ thread.c (revision 38403) @@ -883,7 +883,7 @@ double2timeval(double d) https://github.com/ruby/ruby/blob/trunk/thread.c#L883 } static void -sleep_forever(rb_thread_t *th, int deadlockable,int spurious_check) +sleep_forever(rb_thread_t *th, int deadlockable, int spurious_check) { enum rb_thread_status prev_status = th->status; enum rb_thread_status status = deadlockable ? THREAD_STOPPED_FOREVER : THREAD_STOPPED; @@ -900,7 +900,7 @@ sleep_forever(rb_thread_t *th, int deadl https://github.com/ruby/ruby/blob/trunk/thread.c#L900 th->vm->sleeper--; } RUBY_VM_CHECK_INTS_BLOCKING(th); - if(!spurious_check) + if (!spurious_check) break; } th->status = prev_status; @@ -923,7 +923,7 @@ getclockofday(struct timeval *tp) https://github.com/ruby/ruby/blob/trunk/thread.c#L923 } static void -sleep_timeval(rb_thread_t *th, struct timeval tv,int spurious_check) +sleep_timeval(rb_thread_t *th, struct timeval tv, int spurious_check) { struct timeval to, tvn; enum rb_thread_status prev_status = th->status; @@ -951,7 +951,7 @@ sleep_timeval(rb_thread_t *th, struct ti https://github.com/ruby/ruby/blob/trunk/thread.c#L951 --tv.tv_sec; tv.tv_usec += 1000000; } - if(!spurious_check) + if (!spurious_check) break; } th->status = prev_status; @@ -989,9 +989,9 @@ timeofday(void) https://github.com/ruby/ruby/blob/trunk/thread.c#L989 } static void -sleep_wait_for_interrupt(rb_thread_t *th, double sleepsec,int spurious_check) +sleep_wait_for_interrupt(rb_thread_t *th, double sleepsec, int spurious_check) { - sleep_timeval(th, double2timeval(sleepsec),spurious_check); + sleep_timeval(th, double2timeval(sleepsec), spurious_check); } static void Index: parse.y =================================================================== --- parse.y (revision 38402) +++ parse.y (revision 38403) @@ -5317,16 +5317,16 @@ yycompile0(VALUE arg) https://github.com/ruby/ruby/blob/trunk/parse.y#L5317 parser->parser_token_info_enabled = !compile_for_eval && RTEST(ruby_verbose); #endif #ifndef RIPPER - if(RUBY_DTRACE_PARSE_BEGIN_ENABLED()) { + if (RUBY_DTRACE_PARSE_BEGIN_ENABLED()) { RUBY_DTRACE_PARSE_BEGIN(parser->parser_ruby_sourcefile, - parser->parser_ruby_sourceline); + parser->parser_ruby_sourceline); } #endif n = yyparse((void*)parser); #ifndef RIPPER - if(RUBY_DTRACE_PARSE_END_ENABLED()) { + if (RUBY_DTRACE_PARSE_END_ENABLED()) { RUBY_DTRACE_PARSE_END(parser->parser_ruby_sourcefile, - parser->parser_ruby_sourceline); + parser->parser_ruby_sourceline); } #endif ruby_debug_lines = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/