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

ruby-changes:10047

From: usa <ko1@a...>
Date: Fri, 16 Jan 2009 12:18:32 +0900 (JST)
Subject: [ruby-changes:10047] Ruby:r21590 (trunk): * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.

usa	2009-01-16 12:18:09 +0900 (Fri, 16 Jan 2009)

  New Revision: 21590

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

  Log:
    * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.
      if not, cause compile error in using PRI?VALUE.
    * win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and
      SIZEOF_UINTPTR_T for SIZEOF_VALUE.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
    trunk/win32/Makefile.sub

Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 21589)
+++ include/ruby/ruby.h	(revision 21590)
@@ -85,7 +85,7 @@
 typedef uintptr_t ID;
 # define SIGNED_VALUE intptr_t
 # define SIZEOF_VALUE SIZEOF_UINTPTR_T
-# undef PRI_VALUE_PREFIX
+# define PRI_VALUE_PREFIX ""
 #elif SIZEOF_LONG == SIZEOF_VOIDP
 typedef unsigned long VALUE;
 typedef unsigned long ID;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21589)
+++ ChangeLog	(revision 21590)
@@ -1,3 +1,11 @@
+Fri Jan 16 12:15:07 2009  NAKAMURA Usaku  <usa@r...>
+
+	* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.
+	  if not, cause compile error in using PRI?VALUE.
+
+	* win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and
+	  SIZEOF_UINTPTR_T for SIZEOF_VALUE.
+
 Fri Jan 16 11:51:20 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* symbian/pre-build (COMSPEC): should not overridden.
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 21589)
+++ win32/Makefile.sub	(revision 21590)
@@ -358,9 +358,13 @@
 !if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
 #define SIZEOF_SIZE_T 8
 #define SIZEOF_PTRDIFF_T 8
+#define SIZEOF_INTPTR_T 8
+#define SIZEOF_UINTPTR_T 8
 !else
 #define SIZEOF_SIZE_T 4
 #define SIZEOF_PTRDIFF_T 4
+#define SIZEOF_INTPTR_T 4
+#define SIZEOF_UINTPTR_T 4
 !endif
 !if $(MSC_VER) < 1400
 #define SIZE_MAX UINT_MAX

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

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