summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread_pthread.c3
-rw-r--r--vm_eval.c10
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;