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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.8 by gregl, Wed Jul 9 11:24:52 1997 UTC vs.
Revision 2.11 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1995 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Routines to do the actual calculation for mkillum
6   */
7  
8 < #include  "mkillum.h"
8 > #include <string.h>
9  
10 + #include  "mkillum.h"
11   #include  "face.h"
14
12   #include  "cone.h"
16
13   #include  "random.h"
14  
15  
# Line 118 | Line 114 | char  *nm;
114                          objerror(ob, WARNING, "bad aspect");
115                          rt->nrays = 0;
116                          freeface(ob);
117 <                        free((char *)distarr);
117 >                        free((void *)distarr);
118                          o_default(ob, il, rt, nm);
119                          return;
120                      }
# Line 137 | Line 133 | char  *nm;
133                  printobj(il->altmat, ob);
134                                  /* clean up */
135          freeface(ob);
136 <        free((char *)distarr);
136 >        free((void *)distarr);
137   #undef MAXMISS
138   }
139  
# Line 207 | Line 203 | char  *nm;
203          } else
204                  printobj(il->altmat, ob);
205                                  /* clean up */
206 <        free((char *)distarr);
206 >        free((void *)distarr);
207   }
208  
209  
# Line 276 | Line 272 | char  *nm;
272                  printobj(il->altmat, ob);
273                                  /* clean up */
274          freecone(ob);
275 <        free((char *)distarr);
275 >        free((void *)distarr);
276   }
277  
278  
# Line 303 | Line 299 | register struct rtproc  *rt;
299  
300          if (rt->nrays <= 0)
301                  return;
302 <        bzero(rt->buf+6*rt->nrays, 6*sizeof(float));
302 >        memset(rt->buf+6*rt->nrays, '\0', 6*sizeof(float));
303          errno = 0;
304 <        if ( process(rt->pd, (char *)rt->buf, (char *)rt->buf,
304 >        if ( process(&(rt->pd), (char *)rt->buf, (char *)rt->buf,
305                          3*sizeof(float)*(rt->nrays+1),
306                          6*sizeof(float)*(rt->nrays+1)) <
307                          3*sizeof(float)*(rt->nrays+1) )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines