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

ruby-changes:14596

From: nobu <ko1@a...>
Date: Wed, 27 Jan 2010 14:23:52 +0900 (JST)
Subject: [ruby-changes:14596] Ruby:r26439 (ruby_1_8): * ext/dl/dl.c (c_parray): get rid of a deprecated function.

nobu	2010-01-27 14:23:38 +0900 (Wed, 27 Jan 2010)

  New Revision: 26439

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

  Log:
    * ext/dl/dl.c (c_parray): get rid of a deprecated function.
    
    * ext/dl/handle.c (rb_dlhandle_sym): conditionally used variable.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/dl/dl.c
    branches/ruby_1_8/ext/dl/handle.c

Index: ruby_1_8/ext/dl/dl.c
===================================================================
--- ruby_1_8/ext/dl/dl.c	(revision 26438)
+++ ruby_1_8/ext/dl/dl.c	(revision 26439)
@@ -417,7 +417,7 @@
       e = tmp;
       /* fall through */
     case T_STRING:
-      rb_check_safe_str(e);
+      SafeStringValue(e);
       {
 	char *str, *src;
 	src = RSTRING(e)->ptr;
Index: ruby_1_8/ext/dl/handle.c
===================================================================
--- ruby_1_8/ext/dl/handle.c	(revision 26438)
+++ ruby_1_8/ext/dl/handle.c	(revision 26439)
@@ -136,7 +136,9 @@
   struct dl_handle *dlhandle;
   void *handle;
   const char *name, *stype;
+#if defined(HAVE_DLERROR)
   const char *err;
+#endif
 
   rb_secure(2);
   if (rb_scan_args(argc, argv, "11", &sym, &type) == 2) {
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 26438)
+++ ruby_1_8/ChangeLog	(revision 26439)
@@ -1,3 +1,9 @@
+Wed Jan 27 14:23:36 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/dl/dl.c (c_parray): get rid of a deprecated function.
+
+	* ext/dl/handle.c (rb_dlhandle_sym): conditionally used variable.
+
 Wed Jan 27 14:05:46 2010  NARUSE, Yui  <naruse@r...>
 
 	* io.c, eval.c, process.c: add __APPLE__ to r26371's condition.

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

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