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

ruby-changes:32676

From: usa <ko1@a...>
Date: Thu, 30 Jan 2014 14:32:39 +0900 (JST)
Subject: [ruby-changes:32676] usa:r44755 (ruby_1_9_3): 1.9.3 does not have rb_exc_new_str(). use rb_exc_new3() instead of it.

usa	2014-01-30 14:32:32 +0900 (Thu, 30 Jan 2014)

  New Revision: 44755

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

  Log:
    1.9.3 does not have rb_exc_new_str().  use rb_exc_new3() instead of it.
    this fixes the test failures introduced by previous commit.

  Modified files:
    branches/ruby_1_9_3/ext/pty/pty.c
    branches/ruby_1_9_3/ext/tk/tcltklib.c
    branches/ruby_1_9_3/ext/win32ole/win32ole.c
    branches/ruby_1_9_3/ext/zlib/zlib.c
    branches/ruby_1_9_3/version.h
Index: ruby_1_9_3/ext/zlib/zlib.c
===================================================================
--- ruby_1_9_3/ext/zlib/zlib.c	(revision 44754)
+++ ruby_1_9_3/ext/zlib/zlib.c	(revision 44755)
@@ -294,8 +294,8 @@ raise_zlib_error(int err, const char *ms https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/zlib/zlib.c#L294
 	rb_sys_fail(msg);
 	/* no return */
       default:
-	exc = rb_exc_new_str(cZError,
-			     rb_sprintf("unknown zlib error %d: %s", err, msg));
+	exc = rb_exc_new3(cZError,
+			  rb_sprintf("unknown zlib error %d: %s", err, msg));
     }
 
     rb_exc_raise(exc);
Index: ruby_1_9_3/ext/win32ole/win32ole.c
===================================================================
--- ruby_1_9_3/ext/win32ole/win32ole.c	(revision 44754)
+++ ruby_1_9_3/ext/win32ole/win32ole.c	(revision 44755)
@@ -1196,7 +1196,7 @@ ole_raise(HRESULT hr, VALUE ecs, const c https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/win32ole/win32ole.c#L1196
 	rb_str_cat2(msg, "\n");
 	rb_str_append(msg, err_msg);
     }
-    rb_exc_raise(rb_exc_new_str(ecs, msg));
+    rb_exc_raise(rb_exc_new3(ecs, msg));
 }
 
 void
Index: ruby_1_9_3/ext/pty/pty.c
===================================================================
--- ruby_1_9_3/ext/pty/pty.c	(revision 44754)
+++ ruby_1_9_3/ext/pty/pty.c	(revision 44755)
@@ -628,7 +628,7 @@ raise_from_check(pid_t pid, int status) https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/pty/pty.c#L628
 	state = "exited";
     }
     msg = rb_sprintf("pty - %s: %ld", state, (long)pid);
-    exc = rb_exc_new_str(eChildExited, msg);
+    exc = rb_exc_new3(eChildExited, msg);
     rb_iv_set(exc, "status", rb_last_status_get());
     rb_exc_raise(exc);
 }
Index: ruby_1_9_3/ext/tk/tcltklib.c
===================================================================
--- ruby_1_9_3/ext/tk/tcltklib.c	(revision 44754)
+++ ruby_1_9_3/ext/tk/tcltklib.c	(revision 44755)
@@ -846,7 +846,7 @@ create_ip_exc(interp, exc, fmt, va_alist https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/tk/tcltklib.c#L846
     va_init_list(args,fmt);
     msg = rb_vsprintf(fmt, args);
     va_end(args);
-    einfo = rb_exc_new_str(exc, msg);
+    einfo = rb_exc_new3(exc, msg);
     rb_ivar_set(einfo, ID_at_interp, interp);
     if (ptr) {
         Tcl_ResetResult(ptr->ip);
Index: ruby_1_9_3/version.h
===================================================================
--- ruby_1_9_3/version.h	(revision 44754)
+++ ruby_1_9_3/version.h	(revision 44755)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/version.h#L1
 #define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 504
+#define RUBY_PATCHLEVEL 505
 
 #define RUBY_RELEASE_DATE "2014-01-30"
 #define RUBY_RELEASE_YEAR 2014

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

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