--- ray/src/gen/genbranch.c 1989/02/02 11:16:27 1.1 +++ ray/src/gen/genbranch.c 1993/08/02 14:23:00 2.4 @@ -1,8 +1,10 @@ -/* +/* Copyright (c) 1989 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; #endif + +/* * genbranch.c - program to generate 3D Christmas tree branches. * * 8/23/86 @@ -10,6 +12,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "random.h" #define errf() (var*(0.5-frandom())) @@ -28,12 +32,15 @@ int rdepth = 3; /* recursion depth */ double var = 0.3; /* variability */ +#ifdef DCL_ATOF +extern double atof(); +#endif + main(argc, argv) int argc; char *argv[]; { - double atof(); int i, j; for (i = 1; i < argc && argv[i][0] == '-'; i++)