summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 04:28:28 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-09 04:28:28 +0000
commite29b4b4862f4e3a6a727c407a711939f74124941 (patch)
treecdeb1de9e4fd0eaef632e596afee4c3bf164f4a2 /st.c
parentc65638ce2944e020eac4e80eb760486001e47945 (diff)
* 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index d9e8be4..1cc0e2f 100644
--- a/st.c
+++ b/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;