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

ruby-changes:17102

From: naruse <ko1@a...>
Date: Thu, 26 Aug 2010 10:50:13 +0900 (JST)
Subject: [ruby-changes:17102] Ruby:r29102 (trunk): * regint.h (OnigStackIndex): the type should be intptr_t.

naruse	2010-08-26 10:50:07 +0900 (Thu, 26 Aug 2010)

  New Revision: 29102

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

  Log:
    * regint.h (OnigStackIndex): the type should be intptr_t.
      Original Oniguruma assumes the size of long and that of void *
      are equal, but it's not true on LLP64 platform: mswin64.
      originally patched by shintaro kuwamoto [ruby-dev:42133]

  Modified files:
    trunk/ChangeLog
    trunk/regint.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29101)
+++ ChangeLog	(revision 29102)
@@ -1,3 +1,10 @@
+Thu Aug 26 10:37:00 2010  NARUSE, Yui  <naruse@r...>
+
+	* regint.h (OnigStackIndex): the type should be intptr_t.
+	  Original Oniguruma assumes the size of long and that of void *
+	  are equal, but it's not true on LLP64 platform: mswin64.
+	  originally patched by shintaro kuwamoto [ruby-dev:42133]
+
 Thu Aug 26 10:38:11 2010  Yutaka Kanemoto  <kanemoto@r...>
 
 	* test/dl/test_base.rb: AIX does not have dynamically loadable lib[cm].
Index: regint.h
===================================================================
--- regint.h	(revision 29101)
+++ regint.h	(revision 29102)
@@ -720,7 +720,7 @@
   BBuf*  mbuf;   /* multi-byte info or NULL */
 } CClassNode;
 
-typedef long OnigStackIndex;
+typedef intptr_t OnigStackIndex;
 
 typedef struct _OnigStackType {
   unsigned int type;

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

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