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

Comparing ray/src/gen/genworm.c (file contents):
Revision 1.8 by greg, Tue Apr 23 15:51:15 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   *  genworm.c - program to generate worms (strings with varying thickness).
6   *
# Line 15 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12   */
13  
14   #include  <stdio.h>
15 <
15 > #include  <math.h>
16   #include  "fvect.h"
17  
18 < #define  XNAME          "X_"                    /* x function name */
19 < #define  YNAME          "Y_"                    /* y function name */
20 < #define  ZNAME          "Z_"                    /* z function name */
21 < #define  RNAME          "R_"                    /* r function name */
18 > #define  XNAME          "X`SYS`"                /* x function name */
19 > #define  YNAME          "Y`SYS`"                /* y function name */
20 > #define  ZNAME          "Z`SYS`"                /* z function name */
21 > #define  RNAME          "R`SYS`"                /* r function name */
22  
23   #define  PI             3.14159265358979323846
24  
28 #define  FTINY          1e-7
29
25   #define  max(a,b)       ((a) > (b) ? (a) : (b))
26  
27  
28   double  funvalue(), l_hermite(), l_bezier(), l_bspline(), argument();
29 + void  quit();
30  
31  
32   main(argc, argv)
# Line 123 | Line 119 | userror:
119   }
120  
121  
122 + void
123   eputs(msg)
124   char  *msg;
125   {
# Line 130 | Line 127 | char  *msg;
127   }
128  
129  
130 + void
131   wputs(msg)
132   char  *msg;
133   {
# Line 137 | Line 135 | char  *msg;
135   }
136  
137  
138 + void
139   quit(code)
140 + int  code;
141   {
142          exit(code);
143   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines