ruby-changes:13844
From: nobu <ko1@a...>
Date: Wed, 4 Nov 2009 16:06:29 +0900 (JST)
Subject: [ruby-changes:13844] Ruby:r25644 (trunk): * include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for
nobu 2009-11-04 16:06:13 +0900 (Wed, 04 Nov 2009) New Revision: 25644 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25644 Log: * include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for Init_RandomSeed(). Modified files: trunk/ChangeLog trunk/include/ruby/st.h trunk/st.c Index: include/ruby/st.h =================================================================== --- include/ruby/st.h (revision 25643) +++ include/ruby/st.h (revision 25644) @@ -66,6 +66,9 @@ 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* */ Index: ChangeLog =================================================================== --- ChangeLog (revision 25643) +++ ChangeLog (revision 25644) @@ -1,3 +1,8 @@ +Wed Nov 4 16:06:11 2009 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for + Init_RandomSeed(). + Wed Nov 4 15:50:16 2009 URABE Shyouhei <shyouhei@r...> * include/ruby/ruby.h (NUM2CHR): prefix __extension__ for Index: st.c =================================================================== --- st.c (revision 25643) +++ st.c (revision 25644) @@ -1003,9 +1003,6 @@ #define MURMUR 2 #endif -typedef char check_murmur_voidp[SIZEOF_VOIDP == (int)sizeof(st_index_t) ? 1 : -1]; -#define SIZEOF_ST_INDEX_T SIZEOF_VOIDP - #if MURMUR == 1 #define MurmurMagic 0xc6a4a793 #elif MURMUR == 2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/