aboutsummaryrefslogtreecommitdiffstats
path: root/internal
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 /internal
parentd9cba2fc74addc3e0a6da0fe230fd333fb1c31ac (diff)
downloadruby-6aa16f9ec14a296f549dc955774ad2293d1c54d6.tar.gz
Move SCRIPT_LINES__ away from parse.y
Diffstat (limited to 'internal')
-rw-r--r--internal/parse.h2
-rw-r--r--internal/ruby_parser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/parse.h b/internal/parse.h
index c66c8df7b6..ce99556ef9 100644
--- a/internal/parse.h
+++ b/internal/parse.h
@@ -78,7 +78,7 @@ size_t rb_ruby_parser_memsize(const void *ptr);
void rb_ruby_parser_set_options(rb_parser_t *p, int print, int loop, int chomp, int split);
rb_parser_t *rb_ruby_parser_set_context(rb_parser_t *p, const struct rb_iseq_struct *base, int main);
-void rb_ruby_parser_keep_script_lines(rb_parser_t *p);
+void rb_ruby_parser_set_script_lines(rb_parser_t *p, VALUE lines_array);
void rb_ruby_parser_error_tolerant(rb_parser_t *p);
rb_ast_t* rb_ruby_parser_compile_file_path(rb_parser_t *p, VALUE fname, VALUE file, int start);
void rb_ruby_parser_keep_tokens(rb_parser_t *p);
diff --git a/internal/ruby_parser.h b/internal/ruby_parser.h
index c6240cf9fa..fc23177719 100644
--- a/internal/ruby_parser.h
+++ b/internal/ruby_parser.h
@@ -19,7 +19,7 @@ VALUE rb_parser_encoding(VALUE);
VALUE rb_parser_set_yydebug(VALUE, VALUE);
void rb_parser_set_options(VALUE, int, int, int, int);
void *rb_parser_load_file(VALUE parser, VALUE name);
-void rb_parser_keep_script_lines(VALUE vparser);
+void rb_parser_set_script_lines(VALUE vparser, VALUE lines_array);
void rb_parser_error_tolerant(VALUE vparser);
void rb_parser_keep_tokens(VALUE vparser);