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

ruby-changes:43069

From: nobu <ko1@a...>
Date: Tue, 24 May 2016 17:18:52 +0900 (JST)
Subject: [ruby-changes:43069] nobu:r55143 (trunk): defines.h: fallback ERRORFUNC and WARNINGFUNC

nobu	2016-05-24 17:18:47 +0900 (Tue, 24 May 2016)

  New Revision: 55143

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55143

  Log:
    defines.h: fallback ERRORFUNC and WARNINGFUNC
    
    * include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback
      definitions.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 55142)
+++ include/ruby/defines.h	(revision 55143)
@@ -45,6 +45,18 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L45
 #ifndef NOINLINE
 # define NOINLINE(x) x
 #endif
+#ifndef ERRORFUNC
+# define HAVE_ATTRIBUTE_ERRORFUNC 0
+# define ERRORFUNC(mesg, x) x
+#else
+# define HAVE_ATTRIBUTE_ERRORFUNC 1
+#endif
+#ifndef WARNINGFUNC
+# define HAVE_ATTRIBUTE_WARNINGFUNC 0
+# define WARNINGFUNC(mesg, x) x
+#else
+# define HAVE_ATTRIBUTE_WARNINGFUNC 1
+#endif
 
 #ifndef GCC_VERSION_SINCE
 #define GCC_VERSION_SINCE(major, minor, patchlevel) \
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55142)
+++ ChangeLog	(revision 55143)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 24 17:18:46 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback
+	  definitions.
+
 Tue May 24 16:37:43 2016  NARUSE, Yui  <naruse@r...>
 
 	* configure.in (ruby_cflags): separate from optflags [Bug #12409]

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

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