summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-27 02:55:25 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-27 02:55:25 +0000
commitce8f82fc1a8b9d9f761d12a4696c8c65e12bc9fe (patch)
treeb96cabd6dca3cd441ff8296f8b99e892c2540fb4 /iseq.c
parent319f97adb9b88f4ff378618fea4d1968faedebeb (diff)
merges r25095 from trunk into ruby_1_9_1.
-- * iseq.c (compile_string): rename to parse_string(), because this function only parse String to NODE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index 159da22ed5..159357cec2 100644
--- a/iseq.c
+++ b/iseq.c
@@ -457,7 +457,7 @@ ruby_iseq_load(VALUE data, VALUE parent, VALUE opt)
}
static NODE *
-compile_string(VALUE str, VALUE file, VALUE line)
+parse_string(VALUE str, VALUE file, VALUE line)
{
VALUE parser = rb_parser_new();
NODE *node = rb_parser_compile_string(parser, StringValueCStr(file),
@@ -473,7 +473,7 @@ VALUE
rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
{
rb_compile_option_t option;
- NODE *node = compile_string(StringValue(src), file, line);
+ NODE *node = parse_string(StringValue(src), file, line);
rb_thread_t *th = GET_THREAD();
make_compile_option(&option, opt);