--- ray/src/gen/genmarble.c 1991/12/19 15:08:34 2.2 +++ ray/src/gen/genmarble.c 1993/08/02 14:23:03 2.4 @@ -12,19 +12,21 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "random.h" -#ifndef atof -extern double atof(); -#endif - #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; @@ -75,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; @@ -92,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);