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

ruby-changes:12812

From: nobu <ko1@a...>
Date: Fri, 14 Aug 2009 19:57:53 +0900 (JST)
Subject: [ruby-changes:12812] Ruby:r24540 (ruby_1_8): * ext/curses/curses.c ({curses,window}_addstr),

nobu	2009-08-14 19:57:39 +0900 (Fri, 14 Aug 2009)

  New Revision: 24540

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

  Log:
    * ext/curses/curses.c ({curses,window}_addstr),
      ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
      replaced deprecated funtion.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/curses/curses.c
    branches/ruby_1_8/ext/openssl/ossl_x509store.c

Index: ruby_1_8/ext/curses/curses.c
===================================================================
--- ruby_1_8/ext/curses/curses.c	(revision 24539)
+++ ruby_1_8/ext/curses/curses.c	(revision 24540)
@@ -407,7 +407,7 @@
 {
     curses_stdscr();
     if (!NIL_P(str)) {
-	addstr(STR2CSTR(str));
+	addstr(StringValueCStr(str));
     }
     return Qnil;
 }
@@ -1124,7 +1124,7 @@
 	struct windata *winp;
 
 	GetWINDOW(obj, winp);
-	waddstr(winp->window, STR2CSTR(str));
+	waddstr(winp->window, StringValueCStr(str));
     }
     return Qnil;
 }
Index: ruby_1_8/ext/openssl/ossl_x509store.c
===================================================================
--- ruby_1_8/ext/openssl/ossl_x509store.c	(revision 24539)
+++ ruby_1_8/ext/openssl/ossl_x509store.c	(revision 24540)
@@ -212,7 +212,7 @@
     char *path = NULL;
 
     if(file != Qnil){
-        Check_SafeStr(file);
+        SafeStringValue(file);
 	path = RSTRING_PTR(file);
     }
     GetX509Store(self, store);
@@ -233,7 +233,7 @@
     char *path = NULL;
 
     if(dir != Qnil){
-        Check_SafeStr(dir);
+        SafeStringValue(dir);
 	path = RSTRING_PTR(dir);
     }
     GetX509Store(self, store);
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 24539)
+++ ruby_1_8/ChangeLog	(revision 24540)
@@ -1,3 +1,9 @@
+Fri Aug 14 19:57:28 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/curses/curses.c ({curses,window}_addstr),
+	  ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
+	  replaced deprecated funtion.
+
 Fri Aug 14 14:03:46 2009  URABE Shyouhei  <shyouhei@r...>
 
 	* configure.in: only check pthread.h in case of --enable-pthread

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

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