summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 01:30:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 01:30:14 +0000
commit217890307fadd6db105b95d6d495ec5f52ba446f (patch)
tree24d84ca4c4eb86600478fa79504193c9f6503b92
parent929b42ba41167cdb420a055ab8609c7df7fc7f57 (diff)
downloadruby-217890307fadd6db105b95d6d495ec5f52ba446f.tar.gz
ruby-217890307fadd6db105b95d6d495ec5f52ba446f.tar.xz
ruby-217890307fadd6db105b95d6d495ec5f52ba446f.zip
* st.h (st_data_t): use pointer sized integer for st_data_t.
[ruby-dev:28988] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--st.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 20071992c..a63590fcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,11 @@ Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_clear_cache_for_undef): clear entries for included
module. fixed: [ruby-core:08180]
+Mon Jul 10 01:48:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.h (st_data_t): use pointer sized integer for st_data_t.
+ [ruby-dev:28988]
+
Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.
diff --git a/st.h b/st.h
index 5901bd4f8..fb56f5ffa 100644
--- a/st.h
+++ b/st.h
@@ -6,7 +6,14 @@
#define ST_INCLUDED
+#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t;
+#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
+typedef unsigned LONG_LONG st_data_t;
+#else
+# error ---->> st.c requires sizeof(void*) == sizeof(long) to be compiled. <<---
+-
+#endif
#define ST_DATA_T_DEFINED
typedef struct st_table st_table;