--- ray/src/ot/readobj2.c 2003/10/22 02:06:34 2.7 +++ ray/src/ot/readobj2.c 2003/10/27 10:29:29 2.8 @@ -1,25 +1,28 @@ #ifndef lint -static const char RCSid[] = "$Id: readobj2.c,v 2.7 2003/10/22 02:06:34 greg Exp $"; +static const char RCSid[] = "$Id: readobj2.c,v 2.8 2003/10/27 10:29:29 schorsch Exp $"; #endif /* * readobj2.c - routines for reading in object descriptions. */ #include +#include #include "platform.h" -#include "standard.h" +#include "rtprocess.h" +#include "rtmath.h" +#include "rtio.h" +#include "rterror.h" #include "object.h" #include "otypes.h" -extern char *fgetword(); +static void getobject2(char *name, FILE *fp, int (*f)()); readobj2(input, callback) /* read in an object file or stream */ char *input; int (*callback)(); { - FILE *popen(); char *fgetline(); FILE *infp; char buf[512]; @@ -58,10 +61,12 @@ int (*callback)(); } -getobject2(name, fp, f) /* read the next object */ -char *name; -FILE *fp; -int (*f)(); +static void +getobject2( /* read the next object */ +char *name, +FILE *fp, +int (*f)() +) { char sbuf[MAXSTR]; OBJREC thisobj;