summaryrefslogtreecommitdiff
path: root/ruby_parser.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-25 16:53:29 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-08-25 18:23:05 +0900
commit6aa16f9ec14a296f549dc955774ad2293d1c54d6 (patch)
tree39498c84bbdf2d7edd499d6e60642c1ca34cb908 /ruby_parser.c
parentd9cba2fc74addc3e0a6da0fe230fd333fb1c31ac (diff)
Move SCRIPT_LINES__ away from parse.y
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8289
Diffstat (limited to 'ruby_parser.c')
-rw-r--r--ruby_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby_parser.c b/ruby_parser.c
index 9ab78be2a9..c059ac2d11 100644
--- a/ruby_parser.c
+++ b/ruby_parser.c
@@ -853,12 +853,12 @@ rb_parser_set_context(VALUE vparser, const struct rb_iseq_struct *base, int main
}
void
-rb_parser_keep_script_lines(VALUE vparser)
+rb_parser_set_script_lines(VALUE vparser, VALUE lines)
{
struct ruby_parser *parser;
TypedData_Get_Struct(vparser, struct ruby_parser, &ruby_parser_data_type, parser);
- rb_ruby_parser_keep_script_lines(parser->parser_params);
+ rb_ruby_parser_set_script_lines(parser->parser_params, lines);
}
void