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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user