ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/genrev.c
(Generate patch)

Comparing ray/src/gen/genrev.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:05:00 1991 UTC vs.
Revision 2.4 by greg, Sat Feb 22 02:07:23 2003 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
4
5 /* Copyright (c) 1989 Regents of the University of California */
6
4   /*
5   *  genrev.c - program to generate functions of rotation about z
6   *
# Line 15 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12   */
13  
14   #include  <stdio.h>
15 + #include  <math.h>
16  
17   #define  ZNAME          "Z`SYS`"                /* z function name */
18   #define  RNAME          "R`SYS`"                /* r function name */
# Line 30 | Line 28 | static char SCCSid[] = "$SunId$ LBL";
28  
29   double  funvalue(), l_hermite(), l_bezier(), l_bspline(), argument();
30  
31 + void    quit(), eputs(), wputs();
32  
33 +
34   main(argc, argv)
35   int  argc;
36   char  *argv[];
# Line 160 | Line 160 | userror:
160   computen(nzp, nrp, z0, r0, z1, r1)              /* compute normal */
161   double  *nzp, *nrp, z0, r0, z1, r1;
162   {
163        extern double  sqrt();
163          double  dr, dz, len;
164  
165          dz = r0 - r1;                           /* right angle vector */
# Line 171 | Line 170 | double  *nzp, *nrp, z0, r0, z1, r1;
170   }
171  
172  
173 + void
174   eputs(msg)
175   char  *msg;
176   {
# Line 178 | Line 178 | char  *msg;
178   }
179  
180  
181 + void
182   wputs(msg)
183   char  *msg;
184   {
# Line 185 | Line 186 | char  *msg;
186   }
187  
188  
189 + void
190   quit(code)
191 + int  code;
192   {
193          exit(code);
194   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines