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

Comparing ray/src/px/warp3d.c (file contents):
Revision 3.4 by gwlarson, Wed Sep 2 18:41:44 1998 UTC vs.
Revision 3.5 by greg, Sat Feb 22 02:07:28 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * 3D warping routines.
6   */
7  
8   #include <stdio.h>
9 + #include <stdlib.h>
10   #include <math.h>
11   #include "fvect.h"
12   #include "warp3d.h"
# Line 25 | Line 23 | typedef struct {
23  
24   #define AHUNK   24              /* number of points to allocate at a time */
25  
28 #ifndef malloc
29 extern char     *malloc(), *realloc();
30 #endif
31 extern void     free();
26  
33
27   double
28   wpdist2(p1, p2)                 /* compute square of distance between points */
29   register W3VEC  p1, p2;
# Line 328 | Line 321 | free3dw(wp)                    /* free WARP3D data */
321   register WARP3D *wp;
322   {
323          done3dgrid(&wp->grid);
324 <        free((char *)wp->ip);
325 <        free((char *)wp->ov);
326 <        free((char *)wp);
324 >        free((void *)wp->ip);
325 >        free((void *)wp->ov);
326 >        free((void *)wp);
327   }
328  
329  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines