1 |
< |
/* Copyright (c) 1994 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Header file for general associative table lookup routines |
4 |
|
*/ |
11 |
|
|
12 |
|
#ifdef NOPROTO |
13 |
|
typedef struct { |
14 |
< |
long (*hashf)(); /* key hash function */ |
14 |
> |
unsigned long (*hashf)(); /* key hash function */ |
15 |
|
int (*keycmp)(); /* key comparison function */ |
16 |
|
void (*freek)(); /* free a key */ |
17 |
|
void (*freed)(); /* free the data */ |
21 |
|
} LUTAB; |
22 |
|
#else |
23 |
|
typedef struct { |
24 |
< |
long (*hashf)(); /* key hash function */ |
24 |
> |
unsigned long (*hashf)(char *); /* key hash function */ |
25 |
|
int (*keycmp)(const char *, const char *); /* key comparison function */ |
26 |
|
void (*freek)(char *); /* free a key */ |
27 |
|
void (*freed)(char *); /* free the data */ |
80 |
|
extern LUENT *lu_find(); |
81 |
|
extern void lu_delete(); |
82 |
|
extern void lu_done(); |
83 |
< |
extern long lu_shash(); |
87 |
< |
extern int strcmp(); |
83 |
> |
extern unsigned long lu_shash(); |
84 |
|
#else |
85 |
|
extern int lu_init(LUTAB *, int); |
86 |
|
extern LUENT *lu_find(LUTAB *, char *); |
87 |
|
extern void lu_delete(LUTAB *, char *); |
88 |
|
extern void lu_done(LUTAB *); |
89 |
< |
extern long lu_shash(char *); |
94 |
< |
extern int strcmp(char *, char *); |
89 |
> |
extern unsigned long lu_shash(char *); |
90 |
|
#endif |