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

ruby-changes:26187

From: naruse <ko1@a...>
Date: Fri, 7 Dec 2012 11:55:38 +0900 (JST)
Subject: [ruby-changes:26187] naruse:r38244 (trunk): Add declaration of rb_warn

naruse	2012-12-07 11:55:28 +0900 (Fri, 07 Dec 2012)

  New Revision: 38244

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

  Log:
    Add declaration of rb_warn

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

Index: ext/refinement/refinement.c
===================================================================
--- ext/refinement/refinement.c	(revision 38243)
+++ ext/refinement/refinement.c	(revision 38244)
@@ -1,4 +1,11 @@
 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/

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