summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-11 00:55:19 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-11 00:55:19 +0000
commitab97298a229ffd6323e11a6356fbeb3a6fc672ca (patch)
treec1e8be933e255b78eaef9572c47468bd8581eff8
parentafa1c6a2dfef06e56b2410c7ab430b0a36d2b69f (diff)
Make some functions to be static
These functions are used only in ast.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ast.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ast.c b/ast.c
index 7e7ec9e..33e7ba4 100644
--- a/ast.c
+++ b/ast.c
@@ -52,9 +52,9 @@ ast_new_internal(rb_ast_t *ast, NODE *node)
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)
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 path)
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)
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)
return str;
}
-VALUE
+static VALUE
rb_ast_parse_array(VALUE array)
{
rb_ast_t *ast = 0;