summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-04 02:52:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-04 02:52:44 +0000
commit4ef43fc02f9446da4eaa508c439d3caa1a244ebf (patch)
treec377136579f6914c59ef64044d7471678a89c251 /vm_eval.c
parent99e63fba29afb9f6dbf95396a12524ec8b8096ac (diff)
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
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c10
1 files changed, 7 insertions, 3 deletions
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;