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

ruby-changes:8047

From: ko1 <ko1@a...>
Date: Fri, 26 Sep 2008 13:41:35 +0900 (JST)
Subject: [ruby-changes:8047] Ruby:r19572 (ricsin): * compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__.

ko1	2008-09-26 13:41:11 +0900 (Fri, 26 Sep 2008)

  New Revision: 19572

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

  Log:
    * compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__.
    * ricsin/test.rcb: ditto.

  Modified files:
    branches/ricsin/compile.c
    branches/ricsin/ricsin/ChangeLog
    branches/ricsin/ricsin/ricsin.rb
    branches/ricsin/ricsin/test.rcb

Index: ricsin/ricsin/test.rcb
===================================================================
--- ricsin/ricsin/test.rcb	(revision 19571)
+++ ricsin/ricsin/test.rcb	(revision 19572)
@@ -24,7 +24,7 @@
     assert_equal('@iv', __C__('return rb_str_new2("@iv");'))
   end
 
-  def test_cx
+  def test_cont
     v = nil
     #C v = INT2FIX(42);
     assert_equal(42, v)
Index: ricsin/ricsin/ChangeLog
===================================================================
--- ricsin/ricsin/ChangeLog	(revision 19571)
+++ ricsin/ricsin/ChangeLog	(revision 19572)
@@ -1,3 +1,9 @@
+Fri Sep 26 13:39:46 2008  Koichi Sasada  <ko1@a...>
+
+	* compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__.
+
+	* ricsin/test.rcb: ditto.
+
 Fri Sep 26 12:53:37 2008  Koichi Sasada  <ko1@a...>
 
 	* ricsin/ricsin.rb: fix to use require_relative.
Index: ricsin/ricsin/ricsin.rb
===================================================================
--- ricsin/ricsin/ricsin.rb	(revision 19571)
+++ ricsin/ricsin/ricsin.rb	(revision 19572)
@@ -49,8 +49,8 @@
   end
 
   def preprocess file
-    # #C cexpr => __Cx__ %q{ cexpr }, 0
-    # #C:10 cexpr => __Cx__ %q{ cexpr }, 10
+    # #C cexpr => __Ccont__ %q{ cexpr }, 0
+    # #C:10 cexpr => __Ccont__ %q{ cexpr }, 10
 
     # kill __END__ lines
     src = File.read(file).sub(/^__END__.+/m, '')
@@ -63,7 +63,7 @@
           raise line.dump
         end
       }.join("\\\n")
-      "__Cx__(#{csrc}, 0)\n"
+      "__Ccont__(#{csrc}, 0)\n"
     }
     # .gsub(/^\s*=begin C\s*$(.+)^\s*=end\s*$/m){
     #  #/^\s*=begin C$.+^\s*=end$/m
Index: ricsin/compile.c
===================================================================
--- ricsin/compile.c	(revision 19571)
+++ ricsin/compile.c	(revision 19572)
@@ -4132,7 +4132,7 @@
 		    }
 		    break;
 		}
-		else if (mid == rb_intern("__Cx__")) {
+		else if (mid == rb_intern("__Ccont__")) {
 		    if (ricsin_mode == 1) {
 			/* ricsin compile mode */
 			ricsin_compile(iseq, ret, node, 1);

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

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