mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* st.h, st.c: Back out the introduction of st_*_func_t. Some
compilers complain about function type mismatch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c65638ce29
commit
e29b4b4862
3 changed files with 13 additions and 12 deletions
6
st.c
6
st.c
|
@ -43,8 +43,8 @@ static struct st_hash_type type_numhash = {
|
|||
/* extern int strcmp(const char *, const char *); */
|
||||
static int strhash(const char *);
|
||||
static struct st_hash_type type_strhash = {
|
||||
(st_compare_func_t)strcmp,
|
||||
(st_hash_func_t)strhash,
|
||||
strcmp,
|
||||
strhash,
|
||||
};
|
||||
|
||||
#ifdef RUBY_PLATFORM
|
||||
|
@ -482,7 +482,7 @@ st_cleanup_safe(table, never)
|
|||
void
|
||||
st_foreach(table, func, arg)
|
||||
st_table *table;
|
||||
st_each_func_t func;
|
||||
int (*func)();
|
||||
st_data_t arg;
|
||||
{
|
||||
st_table_entry *ptr, *last, *tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue