--- ray/src/gen/genworm.c 1991/08/13 16:07:12 1.9 +++ ray/src/gen/genworm.c 2003/02/22 02:07:23 2.4 @@ -1,9 +1,6 @@ #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: genworm.c,v 2.4 2003/02/22 02:07:23 greg Exp $"; #endif - -/* Copyright (c) 1989 Regents of the University of California */ - /* * genworm.c - program to generate worms (strings with varying thickness). * @@ -15,7 +12,7 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include - +#include #include "fvect.h" #define XNAME "X`SYS`" /* x function name */ @@ -25,12 +22,11 @@ static char SCCSid[] = "$SunId$ LBL"; #define PI 3.14159265358979323846 -#define FTINY 1e-7 - #define max(a,b) ((a) > (b) ? (a) : (b)) double funvalue(), l_hermite(), l_bezier(), l_bspline(), argument(); +void quit(); main(argc, argv) @@ -123,6 +119,7 @@ userror: } +void eputs(msg) char *msg; { @@ -130,6 +127,7 @@ char *msg; } +void wputs(msg) char *msg; { @@ -137,7 +135,9 @@ char *msg; } +void quit(code) +int code; { exit(code); }