From 255578c7b573959d0d8d142864d36d9e6fa6da03 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 4 Nov 2009 07:06:13 +0000 Subject: * include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for Init_RandomSeed(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/st.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ruby/st.h b/include/ruby/st.h index fd9bc4e1ec..d60ccd9a9a 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* */ -- cgit v1.2.3