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.7 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.10 by schorsch, Mon Jul 14 22:23:59 2003 UTC

# Line 2 | Line 2
2   /*
3   * Header file for general associative table lookup routines
4   */
5 + #ifndef _RAD_LOOKUP_H_
6 + #define _RAD_LOOKUP_H_
7  
8 < #include "copyright.h"
8 > #include <string.h> /* strcmp() */
9  
10 + #ifdef __cplusplus
11 + extern "C" {
12 + #endif
13 +
14   typedef struct {
15          char    *key;                   /* key name */
16          unsigned long   hval;           /* key hash value (for efficiency) */
# Line 72 | Line 78 | typedef struct {
78   * allocated table itself.
79   */
80  
75 extern int      strcmp();
76
77 #ifdef NOPROTO
78
79 extern int      lu_init();
80 extern LUENT    *lu_find();
81 extern void     lu_delete();
82 extern int      lu_doall();
83 extern void     lu_done();
84 extern unsigned long    lu_shash();
85
86 #else
87
81   extern int      lu_init(LUTAB *tbl, int nel);
82   extern unsigned long    lu_shash(char *s);
83   extern LUENT    *lu_find(LUTAB *tbl, char *key);
# Line 92 | Line 85 | extern void    lu_delete(LUTAB *tbl, char *key);
85   extern int      lu_doall(LUTAB *tbl, int (*f)());
86   extern void     lu_done(LUTAB *tbl);
87  
88 +
89 + #ifdef __cplusplus
90 + }
91   #endif
92 + #endif /* _RAD_LOOKUP_H_ */
93 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines