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

ruby-changes:30028

From: nobu <ko1@a...>
Date: Sat, 20 Jul 2013 15:03:04 +0900 (JST)
Subject: [ruby-changes:30028] nobu:r42080 (trunk): safe.c: ruby_safe_level_4_warning

nobu	2013-07-20 15:02:54 +0900 (Sat, 20 Jul 2013)

  New Revision: 42080

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

  Log:
    safe.c: ruby_safe_level_4_warning
    
    * safe.c (ruby_safe_level_4_warning): define for old extension
      libraries.  [Bug #8652]

  Modified files:
    trunk/ChangeLog
    trunk/safe.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42079)
+++ ChangeLog	(revision 42080)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jul 20 15:02:51 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* safe.c (ruby_safe_level_4_warning): define for old extension
+	  libraries.  [Bug #8652]
+
 Sat Jul 20 14:38:00 2013  Koichi Sasada  <ko1@a...>
 
 	* array.c (ary_make_shared): make shared array shady.
Index: safe.c
===================================================================
--- safe.c	(revision 42079)
+++ safe.c	(revision 42080)
@@ -25,6 +25,13 @@ https://github.com/ruby/ruby/blob/trunk/safe.c#L25
 
 #undef rb_secure
 #undef rb_set_safe_level
+#undef ruby_safe_level_4_warning
+
+int
+ruby_safe_level_4_warning(void)
+{
+    return 4;
+}
 
 int
 rb_safe_level(void)

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

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