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

Comparing ray/src/cv/mgflib/context.c (file contents):
Revision 1.2 by greg, Wed Jun 22 15:33:44 1994 UTC vs.
Revision 1.3 by greg, Thu Jun 23 07:48:39 1994 UTC

# Line 29 | Line 29 | C_COLOR                *c_ccolor = &c_uncolor;
29   C_MATERIAL      *c_cmaterial = &c_unmaterial;
30   C_VERTEX        *c_cvertex = &c_unvertex;
31  
32 < static LUTAB    clr_tab;                /* color lookup table */
33 < static LUTAB    mat_tab;                /* material lookup table */
34 < static LUTAB    vtx_tab;                /* vertex lookup table */
32 > static LUTAB    clr_tab = LU_SINIT(free,free);  /* color lookup table */
33 > static LUTAB    mat_tab = LU_SINIT(free,free);  /* material lookup table */
34 > static LUTAB    vtx_tab = LU_SINIT(free,free);  /* vertex lookup table */
35  
36  
37   int
# Line 284 | Line 284 | register char  **av;
284   }
285  
286  
287 static void
288 freectx(lp)                     /* free a context table entry */
289 register LUENT  *lp;
290 {
291        free((MEM_PTR)lp->key);
292        free((MEM_PTR)lp->data);
293 }
294
295
287   void
288   c_clearall()                    /* empty context tables */
289   {
290          c_uncolor = c_dfcolor;
291          c_ccolor = &c_uncolor;
292 <        lu_done(&clr_tab, freectx);
292 >        lu_done(&clr_tab);
293          c_unmaterial = c_dfmaterial;
294          c_cmaterial = &c_unmaterial;
295 <        lu_done(&mat_tab, freectx);
295 >        lu_done(&mat_tab);
296          c_unvertex = c_dfvertex;
297          c_cvertex = &c_unvertex;
298 <        lu_done(&vtx_tab, freectx);
298 >        lu_done(&vtx_tab);
299   }
300  
301  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines