summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 23:36:34 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 23:36:34 +0000
commitf833dd2e24b821c083385863dc552bd847ce85c9 (patch)
treec6cdac58a083df209c94c62b88e5cc892010882f /iseq.c
parent5cc06ae864c19f5b1d8fd6a3fa3544db688f5e36 (diff)
* 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/trunk@25095 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 360f283a76..a14f374687 100644
--- a/iseq.c
+++ b/iseq.c
@@ -517,7 +517,7 @@ rb_iseq_load(VALUE data, VALUE parent, VALUE opt)
}
static NODE *
-compile_string(VALUE str, const char *file, int line)
+parse_string(VALUE str, const char *file, int line)
{
VALUE parser = rb_parser_new();
NODE *node = rb_parser_compile_string(parser, file, str, line);
@@ -534,7 +534,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
rb_compile_option_t option;
const char *fn = StringValueCStr(file);
int ln = NUM2INT(line);
- NODE *node = compile_string(StringValue(src), fn, ln);
+ NODE *node = parse_string(StringValue(src), fn, ln);
rb_thread_t *th = GET_THREAD();
make_compile_option(&option, opt);