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

ruby-changes:26204

From: shugo <ko1@a...>
Date: Fri, 7 Dec 2012 23:44:13 +0900 (JST)
Subject: [ruby-changes:26204] shugo:r38261 (trunk): * ext/refinement/refinement.c: include ruby/ruby.h instead of the

shugo	2012-12-07 23:44:02 +0900 (Fri, 07 Dec 2012)

  New Revision: 38261

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

  Log:
    * ext/refinement/refinement.c: include ruby/ruby.h instead of the
      declaration of rb_warn().

  Modified files:
    trunk/ChangeLog
    trunk/ext/refinement/refinement.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38260)
+++ ChangeLog	(revision 38261)
@@ -1,3 +1,8 @@
+Fri Dec  7 23:42:11 2012  Shugo Maeda  <shugo@r...>
+
+	* ext/refinement/refinement.c: include ruby/ruby.h instead of the
+	  declaration of rb_warn().
+
 Fri Dec  7 16:07:00 2012  Zachary Scott  <zachary@z...>
 
 	* doc/etc.rd: Removed stale documentation file
Index: ext/refinement/refinement.c
===================================================================
--- ext/refinement/refinement.c	(revision 38260)
+++ ext/refinement/refinement.c	(revision 38261)
@@ -1,11 +1,6 @@
+#include "ruby/ruby.h"
+
 void ruby_Init_refinement(void);
-#ifdef __GNUC__
-#define PRINTF_ARGS(decl, string_index, first_to_check) \
-  decl __attribute__((format(printf, string_index, first_to_check)))
-#else
-#define PRINTF_ARGS(decl, string_index, first_to_check) decl
-#endif
-PRINTF_ARGS(void rb_warn(const char*, ...), 1, 2);
 
 void
 Init_refinement(void)

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

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