* 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
This commit is contained in:
parent
632aa7a0fc
commit
255578c7b5
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 4 16:06:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Wed Nov 4 15:50:16 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
|
* include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
|
||||||
|
@ -66,6 +66,9 @@ typedef st_data_t st_index_t;
|
|||||||
typedef int st_compare_func(st_data_t, st_data_t);
|
typedef int st_compare_func(st_data_t, st_data_t);
|
||||||
typedef st_index_t st_hash_func(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 {
|
struct st_hash_type {
|
||||||
int (*compare)(ANYARGS /*st_data_t, st_data_t*/); /* st_compare_func* */
|
int (*compare)(ANYARGS /*st_data_t, st_data_t*/); /* st_compare_func* */
|
||||||
st_index_t (*hash)(ANYARGS /*st_data_t*/); /* st_hash_func* */
|
st_index_t (*hash)(ANYARGS /*st_data_t*/); /* st_hash_func* */
|
||||||
|
3
st.c
3
st.c
@ -1003,9 +1003,6 @@ strhash(st_data_t arg)
|
|||||||
#define MURMUR 2
|
#define MURMUR 2
|
||||||
#endif
|
#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
|
#if MURMUR == 1
|
||||||
#define MurmurMagic 0xc6a4a793
|
#define MurmurMagic 0xc6a4a793
|
||||||
#elif MURMUR == 2
|
#elif MURMUR == 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user