8000 * compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__. · documenting-ruby/ruby@66d75cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 66d75cd

Browse files
committed
* compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__.
* ricsin/test.rcb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ricsin@19572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent bcd1ff4 commit 66d75cd

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4132,7 +4132,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
41324132
}
41334133
break;
41344134
}
4135-
else if (mid == rb_intern("__Cx__")) {
4135+
else if (mid == rb_intern("__Ccont__")) {
41364136
if (ricsin_mode == 1) {
41374137
/* ricsin compile mode */
41384138
ricsin_compile(iseq, ret, node, 1);

ricsin/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Fri Sep 26 13:39:46 2008 Koichi Sasada <ko1@atdot.net>
2+
3+
* compile.c, ricsin/ricsin.rb: rename __Cx__ to __Ccont__.
4+
5+
* ricsin/test.rcb: ditto.
6+
17
Fri Sep 26 12:53:37 2008 Koichi Sasada <ko1@atdot.net>
28

39
* ricsin/ricsin.rb: fix to use require_relative.

ricsin/ricsin.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def generate_rb
4949
end
5050

5151
def preprocess file
52-
# #C cexpr => __Cx__ %q{ cexpr }, 0
53-
# #C:10 cexpr => __Cx__ %q{ cexpr }, 10
52+
# #C cexpr => __Ccont__ %q{ cexpr }, 0
53+
# #C:10 cexpr => __Ccont__ %q{ cexpr }, 10
5454

5555
# kill __END__ lines
5656
src = File.read(file).sub(/^__END__.+/m, '')
@@ -63,7 +63,7 @@ def preprocess file
6363
raise line.dump
6464
end
6565
}.join("\\\n")
66-
"__Cx__(#{csrc}, 0)\n"
66+
"__Ccont__(#{csrc}, 0)\n"
6767
}
6868
# .gsub(/^\s*=begin C\s*$(.+)^\s*=end\s*$/m){
6969
# #/^\s*=begin C$.+^\s*=end$/m

ricsin/test.rcb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class TestRcsin < Test::Unit::TestCase
2424
assert_equal('@iv', __C__('return rb_str_new2("@iv");'))
2525
end
2626

27-
def test_cx
27+
def test_cont
2828
v = nil
2929
#C v = INT2FIX(42);
3030
assert_equal(42, v)

0 commit comments

Comments
 (0)
0