ruby-changes:53447
From: yui-knk <ko1@a...>
Date: Sun, 11 Nov 2018 09:55:25 +0900 (JST)
Subject: [ruby-changes:53447] yui-knk:r65663 (trunk): Make some functions to be static
yui-knk 2018-11-11 09:55:19 +0900 (Sun, 11 Nov 2018) New Revision: 65663 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65663 Log: Make some functions to be static These functions are used only in ast.c. Modified files: trunk/ast.c Index: ast.c =================================================================== --- ast.c (revision 65662) +++ ast.c (revision 65663) @@ -52,9 +52,9 @@ ast_new_internal(rb_ast_t *ast, NODE *no https://github.com/ruby/ruby/blob/trunk/ast.c#L52 return obj; } -VALUE rb_ast_parse_str(VALUE str); -VALUE rb_ast_parse_file(VALUE path); -VALUE rb_ast_parse_array(VALUE array); +static VALUE rb_ast_parse_str(VALUE str); +static VALUE rb_ast_parse_file(VALUE path); +static VALUE rb_ast_parse_array(VALUE array); static VALUE ast_parse_new(void) @@ -91,7 +91,7 @@ rb_ast_s_parse(VALUE module, VALUE str) https://github.com/ruby/ruby/blob/trunk/ast.c#L91 return rb_ast_parse_str(str); } -VALUE +static VALUE rb_ast_parse_str(VALUE str) { rb_ast_t *ast = 0; @@ -120,7 +120,7 @@ rb_ast_s_parse_file(VALUE module, VALUE https://github.com/ruby/ruby/blob/trunk/ast.c#L120 return rb_ast_parse_file(path); } -VALUE +static VALUE rb_ast_parse_file(VALUE path) { VALUE f; @@ -135,7 +135,7 @@ rb_ast_parse_file(VALUE path) https://github.com/ruby/ruby/blob/trunk/ast.c#L135 return ast_parse_done(ast); } -VALUE +static VALUE lex_array(VALUE array, int index) { VALUE str = rb_ary_entry(array, index); @@ -148,7 +148,7 @@ lex_array(VALUE array, int index) https://github.com/ruby/ruby/blob/trunk/ast.c#L148 return str; } -VALUE +static VALUE rb_ast_parse_array(VALUE array) { rb_ast_t *ast = 0; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/