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.6 by greg, Mon Aug 4 22:37:53 2003 UTC vs.
Revision 2.7 by schorsch, Sun Nov 16 10:29:38 2003 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
15   #include  <stdio.h>
16   #include  <string.h>
17   #include  <math.h>
18 +
19 + #include  "rterror.h"
20   #include  "calcomp.h"
21  
22   #define  ZNAME          "Z`SYS`"                /* z function name */
# Line 29 | Line 31 | static const char      RCSid[] = "$Id$";
31   #define  UP             04
32   #define  DOWN           010
33  
32 void    quit(), eputs(), wputs();
34  
35 <
35 > void
36   computen(nzp, nrp, z0, r0, z1, r1)              /* compute normal */
37   double  *nzp, *nrp, z0, r0, z1, r1;
38   {
# Line 69 | Line 70 | int  code;
70   }
71  
72  
73 + void
74   printhead(ac, av)               /* print command header */
75   register int  ac;
76   register char  **av;
# Line 121 | Line 123 | l_bspline(char *nm)
123   }
124  
125  
126 + int
127   main(argc, argv)
128   int  argc;
129   char  *argv[];
# Line 236 | Line 239 | char  *argv[];
239                  lastnz = nz; lastnr = nr;
240                  nz = nextnz; nr = nextnr;
241          }
242 <        quit(0);
242 >        return 0;
243  
244   userror:
245          fprintf(stderr,
246          "Usage: %s material name z(t) r(t) nseg [-e expr] [-f file] [-s]\n",
247                          argv[0]);
248 <        quit(1);
248 >        return 1;
249   }
250  
251  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines