--- ray/src/common/readobj.c 2003/05/13 17:58:32 2.12 +++ ray/src/common/readobj.c 2003/10/22 02:06:34 2.17 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readobj.c,v 2.12 2003/05/13 17:58:32 greg Exp $"; +static const char RCSid[] = "$Id: readobj.c,v 2.17 2003/10/22 02:06:34 greg Exp $"; #endif /* * readobj.c - routines for reading in object descriptions. @@ -9,13 +9,15 @@ static const char RCSid[] = "$Id: readobj.c,v 2.12 200 #include "copyright.h" -#include "standard.h" +#include +#include +#include +#include "platform.h" +#include "standard.h" #include "object.h" - #include "otypes.h" -#include OBJREC *objblock[MAXOBJBLK]; /* our objects */ OBJECT nobjects = 0; /* # of objects */ @@ -163,7 +165,7 @@ newobject() /* get a new object */ void freeobjects(firstobj, nobjs) /* free a range of objects */ -OBJECT firstobj, nobjs; +int firstobj, nobjs; { register int obj; /* check bounds */ @@ -179,7 +181,7 @@ OBJECT firstobj, nobjs; free_os(o); /* free client memory */ freeqstr(o->oname); freefargs(&o->oargs); - bzero((void *)o, sizeof(OBJREC)); + memset((void *)o, '\0', sizeof(OBJREC)); } clearobjndx(); /* free objects off end */