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

ruby-changes:18163

From: kazu <ko1@a...>
Date: Sun, 12 Dec 2010 20:49:38 +0900 (JST)
Subject: [ruby-changes:18163] Ruby:r30184 (trunk): * template/id.h.tmpl: suppress all warning: "SUPPORT_JOKE" is not

kazu	2010-12-12 20:49:32 +0900 (Sun, 12 Dec 2010)

  New Revision: 30184

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

  Log:
    * template/id.h.tmpl: suppress all warning: "SUPPORT_JOKE" is not
      defined.  [ruby-dev:42730]

  Modified files:
    trunk/ChangeLog
    trunk/template/id.h.tmpl

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30183)
+++ ChangeLog	(revision 30184)
@@ -1,3 +1,8 @@
+Sun Dec 12 20:42:47 2010  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* template/id.h.tmpl: suppress all warning: "SUPPORT_JOKE" is not
+	  defined.  [ruby-dev:42730]
+
 Sun Dec 12 20:35:07 2010  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* misc/rb_optparse.zsh: update how to install.
Index: template/id.h.tmpl
===================================================================
--- template/id.h.tmpl	(revision 30183)
+++ template/id.h.tmpl	(revision 30184)
@@ -50,6 +50,8 @@
 #include "parse.h"
 #endif
 
+#include "vm_opts.h" /* for SUPPORT_JOKE */
+
 #define symIFUNC ID2SYM(idIFUNC)
 #define symCFUNC ID2SYM(idCFUNC)
 
@@ -101,13 +103,13 @@
     t__send__,
     tInitialize,
     tUScore,
-#if defined SUPPORT_JOKE && SUPPORT_JOKE
+#if SUPPORT_JOKE
     tBitblt,
     tAnswer,
 #endif
     tLAST_ID,
 #define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
-#if defined SUPPORT_JOKE && SUPPORT_JOKE
+#if SUPPORT_JOKE
     TOKEN2ID(Bitblt),
     TOKEN2ID(Answer),
 #endif

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

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