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.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  <math.h>
18  
19   #include  "rterror.h"
20 + #include  "resolu.h"
21 + #include  "rterror.h"
22   #include  "calcomp.h"
23  
24   #define  ZNAME          "Z`SYS`"                /* z function name */
# Line 46 | Line 48 | double  *nzp, *nrp, z0, r0, z1, r1;
48   }
49  
50  
49 void
50 eputs(msg)
51 char  *msg;
52 {
53        fputs(msg, stderr);
54 }
55
56
57 void
58 wputs(msg)
59 char  *msg;
60 {
61        eputs(msg);
62 }
63
64
65 void
66 quit(code)
67 int  code;
68 {
69        exit(code);
70 }
71
72
73 void
74 printhead(ac, av)               /* print command header */
75 register int  ac;
76 register char  **av;
77 {
78        putchar('#');
79        while (ac--) {
80                putchar(' ');
81                fputs(*av++, stdout);
82        }
83        putchar('\n');
84 }
85
86
51   double
52   l_hermite(char *nm)
53   {
# Line 163 | Line 127 | char  *argv[];
127                  goto userror;
128          modname = smooth ? "Phong" : argv[1];
129  
130 <        printhead(argc, argv);
130 >        fputs("# ", stdout);
131 >        printargs(argc, argv, stdout);
132          eclock = 0;
133  
134          lastnz = lastnr = 0.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines