1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ SGI" */ |
4 |
< |
|
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* Header file for general associative table lookup routines |
4 |
|
*/ |
5 |
|
|
6 |
+ |
#include "copyright.h" |
7 |
+ |
|
8 |
|
typedef struct { |
9 |
|
char *key; /* key name */ |
10 |
|
unsigned long hval; /* key hash value (for efficiency) */ |
72 |
|
* allocated table itself. |
73 |
|
*/ |
74 |
|
|
75 |
+ |
extern int strcmp(); |
76 |
+ |
|
77 |
+ |
#ifdef NOPROTO |
78 |
+ |
|
79 |
|
extern int lu_init(); |
80 |
|
extern LUENT *lu_find(); |
81 |
|
extern void lu_delete(); |
83 |
|
extern void lu_done(); |
84 |
|
extern unsigned long lu_shash(); |
85 |
|
|
86 |
< |
extern int strcmp(); |
86 |
> |
#else |
87 |
> |
|
88 |
> |
extern int lu_init(LUTAB *tbl, int nel); |
89 |
> |
extern unsigned long lu_shash(char *s); |
90 |
> |
extern LUENT *lu_find(LUTAB *tbl, char *key); |
91 |
> |
extern void lu_delete(LUTAB *tbl, char *key); |
92 |
> |
extern int lu_doall(LUTAB *tbl, int (*f)()); |
93 |
> |
extern void lu_done(LUTAB *tbl); |
94 |
> |
|
95 |
> |
#endif |