ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/lookup.h
(Generate patch)

Comparing ray/src/common/lookup.h (file contents):
Revision 2.5 by gwlarson, Wed Sep 2 18:42:11 1998 UTC vs.
Revision 2.7 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
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) */
# Line 73 | Line 72 | typedef struct {
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();
# Line 80 | Line 83 | extern int     lu_doall();
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines