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

Comparing ray/src/common/lookup.c (file contents):
Revision 2.17 by greg, Sat May 1 21:49:42 2010 UTC vs.
Revision 2.18 by greg, Fri Feb 18 00:40:25 2011 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include "lookup.h"
13  
14 extern int
15 lu_strcmp(
16        const void *s1,
17        const void *s2
18 )
19 {
20        return strcmp((const char*)s1,(const char*)s2);
21 }
14  
15 < extern int
15 > int
16   lu_init(                /* initialize tbl for at least nel elements */
17          register LUTAB  *tbl,
18          int     nel
# Line 47 | Line 39 | lu_init(               /* initialize tbl for at least nel elements
39   }
40  
41  
42 < extern unsigned long
42 > unsigned long
43   lu_shash(                       /* hash a nul-terminated string */
44 <        const void      *s
44 >        const char      *s
45   )
46   {
47          static unsigned char shuffle[256] = {
# Line 89 | Line 81 | lu_shash(                      /* hash a nul-terminated string */
81   }
82  
83  
84 < extern LUENT *
84 > LUENT *
85   lu_find(                /* find a table entry */
86          register LUTAB  *tbl,
87          const char      *key
# Line 145 | Line 137 | tryagain:
137   }
138  
139  
140 < extern void
140 > void
141   lu_delete(              /* delete a table entry */
142          register LUTAB  *tbl,
143          const char      *key
# Line 164 | Line 156 | lu_delete(             /* delete a table entry */
156   }
157  
158  
159 < extern int
159 > int
160   lu_doall(               /* loop through all valid table entries */
161          register const LUTAB    *tbl,
162          /* int  (*f)(const LUENT *) */
# Line 189 | Line 181 | lu_doall(              /* loop through all valid table entries */
181   }
182  
183  
184 < extern void
184 > void
185   lu_done(                        /* free table and contents */
186          register LUTAB  *tbl
187   )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines