From cad83fa3c4491153df0561b06bb261e25a831d0f Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 20 Aug 2021 16:18:36 +0900 Subject: ast.c: Rename "save_script_lines" to "keep_script_lines" ... as per ko1's preference. He is preparing to extend this feature to ISeq for his new debugger. He prefers "keep" to "save" for this wording. This API is internal and not included in any released version, so I change it in advance. --- parse.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 897b46838e..65c90a7a68 100644 --- a/parse.y +++ b/parse.y @@ -337,7 +337,7 @@ struct parser_params { unsigned int do_loop: 1; unsigned int do_chomp: 1; unsigned int do_split: 1; - unsigned int save_script_lines: 1; + unsigned int keep_script_lines: 1; NODE *eval_tree_begin; NODE *eval_tree; @@ -6251,7 +6251,7 @@ yycompile0(VALUE arg) cov = Qtrue; } } - if (p->save_script_lines) { + if (p->keep_script_lines) { if (!p->debug_lines) { p->debug_lines = rb_ary_new(); } @@ -13197,12 +13197,12 @@ rb_parser_set_context(VALUE vparser, const struct rb_iseq_struct *base, int main } void -rb_parser_save_script_lines(VALUE vparser) +rb_parser_keep_script_lines(VALUE vparser) { struct parser_params *p; TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, p); - p->save_script_lines = 1; + p->keep_script_lines = 1; } #endif -- cgit v1.2.3