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

Comparing ray/src/cv/mgflib/lookup.h (file contents):
Revision 1.5 by greg, Thu Jul 7 14:03:13 1994 UTC vs.
Revision 1.6 by greg, Fri Mar 10 14:50:50 1995 UTC

# Line 12 | Line 12 | typedef struct {
12          char    *data;          /* pointer to client data */
13   } LUENT;
14  
15 + #ifdef NOPROTO
16   typedef struct {
17          long    (*hashf)();     /* key hash function */
18          int     (*keycmp)();    /* key comparison function */
# Line 21 | Line 22 | typedef struct {
22          LUENT   *tabl;          /* table, if allocated */
23          int     ndel;           /* number of deleted entries */
24   } LUTAB;
25 + #else
26 + typedef struct {
27 +        long    (*hashf)();     /* key hash function */
28 +        int     (*keycmp)(const char *, const char *);  /* key comparison function */
29 +        void    (*freek)(char *);       /* free a key */
30 +        void    (*freed)(char *);       /* free the data */
31 +        int     tsiz;           /* current table size */
32 +        LUENT   *tabl;          /* table, if allocated */
33 +        int     ndel;           /* number of deleted entries */
34 + } LUTAB;
35 + #endif
36  
37   #define LU_SINIT(fk,fd)         {lu_shash,strcmp,(void (*)())(fk),\
38                                  (void (*)())(fd),0,NULL,0}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines