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.9 by schorsch, Mon Jun 30 14:59:13 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 <string.h>
11 +
12   #include "rtprocess.h" /* Windows: must come first because of conflicts */
13   #include "glare.h"
14  
# Line 262 | Line 266 | int    np;
266                  fprintf(stderr, "%s: sending %d samples to rtrace...\n",
267                                  progname, np);
268   #endif
269 <        bzero(pb+6*np, 6*sizeof(float));
269 >        memset(pb+6*np, '\0', 6*sizeof(float));
270          if (process(&rt_pd, (char *)pb, (char *)pb, 3*sizeof(float)*(np+1),
271                          6*sizeof(float)*(np+1)) < 3*sizeof(float)*(np+1)) {
272                  fprintf(stderr, "%s: rtrace communication error\n",
# Line 411 | Line 415 | initscans()                            /* initialize scanline buffers */
415                  hashtab[i] = NULL;
416                                          /* allocate scanline buffers */
417          scansize = sizeof(SCAN) + pxsiz*sizeof(COLR);
418 < #ifdef ALIGN
419 <        scansize = scansize+(sizeof(ALIGN)-1) & ~(sizeof(ALIGN)-1);
418 > #ifdef ALIGNT
419 >        scansize = scansize+(sizeof(ALIGNT)-1) & ~(sizeof(ALIGNT)-1);
420   #endif
421          i = MAXSBUF / scansize;         /* compute number to allocate */
422          if (i > HSIZE)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines