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

Comparing ray/src/util/glareval.c (file contents):
Revision 2.7 by schorsch, Thu Jun 26 00:58:11 2003 UTC vs.
Revision 2.10 by schorsch, Thu Jul 3 22:41:45 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Compute pixels for glare calculation
6   */
7  
8 + #include "copyright.h"
9 +
10 + #include <stdlib.h>
11 + #include <string.h>
12 +
13   #include "rtprocess.h" /* Windows: must come first because of conflicts */
14   #include "glare.h"
15  
# Line 262 | Line 267 | int    np;
267                  fprintf(stderr, "%s: sending %d samples to rtrace...\n",
268                                  progname, np);
269   #endif
270 <        bzero(pb+6*np, 6*sizeof(float));
270 >        memset(pb+6*np, '\0', 6*sizeof(float));
271          if (process(&rt_pd, (char *)pb, (char *)pb, 3*sizeof(float)*(np+1),
272                          6*sizeof(float)*(np+1)) < 3*sizeof(float)*(np+1)) {
273                  fprintf(stderr, "%s: rtrace communication error\n",
# Line 411 | Line 416 | initscans()                            /* initialize scanline buffers */
416                  hashtab[i] = NULL;
417                                          /* allocate scanline buffers */
418          scansize = sizeof(SCAN) + pxsiz*sizeof(COLR);
419 < #ifdef ALIGN
420 <        scansize = scansize+(sizeof(ALIGN)-1) & ~(sizeof(ALIGN)-1);
419 > #ifdef ALIGNT
420 >        scansize = scansize+(sizeof(ALIGNT)-1) & ~(sizeof(ALIGNT)-1);
421   #endif
422          i = MAXSBUF / scansize;         /* compute number to allocate */
423          if (i > HSIZE)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines