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

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.7 by gwlarson, Tue Mar 9 15:10:26 1999 UTC vs.
Revision 3.8 by greg, Sat Feb 22 02:07:25 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1999 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Radiance holodeck picture generator
6   */
7  
8   #include "rholo.h"
9   #include "view.h"
13 #include "resolu.h"
10  
11   char    *progname;              /* our program name */
12   char    *hdkfile;               /* holodeck file name */
# Line 147 | Line 143 | int    fn;
143                                          /* render image */
144          if (blist.nb > 0) {
145                  render_frame(blist.bl, blist.nb);
146 <                free((char *)blist.bl);
146 >                free((void *)blist.bl);
147          } else {
148                  sprintf(errmsg, "no section visible in frame %d", fn);
149                  error(WARNING, errmsg);
# Line 184 | Line 180 | int    nb;
180          }
181          hdloadbeams(bil, nb, pixBeam);
182          pixFinish(randfrac);
183 <        free((char *)bil);
183 >        free((void *)bil);
184   }
185  
186  
# Line 286 | Line 282 | initialize()                   /* initialize holodeck and buffers */
282          fd = dup(fileno(fp));                   /* dup file descriptor */
283          fclose(fp);                             /* done with stdio */
284          for (n = 0; nextloc > 0L; n++) {        /* initialize each section */
285 <                lseek(fd, (long)nextloc, 0);
285 >                lseek(fd, (off_t)nextloc, 0);
286                  read(fd, (char *)&nextloc, sizeof(nextloc));
287                  hdinit(fd, NULL);
288          }
# Line 299 | Line 295 | initialize()                   /* initialize holodeck and buffers */
295   }
296  
297  
298 + void
299   eputs(s)                        /* put error message to stderr */
300   register char  *s;
301   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines