From 4ef43fc02f9446da4eaa508c439d3caa1a244ebf Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Sep 2012 02:52:44 +0000 Subject: adjust style * thread_pthread.c, vm_eval.c: adjust style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 3 ++- vm_eval.c | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/thread_pthread.c b/thread_pthread.c index be5bbb3947..f1720e583f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1229,7 +1229,8 @@ static pthread_mutex_t timer_thread_lock; static rb_thread_cond_t timer_thread_cond; static inline void -timer_thread_sleep(rb_global_vm_lock_t* unused) { +timer_thread_sleep(rb_global_vm_lock_t* unused) +{ struct timespec ts; ts.tv_sec = 0; ts.tv_nsec = TIME_QUANTUM_USEC * 1000; diff --git a/vm_eval.c b/vm_eval.c index 899389848b..10eae1af33 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1158,7 +1158,8 @@ rb_f_eval(int argc, VALUE *argv, VALUE self) /** @note This function name is not stable. */ VALUE -ruby_eval_string_from_file(const char *str, const char *filename) { +ruby_eval_string_from_file(const char *str, const char *filename) +{ return eval_string(rb_vm_top_self(), rb_str_new2(str), Qnil, filename, 1); } @@ -1166,14 +1167,17 @@ struct eval_string_from_file_arg { const char *str; const char *filename; }; + static VALUE -eval_string_from_file_helper(void *data) { +eval_string_from_file_helper(void *data) +{ const struct eval_string_from_file_arg *const arg = (struct eval_string_from_file_arg*)data; return eval_string(rb_vm_top_self(), rb_str_new2(arg->str), Qnil, arg->filename, 1); } VALUE -ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state) { +ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state) +{ struct eval_string_from_file_arg arg; arg.str = str; arg.filename = filename; -- cgit v1.2.3