[前][次][番号順一覧][スレッド一覧]

ruby-changes:13331

From: ko1 <ko1@a...>
Date: Sat, 26 Sep 2009 08:36:51 +0900 (JST)
Subject: [ruby-changes:13331] Ruby:r25095 (trunk): * iseq.c (compile_string): rename to parse_string(), because

ko1	2009-09-26 08:36:34 +0900 (Sat, 26 Sep 2009)

  New Revision: 25095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25095

  Log:
    * iseq.c (compile_string): rename to parse_string(), because
      this function only parse String to NODE.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25094)
+++ ChangeLog	(revision 25095)
@@ -1,3 +1,8 @@
+Sat Sep 26 08:35:12 2009  Koichi Sasada  <ko1@a...>
+
+	* 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@r...>
 
 	* win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
Index: iseq.c
===================================================================
--- iseq.c	(revision 25094)
+++ iseq.c	(revision 25095)
@@ -517,7 +517,7 @@
 }
 
 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_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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]