diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 23:36:34 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-25 23:36:34 +0000 |
| commit | 38bfcdee6b1a6816d0bb9595b3f7e5ff3cd730f8 (patch) | |
| tree | c6cdac58a083df209c94c62b88e5cc892010882f | |
| parent | 0a8dac0e87c44ccb72b9c1fe5882cc64a1220e5a (diff) | |
| download | ruby-38bfcdee6b1a6816d0bb9595b3f7e5ff3cd730f8.tar.gz ruby-38bfcdee6b1a6816d0bb9595b3f7e5ff3cd730f8.tar.xz ruby-38bfcdee6b1a6816d0bb9595b3f7e5ff3cd730f8.zip | |
* iseq.c (compile_string): rename to parse_string(), because
this function only parse String to NODE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | iseq.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Sep 26 08:35:12 2009 Koichi Sasada <ko1@atdot.net> + + * iseq.c (compile_string): rename to parse_string(), because + this function only parse String to NODE. + Fri Sep 25 16:01:45 2009 NAKAMURA Usaku <usa@ruby-lang.org> * win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to @@ -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); |
