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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.34 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.35 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include "copyright.h"
11  
12   #include <ctype.h>
13 + #include <string.h>
14  
15   #include "standard.h"
16   #include "rtprocess.h" /* Windows: must come before color.h */
# Line 277 | Line 278 | char   *argv[];
278          fputnow(stdout);
279                                                          /* run pictures */
280          do {
281 <                bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float));
281 >                memset((char *)ourzbuf, '\0', hresolu*vresolu*sizeof(float));
282                  for (i = an; i < argc; i += 2)
283                          addpicture(argv[i], argv[i+1]);
284                  if (fillo&F_BACK)                       /* fill in spaces */
# Line 961 | Line 962 | clipaft()                      /* perform aft clipping as indicated */
962                                                  continue;
963                                  }
964                                  if (averaging)
965 <                                        bzero(sscan(y)[x], sizeof(COLOR));
965 >                                        memset(sscan(y)[x], '\0', sizeof(COLOR));
966                                  else
967 <                                        bzero(pscan(y)[x], sizeof(COLR));
967 >                                        memset(pscan(y)[x], '\0', sizeof(COLR));
968                                  zscan(y)[x] = 0.0;
969                          }
970          }
# Line 1167 | Line 1168 | clearqueue()                           /* process queue */
1168                  *fbp++ = dir[0]; *fbp++ = dir[1]; *fbp++ = dir[2];
1169          }
1170                                          /* mark end and get results */
1171 <        bzero((char *)fbp, 6*sizeof(float));
1171 >        memset((char *)fbp, '\0', 6*sizeof(float));
1172          if (process(&PDesc, (char *)fbuf, (char *)fbuf,
1173                          4*sizeof(float)*(queuesiz+1),
1174                          6*sizeof(float)*(queuesiz+1)) !=

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines