Make the remaining LHASH macro changes. This should leave no remaining

cases of function pointer casting in lh_new() calls - and leave only the
lh_doall and lh_doall_arg cases to be finished.
This commit is contained in:
Geoff Thorpe
2000-12-04 03:02:44 +00:00
parent b0dc680f71
commit 97b1719583
6 changed files with 39 additions and 15 deletions

View File

@@ -174,10 +174,13 @@ static int add_cmp(ADDED_OBJ *ca, ADDED_OBJ *cb)
return(1); /* should not get here */
}
static IMPLEMENT_LHASH_HASH_FN(add_hash, ADDED_OBJ *)
static IMPLEMENT_LHASH_COMP_FN(add_cmp, ADDED_OBJ *)
static int init_added(void)
{
if (added != NULL) return(1);
added=lh_new((LHASH_HASH_FN_TYPE)add_hash,(LHASH_COMP_FN_TYPE)add_cmp);
added=lh_new(LHASH_HASH_FN(add_hash),LHASH_COMP_FN(add_cmp));
return(added != NULL);
}