summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 07:06:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-04 07:06:13 +0000
commit92def59b698ce07a03a2603a011c52ef9fe239aa (patch)
tree4639eb41c5181cb9cfa3272ff272250cb71da8ab /include/ruby
parent711a531de4fcdbc288de1553abad120d841eff98 (diff)
downloadruby-92def59b698ce07a03a2603a011c52ef9fe239aa.tar.gz
ruby-92def59b698ce07a03a2603a011c52ef9fe239aa.tar.xz
ruby-92def59b698ce07a03a2603a011c52ef9fe239aa.zip
* include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for
Init_RandomSeed(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/st.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index fd9bc4e1e..d60ccd9a9 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -66,6 +66,9 @@ typedef st_data_t st_index_t;
typedef int st_compare_func(st_data_t, st_data_t);
typedef st_index_t st_hash_func(st_data_t);
+typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP == (int)sizeof(st_index_t) ? 1 : -1];
+#define SIZEOF_ST_INDEX_T SIZEOF_VOIDP
+
struct st_hash_type {
int (*compare)(ANYARGS /*st_data_t, st_data_t*/); /* st_compare_func* */
st_index_t (*hash)(ANYARGS /*st_data_t*/); /* st_hash_func* */