diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 11:39:21 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 11:39:21 +0000 |
commit | e76eb06feb024828034379797129d92522e28516 (patch) | |
tree | 1326c625c233ba2554043203a7697f5e3d4c49e5 /ruby_1_9_3/ext/-test-/string | |
parent | aa6e98139c8e1ea442fb2182341aaa08ff55b529 (diff) | |
parent | bede15ac5e701ed08f3fc64c2dba03d3f393c652 (diff) |
add tag v1_9_3_426v1_9_3_426
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_3_426@40737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_1_9_3/ext/-test-/string')
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/cstr.c | 20 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/ellipsize.c | 13 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/enc_associate.c | 14 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/extconf.rb | 6 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/init.c | 11 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/modify.c | 22 | ||||
-rw-r--r-- | ruby_1_9_3/ext/-test-/string/set_len.c | 14 |
7 files changed, 0 insertions, 100 deletions
diff --git a/ruby_1_9_3/ext/-test-/string/cstr.c b/ruby_1_9_3/ext/-test-/string/cstr.c deleted file mode 100644 index d4ff360575..0000000000 --- a/ruby_1_9_3/ext/-test-/string/cstr.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "ruby.h" - -static VALUE -bug_str_cstr_term(VALUE str) -{ - long len; - char *s; - rb_str_modify(str); - len = RSTRING_LEN(str); - RSTRING_PTR(str)[len] = 'x'; - s = StringValueCStr(str); - rb_gc(); - return INT2NUM(s[len]); -} - -void -Init_cstr(VALUE klass) -{ - rb_define_method(klass, "cstr_term", bug_str_cstr_term, 0); -} diff --git a/ruby_1_9_3/ext/-test-/string/ellipsize.c b/ruby_1_9_3/ext/-test-/string/ellipsize.c deleted file mode 100644 index 0451519492..0000000000 --- a/ruby_1_9_3/ext/-test-/string/ellipsize.c +++ /dev/null @@ -1,13 +0,0 @@ -#include "ruby.h" - -static VALUE -bug_str_ellipsize(VALUE str, VALUE len) -{ - return rb_str_ellipsize(str, NUM2LONG(len)); -} - -void -Init_ellipsize(VALUE klass) -{ - rb_define_method(klass, "ellipsize", bug_str_ellipsize, 1); -} diff --git a/ruby_1_9_3/ext/-test-/string/enc_associate.c b/ruby_1_9_3/ext/-test-/string/enc_associate.c deleted file mode 100644 index d6614fb298..0000000000 --- a/ruby_1_9_3/ext/-test-/string/enc_associate.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "ruby.h" -#include "ruby/encoding.h" - -VALUE -bug_str_enc_associate(VALUE str, VALUE enc) -{ - return rb_enc_associate(str, rb_to_encoding(enc)); -} - -void -Init_enc_associate(VALUE klass) -{ - rb_define_method(klass, "associate_encoding!", bug_str_enc_associate, 1); -} diff --git a/ruby_1_9_3/ext/-test-/string/extconf.rb b/ruby_1_9_3/ext/-test-/string/extconf.rb deleted file mode 100644 index 42c10b994b..0000000000 --- a/ruby_1_9_3/ext/-test-/string/extconf.rb +++ /dev/null @@ -1,6 +0,0 @@ -$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] -inits = $srcs.map {|s| File.basename(s, ".*")} -inits.delete("init") -inits.map! {|s|"X(#{s})"} -$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\"" -create_makefile("-test-/string/string") diff --git a/ruby_1_9_3/ext/-test-/string/init.c b/ruby_1_9_3/ext/-test-/string/init.c deleted file mode 100644 index 0b3e4a6ff2..0000000000 --- a/ruby_1_9_3/ext/-test-/string/init.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "ruby.h" - -#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);} - -void -Init_string(void) -{ - VALUE mBug = rb_define_module("Bug"); - VALUE klass = rb_define_class_under(mBug, "String", rb_cString); - TEST_INIT_FUNCS(init); -} diff --git a/ruby_1_9_3/ext/-test-/string/modify.c b/ruby_1_9_3/ext/-test-/string/modify.c deleted file mode 100644 index ddd2efd8f0..0000000000 --- a/ruby_1_9_3/ext/-test-/string/modify.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "ruby.h" - -VALUE -bug_str_modify(VALUE str) -{ - rb_str_modify(str); - return str; -} - -VALUE -bug_str_modify_expand(VALUE str, VALUE expand) -{ - rb_str_modify_expand(str, NUM2LONG(expand)); - return str; -} - -void -Init_modify(VALUE klass) -{ - rb_define_method(klass, "modify!", bug_str_modify, 0); - rb_define_method(klass, "modify_expand!", bug_str_modify_expand, 1); -} diff --git a/ruby_1_9_3/ext/-test-/string/set_len.c b/ruby_1_9_3/ext/-test-/string/set_len.c deleted file mode 100644 index 3c7d19d778..0000000000 --- a/ruby_1_9_3/ext/-test-/string/set_len.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "ruby.h" - -static VALUE -bug_str_set_len(VALUE str, VALUE len) -{ - rb_str_set_len(str, NUM2LONG(len)); - return str; -} - -void -Init_set_len(VALUE klass) -{ - rb_define_method(klass, "set_len", bug_str_set_len, 1); -} |