diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-09 04:28:28 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-09 04:28:28 +0000 |
commit | e29b4b4862f4e3a6a727c407a711939f74124941 (patch) | |
tree | cdeb1de9e4fd0eaef632e596afee4c3bf164f4a2 /st.c | |
parent | c65638ce2944e020eac4e80eb760486001e47945 (diff) | |
download | ruby-e29b4b4862f4e3a6a727c407a711939f74124941.tar.gz |
* 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
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |