--- ray/src/gen/genmarble.c 1989/02/02 11:16:27 1.1 +++ ray/src/gen/genmarble.c 1993/08/02 14:23:03 2.4 @@ -12,21 +12,25 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "random.h" - #define PI 3.14159265359 typedef double FVECT[3]; double bubble(); /* pretty cute, huh? */ +#ifdef DCL_ATOF +extern double atof(); +#endif + main(argc, argv) int argc; char **argv; { - double atof(); char *cmtype, *cname; FVECT cent; double rad; @@ -73,7 +77,6 @@ bubble(v, cent, rad, bubrad) /* compute location of ra FVECT v, cent; double rad, bubrad; { - double sqrt(); double r, ro, theta, phi; r = frandom()*bubrad; @@ -90,7 +93,6 @@ sphere_cart(v, ro, theta, phi) /* spherical to cartesi FVECT v; double ro, theta, phi; { - double sin(), cos(); double d; d = sin(phi);