ruby-changes:3234
From: ko1@a...
Date: 27 Dec 2007 11:01:35 +0900
Subject: [ruby-changes:3234] nobu - Ruby:r14727 (ruby_1_8): * intern.h, string.c (rb_str_set_len): added for upgrading path from
nobu 2007-12-27 11:01:24 +0900 (Thu, 27 Dec 2007)
New Revision: 14727
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/intern.h
branches/ruby_1_8/string.c
branches/ruby_1_8/version.h
Log:
* intern.h, string.c (rb_str_set_len): added for upgrading path from
1.8 to 1.9. [ruby-dev:32807]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/intern.h?r1=14727&r2=14726
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14727&r2=14726
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?r1=14727&r2=14726
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/string.c?r1=14727&r2=14726
Index: ruby_1_8/intern.h
===================================================================
--- ruby_1_8/intern.h (revision 14726)
+++ ruby_1_8/intern.h (revision 14727)
@@ -424,6 +424,7 @@
VALUE rb_str_substr _((VALUE, long, long));
void rb_str_modify _((VALUE));
VALUE rb_str_freeze _((VALUE));
+void rb_str_set_len _((VALUE, long));
VALUE rb_str_resize _((VALUE, long));
VALUE rb_str_cat _((VALUE, const char*, long));
VALUE rb_str_cat2 _((VALUE, const char*));
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 14726)
+++ ruby_1_8/ChangeLog (revision 14727)
@@ -1,3 +1,8 @@
+Thu Dec 27 11:01:17 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * intern.h, string.c (rb_str_set_len): added for upgrading path from
+ 1.8 to 1.9. [ruby-dev:32807]
+
Thu Dec 27 10:47:32 2007 Technorama Ltd. <oss-ruby@t...>
* ext/openssl/ossl_ssl.c: Only show a warning if the default
@@ -100,7 +105,6 @@
of range. a patch from Akinori MUSHA <knu AT iDaemons.org>.
[ruby-dev:32518]
-
Mon Dec 10 18:28:06 2007 Yukihiro Matsumoto <matz@r...>
* lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
@@ -9065,7 +9069,6 @@
- gave a name to 'x'.
- undef_method -> remove_method for avoiding a warning in ruby 1.6.
-
* lib/rss/parser.rb: @@setter -> @@setters.
* lib/rss/parser.rb
@@ -9093,34 +9096,28 @@
elements. (ex. have childlen elements, have some attributes and
a child element and so on.)
-
* lib/rss/dublincore.rb: supported multiple Dublin Core items.
* lib/rss/maker/dublincore.rb: ditto.
* lib/rss/maker/image.rb: supproted new Dublin Core API.
-
* lib/rss/maker/base.rb: added default current_element implementation.
-
* lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need):
moved to RSS::Utils.
* lib/rss/utils.rb (RSS::Utils.new_with_value_if_need):
moved from RSS::TrackBackUtils.
-
* lib/rss/maker/image.rb: fixed invalid argument of
add_need_initialize_variable bug.
* lib/rss/maker/trackback.rb: ditto.
-
* lib/rss/rss.rb (Hash#merge): added for ruby 1.6.
* lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil
for date value.
-
* test/test_dublincore.rb: added tests for plural accessor and
multiple Dublin Core items.
@@ -9136,7 +9133,6 @@
* test/rss/test_maker_dc.rb (test_date): added a test for #date=
and #dc_date=.
-
* sample/rss/tdiary_plugin/rss-recent.rb:
new option: @options['rss-recent.use-image-link']:
use image as link instread of text if available.
@@ -12794,7 +12790,6 @@
* ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and
allow_ruby_exit=
-
* ext/tk/lib/multi-tk.rb: ditto.
* ext/tk/lib/remote-tk.rb: ditto.
@@ -13380,7 +13375,6 @@
* ext/tk/sample/tkextlib/: add samples of Iwidget and TkTable
-
Wed Jul 14 18:08:37 2004 GOTOU Yuuzou <gotoyuzo@n...>
* ext/openssl/ossl_asn1.c (ossl_asn1cons_to_der): fix type of
@@ -15857,7 +15851,6 @@
class and a method have the same name, finding Xxx.abc was trying
to find 'abc' in method 'Xxx', not class 'Xxx'.
-
Tue Dec 30 08:32:32 2003 Dave Thomas <dave@p...>
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method):
@@ -15865,7 +15858,6 @@
def each_entry(&b) Dir.foreach(@path) {|f| yield P.new(f) } end
-
Tue Dec 30 08:32:32 2003 Dave Thomas <dave@p...>
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method):
Index: ruby_1_8/version.h
===================================================================
--- ruby_1_8/version.h (revision 14726)
+++ ruby_1_8/version.h (revision 14727)
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.6"
-#define RUBY_RELEASE_DATE "2007-12-24"
+#define RUBY_RELEASE_DATE "2007-12-27"
#define RUBY_VERSION_CODE 186
-#define RUBY_RELEASE_CODE 20071224
+#define RUBY_RELEASE_CODE 20071227
#define RUBY_PATCHLEVEL 5000
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 6
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 12
-#define RUBY_RELEASE_DAY 24
+#define RUBY_RELEASE_DAY 27
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Index: ruby_1_8/string.c
===================================================================
--- ruby_1_8/string.c (revision 14726)
+++ ruby_1_8/string.c (revision 14727)
@@ -671,6 +671,13 @@
return str;
}
+void
+rb_str_set_len(VALUE str, long len)
+{
+ RSTRING(str)->len = len;
+ RSTRING(str)->ptr[len] = '\0';
+}
+
VALUE
rb_str_resize(str, len)
VALUE str;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml