summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-07 06:14:19 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-07 06:14:19 +0000
commit3f5df75e7338489a0a77acbfa4f35d4f20e38bcc (patch)
treeaeee3e775360e91a0b5b5f49120eae3751ce3440
parent3106687fec3d447d77b93c93042ff932d782b0d4 (diff)
* ruby.c (rubylib_mangled_path): eliminate RSTRING_PTR
[ruby-dev:31679] * ruby.c (push_include_cygwin): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog15
-rw-r--r--ruby.c6
-rw-r--r--version.h2
3 files changed, 17 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b6a64ec01..92ec7cd667 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,18 @@
+Fri Sep 7 14:57:36 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * ruby.c (rubylib_mangled_path): eliminate RSTRING_PTR
+ [ruby-dev:31679]
+
+ * ruby.c(push_include_cygwin): ditto.
+
Fri Sep 7 14:32:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
- * array.c (rb_ary_fill): need integer overflow check.
- [ruby-dev:31738]
+ * array.c (rb_ary_subseq): need integer overflow check.
+ [ruby-dev:31736]
+
+ * array.c (rb_ary_splice): ditto. [ruby-dev:31737]
+
+ * array.c (rb_ary_fill): ditto. [ruby-dev:31738]
* string.c (rb_str_splice): integer overflow for length.
[ruby-dev:31739]
diff --git a/ruby.c b/ruby.c
index 51d8a7c845..087da558de 100644
--- a/ruby.c
+++ b/ruby.c
@@ -162,7 +162,7 @@ rubylib_mangled_path(const char *s, unsigned int l)
return rb_str_new(s, l);
}
ret = rb_str_new(0, l + newl - oldl);
- ptr = RSTRING_PTR(ret);
+ ptr = RSTRING(ret)->ptr;
memcpy(ptr, newp, newl);
memcpy(ptr + newl, s + oldl, l - oldl);
ptr[l + newl - oldl] = 0;
@@ -218,11 +218,11 @@ push_include_cygwin(const char *path)
if (*s) {
if (!buf) {
buf = rb_str_new(p, len);
- p = RSTRING_PTR(buf);
+ p = RSTRING(buf)->ptr;
}
else {
rb_str_resize(buf, len);
- p = strncpy(RSTRING_PTR(buf), p, len);
+ p = strncpy(RSTRING(buf)->ptr, p, len);
}
}
if (cygwin_conv_to_posix_path(p, rubylib) == 0)
diff --git a/version.h b/version.h
index 2f89488e89..08049bfa23 100644
--- a/version.h
+++ b/version.h
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2007-09-07"
#define RUBY_VERSION_CODE 185
#define RUBY_RELEASE_CODE 20070907
-#define RUBY_PATCHLEVEL 108
+#define RUBY_PATCHLEVEL 109
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8