--- ray/src/gen/genbranch.c 1989/02/02 11:16:27 1.1 +++ ray/src/gen/genbranch.c 1991/12/19 15:09:06 2.2 @@ -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 @@ -14,6 +16,10 @@ static char SCCSid[] = "$SunId$ LBL"; #define errf() (var*(0.5-frandom())) +#ifndef atof +extern double atof(); +#endif + double bstart[3] = {0.0, 0.0, 0.0}; /* start of branch */ double bend[3] = {28.0, 8.0, 0.0}; /* end of branch */ double bthick = .6; /* branch radius at base */ @@ -33,7 +39,6 @@ main(argc, argv) int argc; char *argv[]; { - double atof(); int i, j; for (i = 1; i < argc && argv[i][0] == '-'; i++)