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

Comparing ray/src/common/readobj.c (file contents):
Revision 2.13 by schorsch, Sat Jun 7 12:50:20 2003 UTC vs.
Revision 2.18 by schorsch, Mon Oct 27 10:19:31 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   #include  <stdio.h>
14 #ifdef _WIN32
15 #define popen _popen
16 #define pclose _pclose
17 #endif
15  
16 + #include  "platform.h"
17 + #include  "rtprocess.h"
18   #include  "standard.h"
19   #include  "object.h"
20   #include  "otypes.h"
# Line 167 | Line 166 | newobject()                            /* get a new object */
166  
167   void
168   freeobjects(firstobj, nobjs)            /* free a range of objects */
169 < OBJECT  firstobj, nobjs;
169 > int  firstobj, nobjs;
170   {
171          register int  obj;
172                                          /* check bounds */
# Line 183 | Line 182 | OBJECT  firstobj, nobjs;
182                  free_os(o);             /* free client memory */
183                  freeqstr(o->oname);
184                  freefargs(&o->oargs);
185 <                bzero((void *)o, sizeof(OBJREC));
185 >                memset((void *)o, '\0', sizeof(OBJREC));
186          }
187          clearobjndx();
188                                          /* free objects off end */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines