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 2.7 by schorsch, Sun Nov 16 10:29:38 2003 UTC vs.
Revision 2.8 by greg, Sat Aug 21 11:54:06 2004 UTC

# Line 17 | Line 17 | static const char      RCSid[] = "$Id$";
17   #include  <string.h>
18  
19   #include  "calcomp.h"
20 + #include  "resolu.h"
21 + #include  "rterror.h"
22   #include  "fvect.h"
23  
24   #define  XNAME          "X`SYS`"                /* x function name */
# Line 33 | Line 35 | static const char      RCSid[] = "$Id$";
35   double  l_hermite(char *), l_bezier(char *), l_bspline(char *);
36  
37  
36 static void printhead(int  ac, char  **av);
37
38
38   int
39   main(argc, argv)
40   int  argc;
# Line 74 | Line 73 | char  *argv[];
73          if (nseg <= 0)
74                  goto userror;
75  
76 <        printhead(argc, argv);
76 >        fputs("# ", stdout);
77 >        printargs(argc, argv, stdout);
78          eclock = 0;
79  
80          for (i = 0; i <= nseg; i++) {
# Line 124 | Line 124 | userror:
124   "Usage: %s material name x(t) y(t) z(t) r(t) nseg [-e expr] [-f file]\n",
125                          argv[0]);
126          return 1;
127 }
128
129
130 void
131 eputs(msg)
132 char  *msg;
133 {
134        fputs(msg, stderr);
135 }
136
137
138 void
139 wputs(msg)
140 char  *msg;
141 {
142        eputs(msg);
143 }
144
145
146 void
147 quit(code)
148 int  code;
149 {
150        exit(code);
151 }
152
153
154 void
155 printhead(              /* print command header */
156        register int  ac,
157        register char  **av
158 )
159 {
160        putchar('#');
161        while (ac--) {
162                putchar(' ');
163                fputs(*av++, stdout);
164        }
165        putchar('\n');
127   }
128  
129  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines