diff options
author | HParker <[email protected]> | 2023-12-05 16:57:29 -0800 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2023-12-06 10:21:12 +0900 |
commit | b8b319dd1a48b695df8982eacf8b1ee0004c7a8b (patch) | |
tree | c19bbf39c3146c43fcc157ca27e931c76d386530 /iseq.c | |
parent | c146da50bd8ae42236987f33dd3d4d12cb40a559 (diff) |
Revert "allow enabling Prism via flag or env var"
This reverts commit 9b76c7fc89460ed8e9be40e4037c1d68395c0f6d.
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -1487,23 +1487,6 @@ iseqw_s_compile_file_prism(int argc, VALUE *argv, VALUE self) return iseqw_new(iseq); } -rb_iseq_t * -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); - - if (NIL_P(path)) path = rb_fstring_lit("<compiled>"); - int start_line = 0; - pm_options_line_set(options, start_line); - - rb_iseq_t *iseq = iseq_alloc(); - iseqw_s_compile_prism_compile(&parser, Qnil, iseq, path, path, start_line); - - pm_parser_free(&parser); - return iseq; -} - /* * call-seq: * InstructionSequence.compile_file(file[, options]) -> iseq |