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.8 by greg, Tue Mar 18 11:05:34 1997 UTC vs.
Revision 1.10 by greg, Fri Feb 28 20:11:29 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1994 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header file for general associative table lookup routines
4   */
# Line 14 | Line 11 | typedef struct {
11  
12   #ifdef NOPROTO
13   typedef struct {
14 <        long    (*hashf)();     /* key hash function */
14 >        unsigned long   (*hashf)();     /* key hash function */
15          int     (*keycmp)();    /* key comparison function */
16          void    (*freek)();     /* free a key */
17          void    (*freed)();     /* free the data */
# Line 24 | Line 21 | typedef struct {
21   } LUTAB;
22   #else
23   typedef struct {
24 <        long    (*hashf)();     /* key hash function */
24 >        unsigned long   (*hashf)(char *);       /* key hash function */
25          int     (*keycmp)(const char *, const char *);  /* key comparison function */
26          void    (*freek)(char *);       /* free a key */
27          void    (*freed)(char *);       /* free the data */
# Line 83 | Line 80 | extern int     lu_init();
80   extern LUENT    *lu_find();
81   extern void     lu_delete();
82   extern void     lu_done();
83 < extern long     lu_shash();
83 > extern unsigned long    lu_shash();
84   #else
85   extern int      lu_init(LUTAB *, int);
86   extern LUENT    *lu_find(LUTAB *, char *);
87   extern void     lu_delete(LUTAB *, char *);
88   extern void     lu_done(LUTAB *);
89 < extern long     lu_shash(char *);
89 > extern unsigned long    lu_shash(char *);
90   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines