mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (yycompile0): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
771f692792
commit
2ca5e8eeab
2 changed files with 10 additions and 10 deletions
4
parse.y
4
parse.y
|
@ -5317,14 +5317,14 @@ yycompile0(VALUE arg)
|
|||
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);
|
||||
}
|
||||
#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);
|
||||
}
|
||||
|
|
12
thread.c
12
thread.c
|
@ -883,7 +883,7 @@ double2timeval(double d)
|
|||
}
|
||||
|
||||
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 deadlockable,int spurious_check)
|
|||
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)
|
|||
}
|
||||
|
||||
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 timeval tv,int spurious_check)
|
|||
--tv.tv_sec;
|
||||
tv.tv_usec += 1000000;
|
||||
}
|
||||
if(!spurious_check)
|
||||
if (!spurious_check)
|
||||
break;
|
||||
}
|
||||
th->status = prev_status;
|
||||
|
@ -989,9 +989,9 @@ timeofday(void)
|
|||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue