--- ray/src/common/lookup.h 1998/09/02 18:42:11 2.5 +++ ray/src/common/lookup.h 2003/02/25 02:47:21 2.7 @@ -1,11 +1,10 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - -/* SCCSid "$SunId$ SGI" */ - +/* RCSid $Id: lookup.h,v 2.7 2003/02/25 02:47:21 greg Exp $ */ /* * Header file for general associative table lookup routines */ +#include "copyright.h" + typedef struct { char *key; /* key name */ unsigned long hval; /* key hash value (for efficiency) */ @@ -73,6 +72,10 @@ typedef struct { * allocated table itself. */ +extern int strcmp(); + +#ifdef NOPROTO + extern int lu_init(); extern LUENT *lu_find(); extern void lu_delete(); @@ -80,4 +83,13 @@ extern int lu_doall(); extern void lu_done(); extern unsigned long lu_shash(); -extern int strcmp(); +#else + +extern int lu_init(LUTAB *tbl, int nel); +extern unsigned long lu_shash(char *s); +extern LUENT *lu_find(LUTAB *tbl, char *key); +extern void lu_delete(LUTAB *tbl, char *key); +extern int lu_doall(LUTAB *tbl, int (*f)()); +extern void lu_done(LUTAB *tbl); + +#endif