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.1 by greg, Wed Jul 6 15:14:16 1994 UTC vs.
Revision 2.3 by gregl, Wed Sep 17 14:46:48 1997 UTC

# Line 22 | Line 22 | typedef struct {
22          int     ndel;           /* number of deleted entries */
23   } LUTAB;
24  
25 + #undef strcmp
26   #define LU_SINIT(fk,fd)         {lu_shash,strcmp,(void (*)())(fk),\
27                                  (void (*)())(fd),0,NULL,0}
28  
# Line 56 | Line 57 | typedef struct {
57   * The lu_delete routine frees an entry's data (if any) by calling
58   * the freed member function, but does not free the key field.  This
59   * will be freed later during (or instead of) table reallocation.
60 + * It is therefore an error to reuse or do anything with the key
61 + * field after calling lu_delete.
62   *
63   * The lu_done routine calls the given free function once for each
64   * assigned table entry (i.e. each entry with an assigned key value).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines