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

Comparing ray/src/cv/mgf2meta.c (file contents):
Revision 2.6 by greg, Sat Feb 22 02:07:23 2003 UTC vs.
Revision 2.8 by schorsch, Tue Oct 21 19:19:28 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include <stdio.h>
9   #include <stdlib.h>
10 + #include <string.h>
11   #include <math.h>
12   #include "random.h"
13   #include "mgflib/parser.h"
# Line 15 | Line 16 | static const char      RCSid[] = "$Id$";
16   #define MX(v)   (int)(MSIZE*(v)[(proj_axis+1)%3])
17   #define MY(v)   (int)(MSIZE*(v)[(proj_axis+2)%3])
18  
19 < int     r_face();
19 > int     r_face(int ac, char **av);
20   int     proj_axis;
21   double  limit[3][2];
22   int     layer;
# Line 111 | Line 112 | short  hshtab[HTBLSIZ][4];             /* done line segments */
112  
113   newlayer()                              /* start a new layer */
114   {
115 < #ifdef BSD
115 <        bzero((char *)hshtab, sizeof(hshtab));
116 < #else
117 <        (void)memset((char *)hshtab, 0, sizeof(hshtab));
118 < #endif
115 >        (void)memset((char *)hshtab, '\0', sizeof(hshtab));
116          if (++layer >= 16) {
117                  mendpage();
118                  layer = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines