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

ruby-changes:31024

From: nobu <ko1@a...>
Date: Tue, 1 Oct 2013 16:03:57 +0900 (JST)
Subject: [ruby-changes:31024] nobu:r43103 (trunk): ruby.h: export ruby_safe_level_4_warning

nobu	2013-10-01 16:03:50 +0900 (Tue, 01 Oct 2013)

  New Revision: 43103

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

  Log:
    ruby.h: export ruby_safe_level_4_warning
    
    * include/ruby/ruby.h (ruby_safe_level_4_warning): needed by extension
      libraries which check safe level 4.  [ruby-dev:47517] [Bug #8652]

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 43102)
+++ include/ruby/ruby.h	(revision 43103)
@@ -568,10 +568,9 @@ int rb_safe_level(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L568
 void rb_set_safe_level(int);
 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
 int ruby_safe_level_4_error(void) __attribute__((error("$SAFE=4 is obsolete")));
+int ruby_safe_level_4_warning(void) __attribute__((warning("$SAFE=4 is obsolete")));
 # ifdef RUBY_EXPORT
 #   define ruby_safe_level_4_warning() ruby_safe_level_4_error()
-# else
-int ruby_safe_level_4_warning(void) __attribute__((warning("$SAFE=4 is obsolete")));
 # endif
 #define RUBY_SAFE_LEVEL_INVALID_P(level) \
     __extension__(__builtin_constant_p(level) && \
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43102)
+++ ChangeLog	(revision 43103)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  1 16:03:42 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/ruby.h (ruby_safe_level_4_warning): needed by extension
+	  libraries which check safe level 4.  [ruby-dev:47517] [Bug #8652]
+
 Mon Sep 30 23:14:36 2013  Zachary Scott  <e@z...>
 
 	* ext/objspace/objspace.c: [DOC] Cleaned up many rdoc formatting

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

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