added prototypes to pointers-to-functions for sk_pop_free and lh_doall_arg

to make both IRIX and HP/UX happy.
This commit is contained in:
David Lawrence 2000-05-25 04:02:47 +00:00
parent 923d87d9f4
commit ebece5658f
4 changed files with 4 additions and 4 deletions

View file

@ -122,7 +122,7 @@ void *lh_insert(LHASH *lh, void *data);
void *lh_delete(LHASH *lh, void *data);
void *lh_retrieve(LHASH *lh, void *data);
void lh_doall(LHASH *lh, void (*func)(/*void *b*/));
void lh_doall_arg(LHASH *lh, void (*func)(/*void *a,void *b*/),void *arg);
void lh_doall_arg(LHASH *lh, void (*func)(void *a,void *b),void *arg);
unsigned long lh_strhash(const char *c);
#ifndef NO_FP_API

View file

@ -86,7 +86,7 @@ char *sk_set(STACK *, int, char *);
STACK *sk_new(int (*cmp)());
void sk_free(STACK *);
void sk_pop_free(STACK *st, void (*func)());
void sk_pop_free(STACK *st, void (*func)(char *));
int sk_insert(STACK *sk,char *data,int where);
char *sk_delete(STACK *st,int loc);
char *sk_delete_ptr(STACK *st, char *p);

View file

@ -276,7 +276,7 @@ void lh_doall(LHASH *lh, void (*func)())
lh_doall_arg(lh,func,NULL);
}
void lh_doall_arg(LHASH *lh, void (*func)(), void *arg)
void lh_doall_arg(LHASH *lh, void (*func)(void *a, void *b), void *arg)
{
int i;
LHASH_NODE *a,*n;

View file

@ -265,7 +265,7 @@ void sk_zero(STACK *st)
st->num=0;
}
void sk_pop_free(STACK *st, void (*func)())
void sk_pop_free(STACK *st, void (*func)(char *))
{
int i;