Skip to content

Commit

Permalink
Adjust styles [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 6, 2023
1 parent 0046769 commit c146da5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion iseq.c
Expand Up @@ -1488,7 +1488,8 @@ iseqw_s_compile_file_prism(int argc, VALUE *argv, VALUE self)
}

rb_iseq_t *
rb_iseq_new_main_prism(pm_string_t *input, pm_options_t *options, VALUE path) {
rb_iseq_new_main_prism(pm_string_t *input, pm_options_t *options, VALUE path)
{
pm_parser_t parser;
pm_parser_init(&parser, pm_string_source(input), pm_string_length(input), options);

Expand Down
3 changes: 2 additions & 1 deletion load.c
Expand Up @@ -733,7 +733,8 @@ load_iseq_eval(rb_execution_context_t *ec, VALUE fname)

pm_string_free(&input);
pm_options_free(&options);
} else {
}
else {
rb_execution_context_t *ec = GET_EC();
VALUE v = rb_vm_push_frame_fname(ec, fname);
rb_ast_t *ast;
Expand Down
9 changes: 6 additions & 3 deletions ruby.c
Expand Up @@ -2333,7 +2333,8 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
if (opt->e_script) {
pm_string_constant_init(&input, RSTRING_PTR(opt->e_script), RSTRING_LEN(opt->e_script));
pm_options_filepath_set(&options, "-e");
} else {
}
else {
pm_string_mapped_init(&input, RSTRING_PTR(opt->script_name));
pm_options_filepath_set(&options, RSTRING_PTR(opt->script_name));
}
Expand Down Expand Up @@ -2387,7 +2388,8 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
if (opt->e_script) {
pm_string_constant_init(&input, RSTRING_PTR(opt->e_script), RSTRING_LEN(opt->e_script));
pm_options_filepath_set(&options, "-e");
} else {
}
else {
pm_string_mapped_init(&input, RSTRING_PTR(opt->script_name));
pm_options_filepath_set(&options, RSTRING_PTR(opt->script_name));
}
Expand All @@ -2396,7 +2398,8 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)

pm_string_free(&input);
pm_options_free(&options);
} else {
}
else {
rb_binding_t *toplevel_binding;
GetBindingPtr(rb_const_get(rb_cObject, rb_intern("TOPLEVEL_BINDING")),
toplevel_binding);
Expand Down

0 comments on commit c146da5

Please sign in to comment.