--- ray/src/gen/genrev.c 2003/11/16 10:29:38 2.7 +++ ray/src/gen/genrev.c 2004/08/21 11:54:06 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: genrev.c,v 2.7 2003/11/16 10:29:38 schorsch Exp $"; +static const char RCSid[] = "$Id: genrev.c,v 2.8 2004/08/21 11:54:06 greg Exp $"; #endif /* * genrev.c - program to generate functions of rotation about z @@ -17,6 +17,8 @@ static const char RCSid[] = "$Id: genrev.c,v 2.7 2003/ #include #include "rterror.h" +#include "resolu.h" +#include "rterror.h" #include "calcomp.h" #define ZNAME "Z`SYS`" /* z function name */ @@ -46,44 +48,6 @@ double *nzp, *nrp, z0, r0, z1, r1; } -void -eputs(msg) -char *msg; -{ - fputs(msg, stderr); -} - - -void -wputs(msg) -char *msg; -{ - eputs(msg); -} - - -void -quit(code) -int code; -{ - exit(code); -} - - -void -printhead(ac, av) /* print command header */ -register int ac; -register char **av; -{ - putchar('#'); - while (ac--) { - putchar(' '); - fputs(*av++, stdout); - } - putchar('\n'); -} - - double l_hermite(char *nm) { @@ -163,7 +127,8 @@ char *argv[]; goto userror; modname = smooth ? "Phong" : argv[1]; - printhead(argc, argv); + fputs("# ", stdout); + printargs(argc, argv, stdout); eclock = 0; lastnz = lastnr = 0.0;